Quote:
Originally Posted by Nero_3D
The only problem I saw was that you wrote "=>" instead of ">="
Here again the same code just everything in OnPlayerDeath
pawn Код:
public OnPlayerDeath(playerid, killerid, reason) { if(killerid != INVALID_PLAYER_ID) { //jumping from cliff and so on if (GetPlayerWantedLevel(playerid) == 0) { SendClientMessage(killerid, COLOR_RED, "You killed an innocent person!, wanted level has been increased."); SetPlayerWantedLevel(killerid, GetPlayerWantedLevel(killerid) + 1); } else { SendClientMessage(killerid, COLOR_GREEN, "You killed a wanted player!, you get $10,000 reward."); GivePlayerMoney(killerid, 10_000); } } SetPlayerWantedLevel(playerid, 0); }
And try to check for the messages, if none appeared try to debug the problem out
|
Yeah Nothing shows at all the first time, but the second kill registers. I will defo try debug mode soon.
thanks for the advice!