SHOW:
|
|
- or go back to the newest paste.
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) |
9 | + | setPlayerWantedLevel(source,wantedLevel+1 or 1) |
10 | end | |
11 | end | |
12 | ) |