All pastes #262697 Raw Edit

Anonymous

public text v1 · immutable
#262697 ·published 2006-11-30 20:27 UTC
rendered paste body
//Polarity's RP script serverside

//Let's add our own shiz
local meta = FindMetaTable( "Player" )
if (!meta) then return end

//Define RP table
RP = {}

//Stuff to load the script
function RP.SetupScript()
	include('shared.lua')
	AddCSLuaFile("shared.lua")
	AddCSLuaFile("cl_init.lua")
end

function RP.CreatePlayer(pl)
	RP.Users = {}
	RP.Users.Name = pl:GetName()
	RP.Users.Money = pl:Frags()
	RP.Users.Job = pl:Job()
end

//Hook stuff into existing player library

//Function to get job
function meta:Job()
	return self.Job
end

//Function to set job
function meta:SetJob(job)
self.Job = job
end