14.01.2010, 18:58
Код:
public OnPlayerDeath(playerid, killerid, reason)
{
if (IsPlayerConnected(playerid)) {
PlayerInfo[playerid][Deaths]++;
}
if(IsPlayerConnected(killerid) && killerid != INVALID_PLAYER_ID)
{
PlayerInfo[playerid][Kills]++;
}
return 1;
}
When I die it adds +1 death and +1 kill to me, and not the killer for some reason..
Anyone got any clue why? I've looked through how people did it in other scripts and they did something like this.



I thought it was suppose to be like that, I'll test it out with killerid instead of playerid 