+1 score +1 deaths
#3

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    PlayerInfo[playerid][pDeaths]++; // Replace with your variables
    PlayerInfo[killerid][pKills]++; //Also Replace with your variables
    SendDeathMessage(killerid, playerid, reason); //Sending the deaTH message to all
    SetPlayerScore(killerid, GetPlayerScore(killerid, +1); //Setting the killers score
    return 1;
}
EDIT: Ahh someone was faster..
Reply


Messages In This Thread
+1 score +1 deaths - by mickos - 23.01.2014, 08:23
Re: +1 score +1 deaths - by Scottas - 23.01.2014, 08:28
Re: +1 score +1 deaths - by MatriXgaMer - 23.01.2014, 08:29
Re: +1 score +1 deaths - by boomerboom - 23.01.2014, 08:37
Re: +1 score +1 deaths - by mickos - 25.01.2014, 17:29
Re: +1 score +1 deaths - by Scottas - 25.01.2014, 19:17
Re: +1 score +1 deaths - by mickos - 25.01.2014, 19:21
Re: +1 score +1 deaths - by Scottas - 25.01.2014, 19:38
Re: +1 score +1 deaths - by mickos - 25.01.2014, 19:59
Re: +1 score +1 deaths - by MahdiGames - 25.01.2014, 22:10
Re: +1 score +1 deaths - by Shetch - 25.01.2014, 22:19
Re: +1 score +1 deaths - by MahdiGames - 25.01.2014, 22:25

Forum Jump:


Users browsing this thread: 2 Guest(s)