01.03.2014, 14:40
pawn Код:
dcmd_tps(playerid, params[])
{
#pragma unused params
new count = 0, string[256];
SendClientMessage(playerid, -1,"-------- Trusted Players : --------");
for(new i = 0; i < MAX_PLAYERS; i ++)
{
if(IsPlayerConnected(i))
{
if(AccInfo[i][Level] == 2)
{
new nameee[128];
GetPlayerName(i, nameee, 16);
format(string, sizeof(string),"%s (ID:%d)\n",nameee, i);
SendClientMessage(playerid, -1, string);
count++;
}
}
}
if(count == 0)
{
SendClientMessage(playerid, -1, "No Trusted Player Online.");
}
SendClientMessage(playerid, -1,"--------------------------------");
return 1;
}