[Solved] Need help with my little command
#2

Quote:
Originally Posted by Justas [SiJ
]
Hey,
I tried scripting command which would show online admins.. but I failed..
Here is the code:
pawn Код:
if(strcmp(cmdtext,"/admins",true)==0)
    {
      new AnyAdmins = 0;
    for(new i; i<MAX_PLAYERS; i++)
    {
      new anames[24], string[256];
      if (dUserINT(PlayerName(i)).("Adminlvl")>=1)
      {
        AnyAdmins = 1;
        GetPlayerName(i,anames,24);
            }
            if (AnyAdmins == 1)
            {
              SystemMsg(playerid,"Admins Online:");
              format(string,256,"%s ",anames);
              SystemMsg(playerid,string);
            }
            else
            {
                SystemMsg(playerid,"No Admins Online");
            }
        }
        return 1;
    }
It sends many messages to playerid... Any help?
Edit nvm, i fail lol.
Reply


Messages In This Thread
[Solved] Need help with my little command - by SiJ - 02.07.2009, 17:09
Re: Need help with my little command - by Kyosaur - 02.07.2009, 17:12
Re: Need help with my little command - by refshal - 02.07.2009, 17:22
Re: Need help with my little command - by Nero_3D - 02.07.2009, 18:43
Re: Need help with my little command - by refshal - 02.07.2009, 18:45
Re: Need help with my little command - by Nero_3D - 02.07.2009, 19:17
Re: Need help with my little command - by refshal - 02.07.2009, 19:23
Re: Need help with my little command - by SiJ - 03.07.2009, 10:18
Re: Need help with my little command - by refshal - 03.07.2009, 10:19
Re: Need help with my little command - by SiJ - 03.07.2009, 10:20

Forum Jump:


Users browsing this thread: 5 Guest(s)