31.08.2010, 01:19
The only problem I saw was that you wrote "=>" instead of ">="
Here again the same code just everything in OnPlayerDeath
And try to check for the messages, if none appeared try to debug the problem out
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);
}