+1 Kills when somone gets a kill.
#1

Код:
public OnPlayerDeath(playerid, killerid, reason)
{

if (IsPlayerConnected(playerid)) {
   PlayerInfo[playerid][Deaths]++;
  }
  
	if(IsPlayerConnected(killerid) && killerid != INVALID_PLAYER_ID)
	{
		PlayerInfo[playerid][Kills]++;
	}
	
return 1;
}
I added a system to save players deaths and kills, the deaths work fine, but the kills do not.

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.
Reply


Messages In This Thread
+1 Kills when somone gets a kill. - by whereschris - 14.01.2010, 18:58
Re: +1 Kills when somone gets a kill. - by whereschris - 14.01.2010, 19:07

Forum Jump:


Users browsing this thread: 1 Guest(s)