[Help] /admins problem
#1

Hey guys,


I have a little, problem

when players type ingame /admins, it will be show the online admins
But when there no admins online and a player do /admins they wont see anything
I've tried alot to make a SendClientMessage or anything that says: Sorry, there are no online admins at the moment.
But it gave errors and warnings.
Thats the reason that I deleted it.

this is the script:

PHP код:
if(strcmp(cmd"/admins"true) == 0)
        {
        new 
str[128];
        for(new 
0MAX_PLAYERSi++)
                {
                if(
Stats[i][AdminLvl] > && IsPlayerConnected(i))
                    {
                    new 
name[90];
                    
GetPlayerName(i,name,sizeof(name));
                    
format(str,sizeof(str),"%s(id:%d) [Level: %d] is Online.",name,i);
                    
SendClientMessage(i,COLOR_BLUE,str);
                    }
                }
        return 
1;
        } 
And when I was tryig to make a dialog it failed to hard

I mean if a player type /admins I was try to show this:

2 - DIALOG_STYLE_LIST



But not with that text in there, but the online admins need he to show
Reply


Messages In This Thread
[Help] /admins problem - by mickos - 01.08.2012, 17:55
Re: [Help] /admins problem - by Kindred - 01.08.2012, 18:03
Re: [Help] /admins problem - by mickos - 01.08.2012, 18:08
Re: [Help] /admins problem - by Kindred - 01.08.2012, 18:15
Re: [Help] /admins problem - by mickos - 01.08.2012, 18:24

Forum Jump:


Users browsing this thread: 2 Guest(s)