03.04.2011, 20:18
Код:
forward calculatingscoreboard();
public calculatingscoreboard()
{
new string[128];
new name[MAX_PLAYER_NAME];
new checker[MAX_PLAYERS];
for(new i = 0; i < MAX_PALYERS; i++)
{
if(IsPlayerConnecteD(i))
{
for(new a = 0; a < MAX_PALYERS; a++)
{
if(IsPlayerConnecteD(a))
{
if(i == a)
else
{
if(kills[i] >= kills[a])
{
checker[i]++;
}
}
}
}
}
}
if(...)
{
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s", name);
TextDrawSetString(Name1,string);
}
return 1;
}
