16.08.2010, 07:23
show us the value, where info is stored about admins.
Here is my command:
Here is my command:
pawn Код:
if(strcmp(cmdtext, "/admin", true) == 0)
{
new zin[256] = "Admins online:";
new name[MAX_PLAYER_NAME];
for(new i = 0; i <MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && playerDB[i][admin]){
GetPlayerName(i,name,MAX_PLAYER_NAME);
format(zin,256,"%s %s,",zin,name);
}
SendClientMessage(playerid,0x45A9BAFF,zin);
return 1;
}