New question, help command
#1

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 
iMAX_PLAYERSi++)
    {
        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(playeriddialogidDIALOG_STYLE_MSGBOX,"Online Admins",longstring,"Ok","");
    return 
1;

Reply


Messages In This Thread
New question, help command - by NewbieScripter - 12.07.2012, 11:22
Re: New question, help command - by aRoach - 12.07.2012, 11:40
Re: New question, help command - by clarencecuzz - 12.07.2012, 11:49

Forum Jump:


Users browsing this thread: 1 Guest(s)