01.04.2019, 01:54
PHP код:
MaiorNivel()
{
new MaiorLevelID = INVALID_PLAYER_ID, string[128];
for(new x = 0, j = GetPlayerPoolSize(); x <= j; ++x)
{
if(IsPlayerConnected(j))
{
if(GetPlayerScore(j) > GetPlayerScore(MaiorLevelID)) MaiorLevelID = j;
}
}
new Name[MAX_PLAYER_NAME];
GetPlayerName(MaiorLevelID, Name, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s (ID: %d) [Level: %d] й o player com o maior nнvel conectado no servidor!", Name, MaiorLevelID, GetPlayerScore(MaiorLevelID));
SendClientMessageToAll(-1, string);
}