function Comando2 ()
if not isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("PMP")) then
outputChatBox("#ffff00Você não é um policial.", source, 255, 255, 255, true)
return
end
outputChatBox("#ffff00Você CHAMOU REFORÇO ESPERE no local", source, 255, 255, 255, true)
for _, p in ipairs(getElementsByType("player")) do
if p ~= source then
accountname = getAccountName(getPlayerAccount(p))
if isObjectInACLGroup("user."..accountname, aclGetGroup("PMP")) then
if getElementData(p, "PMemprego") then
outputChatBox("#ffffffPOLICIAL "..getPlayerName(source).." #ffffffCHAMOU REFORCO AGORA",p, 255,255,255,true)
outputChatBox("#ff0000----------------------------------------------------------------",p, 255,255,255,true)
outputChatBox("#ff0000/ir #ffffff #ffffffPara ir ate o local onde jogador chamou",p, 255,255,255,true)
end
end
end
end
end
addCommandHandler("reforco", Comando2)
EDIT: i did not tested