07.10.2015, 07:23
Okey i have this strange issue with this function, i show my code:
but when i try to test it and i suicide myself with a granade ( for example ) when the player dies the score still the same, why?
Код:
public OnPlayerDeath(playerid, killerid, reason)
{
SendDeathMessage(killerid, playerid, reason);
SetPlayerScore(playerid,GetPlayerScore(playerid)-1);
if(killerid != INVALID_PLAYER_ID){SetPlayerScore(killerid,GetPlayerScore(killerid)+1);}
return 1;
}


