Kills,Deaths,Ratio,killing spree (""textdraw"" in dm)
#4

exemple death,
pawn Код:
new PlayerText:PlayerStatus[MAX_PLAYERS];
public OnPlayerDeath(killerid,playerid,reason[])
{
          Death[playerid]++;
          Kills[killerid]++;
          new str[128];
          format(str,128,"Deaths:%d ~n~Kills:%d",Death[playerid],Kills[playerid]);
          PlayerTextDrawSetString(playerid,PlayerStatus[playerid],str);
          format(str,128,"Deaths:%d ~n~Kills:%d",Death[killerid],Kills[killerid]);
          PlayerTextDrawSetString(killerid,PlayerStatus[killerid],str);
          return 1;
}
don't forget to create player's textdraw on player connect and destroy it when he is disconnecting
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)