CiderRP Job for Donators

Hello everyone,

I need help for my new server using the CiderRP:
I would to make jobs available that for Donators and Admins.
Can you explain clearly what to do ? Thank you.
Thank you in advance.

PS : I am French and my English is not terrible …

UP (Sorry)

Actualy you should use donate script and promote donators to respected class.
If you made some jobs that require rang respected or upper only them and admins could use them

You want something done ? Do it yourself, I never count on some silly script if that means cash control

You could try using

if ply:SteamID()

Too lazy to type everything, as I am new to lua.

EDIT:

You can try this:



function job( ply )
if ply:SteamID() == "YOUR STEAM ID HERE" then
ply:StripWeapons()
ply:StripAmmo()
ply:SetTeam( 5 ) -- The number or the name of the Team.
ply:Spawn()
else
ply:ChatPrint( "You're not an Donator!" )
end
end


[LUA]function meta:IsDonator()

if( self:SteamID() == "***"
or self:SteamID() == "***"
or self:SteamID() == "***" ) then 
return true
end

return false

end[/LUA][LUA]function job( ply )
if ply:IsDonator then
ply:StripWeapons()
ply:StripAmmo()
ply:SetTeam( 5 ) – The number or the name of the Team.
ply:Spawn()
else
ply:ChatPrint( “You’re not an Donator!” )
end
end[/LUA]

Simple… :smiley:

That should work.

Told’ya … :b

where do i get this script.

Make a usergroup called donator, and use player:IsUserGroup(donator)

Make the usergroup in garrysmod/garrysmod/settings/users.txt