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.