I have gotten donations to work on my server,and I thought it would be cool to have them spawn in with special weapons.So is there a way to do that?If so how?Thanks for the help!Cheers!
[editline]3rd August 2014[/editline]
Bumb :3
[QUOTE=skatehawk11;45578109]Put this in garrysmod/lua/autorun/server/
Name the file whatever you want.lua and here is some sloppy code that can do the job.
[lua]
function pSpawn(ply)
if ply:IsUserGroup("superadmin") then
ply:Give("weapon_stunstick")
print("working")
end
end
function pIspawn(ply)
if ply:IsUserGroup("superadmin") then
ply:Give("weapon_stunstick")
print("working")
end
end
hook.Add( "PlayerSpawn", "someHookName", pSpawn )
hook.Add("PlayerInitialSpawn","playerinitspawn",pIspawn)
[/lua][/QUOTE]
Thanks so much! It works great!
Sorry, you need to Log In to post a reply to this thread.