get player 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: get player kills (
/showthread.php?tid=628369)
get player kills -
JuzDoiT - 09.02.2017
hey how to get player kills if u kill 2 people
"2 Kills"
I can make that textdraw ..
and onplayerdeath "0 Kills"
Re: get player kills -
silverms - 09.02.2017
okay so onplayerdeath u should give the killedid some variables so type on the top of ur gamemode
new pKills[MAX_PLAYERS];
now on playerdeath u need to type
pKills[killerid] +=1;
and u have to create the textdraw now onplayerupdate check if(pKills[playerid]==0)
make the textdraw 0 if(pKills[playerid] ==1) make textdraw 1 and so on....
or but I'm not sure this will work u need to add the textdraw and update it by %s, pKills); like so but not 100% sure this will work.
Re: get player kills - Astralis - 09.02.2017
First save the kills