SA-MP Forums Archive
Kills - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Kills (/showthread.php?tid=408415)



Kills - Fernado Samuel - 18.01.2013

Removed


Re: Kills - anybox - 18.01.2013

Код:
new admKills[MAX_PLAYERS];
Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    //....your corde
    if (IsPlayerAdmin(playerid))
        admKills[killerid]++;
}
It must be saved in a file, if you want to store a data.


Re: Kills - Glad2BeHere - 18.01.2013

https://sampforum.blast.hk/showthread.php?tid=352703

u can do something like

if(PlayerInfo[playerid][pAdmin])
{
PlayerInfo[killerid][pAkills] ++;
}
u will need to add ur own variables in the enum and save them i am just drawing an example for u and ensure that the kills are saved