get player kills
#1

hey how to get player kills if u kill 2 people
"2 Kills"
I can make that textdraw ..
and onplayerdeath "0 Kills"

Reply
#2

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

First save the kills
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)