01.08.2012, 17:55
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:
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
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 i = 0; i < MAX_PLAYERS; i++)
{
if(Stats[i][AdminLvl] > 0 && 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;
}
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