aTeam = createTeam ( "Police" , 100, 149, 237 );
addEvent("JoinPolice",true)
addEventHandler("JoinPolice",root , function ( )
if ( getPlayerTeam ( source ) and getPlayerTeam ( source ) == aTeam ) then return outputChatBox ("* you have this team",source,255,0,0,true) end
setPlayerTeam ( source , aTeam )
setPlayerSkin (source,280)
giveWeapon ( source, 3, 1 )
giveWeapon ( source, 23, 200 )
outputChatBox ( 'Now You Are in police job!',source,0,255,0 )
end );
local allTeams = getElementsByType ( "Police" )
for index, theTeam in ipairs(allTeams) do
if ( getTeamFriendlyFire ( allTeams ) == false ) then
setTeamFriendlyFire ( allTeams, true )
end
end