06.03.2013, 10:45
exemple death,
don't forget to create player's textdraw on player connect and destroy it when he is disconnecting
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;
}