function inicio(player, cmd)
if SaquearAE[player] and (SaquearAE[player][1] == true) and isElement(SaquearAE[player][2]) then
if (cmd == 'aceitar') then
local finmarker = createMarker(1365.5899658203,-2586.4958496094,22.83821105957 -1,"cylinder", 10.0, 255,0,0, 255)
local finmarker1 = createMarker(1508.0987548828,-2588.6862792969,13.546875 -1, "cylinder", 10.0, 255,0,0, 10)
local fimblip1 = createBlipAttachedTo(finmarker1, 19)
local fimblip = createBlipAttachedTo(finmarker, 53)
setElementVisibleTo(fimblip, root, true)
setElementVisibleTo(fimblip1, root, true)
setElementVisibleTo(finmarker, root, true)
setElementVisibleTo(finmarker1, root, true)
outputChatBox("#ff0000VOCE inicio uma racha de rua", player, 255, 255, 255, true)
outputChatBox("#FF0000(ALERTA POLICIAL) O "..getPlayerName(player).."#00FF00 INICIOU UM RACHA ILEGAL#FF0000(ALERTA POLICIAL)",everyone,255,0,0,true)
function fim()
setElementVisibleTo(fimblip, root, false)
setElementVisibleTo(finmarker, root, false)
outputChatBox("#ff0000Você ganhou parabens", player, 255, 255, 255, true)
outputChatBox("#FF0000(ALERTA POLICIAL) O "..getPlayerName(player).."#00FF00 FINALIZOU O RACHA NO AEROPORTO DE LS ",everyone,255,0,0,true)
end
addEventHandler("onMarkerHit", finmarker, fim)
function fim1()
setElementVisibleTo(fimblip1, root, false)
setElementVisibleTo(finmarker1, root, false)
end
addEventHandler("onMarkerHit", finmarker1, fim1)
SaquearAE[player] = nil
elseif (cmd == 'negar') then
outputChatBox('O Jogador negou seu desafio!', SaquearAE[player][2], 255, 255, 255, true)
SaquearAE[player] = nil
end
end
end
addCommandHandler('aceitar', inicio)
addCommandHandler('negar', inicio)