Policja = createTeam ( "Policja", 0, 0, 254)
function loginPolicja(thePlayer)
local playerName = getAccountName ( getPlayerAccount (source) )
if isObjectInACLGroup ("user." .. playerName, aclGetGroup ( "Policja" ) ) then
setPlayerTeam (player, Policja)
setPedSkin (player, 280)
setPedNametagColor (player, 0, 0, 254)
outputChatBox("Policjant"..getPlayerName(plr).."rozpoczal sluzbe!", v, 0, 0, 254)
else
outputChatBox("Nie jestes w policji!", 255, 1, 1, getRottElement())
end
end
addCommandHandler ("sluzbapoli", loginPolicja)