16.03.2012, 18:30
Ok so I am making a tdm style game mode, I have a timer set up that when its over I want it to loop through all online players and see who has the most kills, but how would I do this? I know how to set the timer I just don't know how I see who on the server has the most kills, under OnPlayerDeath I have this for adding kills to the killer and adding deaths to the person who was killed
pawn Код:
kill = GetPVarInt(killerid, "Kills");
death = GetPVarInt(playerid, "Deaths");
kills = kill ++;
deaths = death ++;
SetPVarInt(killerid, "Kills", kills);
SetPVarInt(playerid, "Deaths", deaths);