21.10.2009, 13:54
Aight..
I got all things definied, aswell as the crap for the textdraw at OnGameModeInit, then I got this at OnPlayerDeath:
But it still - doesnt seem to work. I figured out that the death/kills in the textdraw are the ones of ID 0. How to fix?
Код:
public StatsInfromation()
{
for(new i=0;i<MAX_PLAYERS;i++)
{
if (IsPlayerConnected(i))
{
TextDrawHideForPlayer(i,PlayerStats[i]);
format(str, sizeof(str), " ~r~Deaths ~w~%d - ~g~Kills ~w~%d" , kill[0], Death[0]);
TextDrawSetString(PlayerStats[i],str);
TextDrawShowForPlayer(i,PlayerStats[i]);
}
}
return 1;
}
Код:
kill[killerid]++; Death[playerid]++;

