Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. Blitz = createMarker(2492.6001,-1679.6,12.1,"cylinder",2,0,255,0)
  2. local policialCriado = false
  3. function policial()
  4. if policialCriado == false then
  5. local thePed = createPed(283, 2495.7817382813, -1682.6011962891, 13.347496986389)
  6. givePedWeapon(thePed, 31, 5000, true)
  7. setPedControlState(thePed, "fire", true)
  8. local x, y, z = getElementPosition(localPlayer)
  9. setPedAimTarget(thePed, x, y, z)
  10. getElementType(player)
  11. destroyElement(player)
  12. policialCriado = true end
  13. end
  14. local msgApareceu = false
  15. function Blitz_func()
  16. if msgApareceu == false then
  17. outputChatBox("--Blitz---", 255,255,0)
  18. outputChatBox("Você Foi Parado em uma batida policial, por favor mostre seus documentos", 255,255,0)
  19. outputChatBox("Se não estiver portando habilitação voce ganhará niveis de procurado", 255,255,0)
  20. outputChatBox("Não saia do veiculo ou faça qualquer movimento brusco", 255,255,0)
  21. outputChatBox("SE DESOBEDECER QUALQUER ORDEM", 255,255,0)
  22. outputChatBox("--Blitz--", 255,255,0)
  23. msgApareceu = true end
  24. end
  25.  
  26. function QuandoEntrarNOMARKER(thePlayer)
  27. if(getElementData(thePlayer, "temHabilitacao")) then
  28. outputChatBox("Você Possui sim uma habilitação", 255,255,0)
  29. return
  30. end
  31. end
  32. addEventHandler("onClientMarkerHit", getRootElement(), function(thePlayer), QuandoEntrarNOMARKER(), Blitz_func()
  33. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement