function teamPolicja (thePlayer)
local playerName = getAccountName ( getPlayerAccount ( thePlayer ) )
if isObjectInACLGroup ( "user." .. playerName, aclGetGroup ( "Policja" ) ) then
setPlayerTeam ( thePlayer, politeamx )
else
outputChatBox( "Nie jeste? pracownikiem Policji", thePlayer, 0, 0, 255, false)
end
end
addEventHandler( "onMarkerHit", markerpoli, teamPolicja )