Ulysses Stuff > Suggestions
Give Weapons on Spawn (Group Specific)
MrPresident:
If this is too complicated for you to do on your own, then be more specific with exactly you want and I will throw it together for you. It's very simple, but taking the time to make something that is robust and modular would take a while and I honestly don't have the time to work on something like that.
-RJ-:
Work perfectly! Thanks! :D
--- Code: ---function Custom_Loadout( ply )
if ply:IsUserGroup("superadmin") then
ply:Give("weapon_raveball")
elseif ply:IsUserGroup("majordonator") then
ply:Give("weapon_raveball")
end
end
hook.Add( "PlayerLoadout", "CustomGamemodeLoadoutFunction", Custom_Loadout)
--- End code ---
Tell me if I did anything wrong
MrPresident:
No, that will work.. but it would be more efficient to do it this way.
--- Code: ---function Custom_Loadout( ply )
if ( ply:IsUserGroup( "superadmin" ) or ply:IsUserGroup( "majordonator" ) ) then
ply:Give( "weapon_raveball" )
end
end
hook.Add( "PlayerLoadout", "CustomGamemodeLoadoutFunction", Custom_Loadout )
--- End code ---
Navigation
[0] Message Index
[*] Previous page
Go to full version