General > Developers Corner
Respected Rank
Megiddo:
Where is this code being added?
TropicalTitties:
gamemodes/DarkRP/gamemode/sv_gamemode_functions.lua
Megiddo:
--- Quote from: TropicalTitties on May 11, 2011, 02:14:11 PM ---gamemodes/DarkRP/gamemode/sv_gamemode_functions.lua
--- End quote ---
Are you sure that this gamemode doesn't already have a PlayerJoinTeam function?
Aaron113:
Gamemode.PlayerJoinTeam
According to this you have the arguments in the function wrong.
TropicalTitties:
So it would be
--- Code: ---function GM:PlayerJoinTeam( ply, teamid )
if not ply:IsUserGroup("respected") and teamid == TEAM_SWAT then
return false
else
return true
end
end
--- End code ---
Navigation
[0] Message Index
[*] Previous page
Go to full version