Advertisement
Guest User

Untitled

a guest
Sep 3rd, 2015
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local ped = createPed(217,0,0,3)
  2. addEventHandler("onPlayerTarget",root,
  3. function(target)
  4. if target and isElement(target) and getElementType(target) == "ped" and target == ped then
  5. local sourceName = getPlayerName(source)
  6. outputChatBox(sourceName.." got warned for aiming at the staff ped!",root,255,158,0)
  7. outputChatBox("You got wanted for aiming at the staff ped!",source,255,0,0)
  8. local wantedLevel = getPlayerWantedLevel(source)
  9. setPlayerWantedLevel(source,wantedLevel+1 or 1)
  10. end
  11. end
  12. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement