function teamPolicja (thePlayer)
local playerName = getAccountName ( getPlayerAccount ( thePlayer ) )
if isObjectInACLGroup ( "user." .. playerName, aclGetGroup ( "Policja" ) ) then
setPlayerTeam ( thePlayer, politeamx )
outputChatBox ("Rozpocz??e? s?u?b? w tej frakcji", thePlayer, 0, 100, 255, false)
else
outputChatBox( "Nie nale?ysz do tej frakcji. ", thePlayer, 0, 100, 255, false)
end
end
addEventHandler( "onMarkerHit", markerpoli, teamPolicja )