12.07.2012, 11:22
Hello, how to perform this code ? or already is good?
PHP код:
command(admins,playerid)
{
new longstring[200],shortstring[30],Count = 0,pName[25];
for(new i; i < MAX_PLAYERS; i++)
{
if(IsPlayerAdmin(i))
{
Count++;
GetPlayerName(i,pName,25);
format(shortstring,sizeof(shortstring),"%s (ID:%d) \n",pName,playerid);
strcat(longstring,shortstring);
}
}
format(shortstring,sizeof(shortstring),"%d admins online",Count);
ShowPlayerDialog(playerid, dialogid, DIALOG_STYLE_MSGBOX,"Online Admins",longstring,"Ok","");
return 1;
}