Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local ped = createPed(217,0,0,3)
- addEventHandler("onPlayerTarget",root,
- function(target)
- if target and isElement(target) and getElementType(target) == "ped" and target == ped then
- local sourceName = getPlayerName(source)
- outputChatBox(sourceName.." got warned for aiming at the staff ped!",root,255,158,0)
- outputChatBox("You got wanted for aiming at the staff ped!",source,255,0,0)
- local wantedLevel = getPlayerWantedLevel(source)
- setPlayerWantedLevel(source,wantedLevel+1 or 1)
- end
- end
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement