Nvm Solved
#1

Nvm Solved
Reply
#2

At top of script:
pawn Код:
new Deaths[MAX_PLAYERS];
new Kills[MAX_PLAYERS];
forward SetKills(killerid);
Then under OnPlayerDeath
pawn Код:
Deaths[playerid]+=1;
Anywhere in script:
pawn Код:
public SetKills(killerid)
{
  if(killerid == INVALID_PLAYER_ID) return 1;
  else Kills[killerid]+=1;
  return 1;
}
Then under OnPlayerDisconnect(playerid,reason)
pawn Код:
Deaths[playerid] = 0;
  Kills[playerid] = 0;
UNTESTED

Note that this only stores their kills and deaths, it doesn't display them anywhere.
Reply
#3

nvm solved , thnx anyways
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)