14.06.2018, 22:03
PHP Code:
public OnPlayerDeath(playerid, killerid, reason)
{
SetPlayerArmour(playerid, 0);
if(killerid != INVALID_PLAYER_ID)
{
new level;
SendDeathMessage(killerid, playerid, reason);
PlayerInfo[killerid][pKills] ++;
PlayerInfo[playerid][pDeaths] ++;
trenutnokills[killerid] ++;
trenutnodeaths[playerid] ++;
level = GetPlayerScore(playerid)++; // You must use GetPlayerScore not SetPlayerScore!
PlayerInfo[killerid][pLevel] = level;
SetPlayerScore(playerid,PlayerInfo[playerid][pLevel]);
}
![Smiley](images/smilies/smile.png)