1.
where is the /price command
2.
Darkrp custom class for donor rank
@2.
[lua]
function SetDonator(ply)
local PlayerID = ply:SteamID()
local DonatorIDs = {"STEAM_11111111", "STEAM_0:0:24872828"} --Change the first one to all of the donator's IDs, separated by commas, in "s, leave the second one in, without it, the code wont work.
if table.HasValue(DonatorIds, ""..PlayerID.."") then
ply:SetUserGroup("Donator")
end
end
hook.Add("PlayerInitialSpawn", "SetDonator", SetDonator)
--In DarkRPs job change function, when they try to change to your SUPER RDM SWAT/MERCENARIE/UBERCRIMINA: class, do this:
--Blahblahcodeforchangingjobtoclass
if ply:GetUserGroup() == "Donator" then
--blahblahcodetochangejobtoclass
[/lua]
where would i put that at?
Also do you know if its possible to use DarkRP and ULX at the same time?
The first part goes in init.lua. The second part is some code that goes into darkrps job change function. Wherever that is. This is the questions section, not requests.
Did you really do ""..PlayerID.."", what was the sole point of doing that?
I Really don't about the first thing.. Urgh we better call a professionel lua coder. :fuckyou:
[editline]EDIT[/editline]
Go to Garrysmod/Garrysmod/DarkRP/Entites/entites/gunlab/Init.lua
Don't erase your questions after they've been solved, other people may have use for this info.
[QUOTE=Donkie;28853710]Don't erase your questions after they've been solved, other people may have use for this info.[/QUOTE]
My mouse flicked, but I agree.
there
[QUOTE=zzaacckk;28852662]Did you really do ""..PlayerID.."", what was the sole point of doing that?[/QUOTE]
I'm a bit of a newb, sorry.
[editline]30th March 2011[/editline]
I remember why I did it. I didn't know if ply:SteamID returned a string. That's probably stupid too, though. . .
I'm pretty sure it does. But you could use tostring couldn't you, just incase?
Or I could use that.
Sorry, you need to Log In to post a reply to this thread.