Admin commands dont work
#5

Try this:
pawn Код:
CMD:adan(playerid, params[])
{
    if(AdminLevel[playerid]  == 3)
    {
        if(!strlen(params))
        {
            SendClientMessage(playerid,COLOR_ERROR,"USAGE: /adan(nounce) (Message)");
            return 1;
        }
        else
        {
            new string[128];
            format(string,sizeof(string),"%s",params);
            GameTextForAll(string,5000,0);
            return 1;
        }
    }
    else
    {
        SendClientMessage(playerid,COLOR_ERROR,"You don't have permission to use this command.");
        return 1;
    }
    return 1;
}
Reply


Messages In This Thread
Admin commands dont work - by NoahF - 27.08.2013, 10:57
Re: Admin commands dont work - by Finn707 - 27.08.2013, 11:01
Re: Admin commands dont work - by Scrillex - 27.08.2013, 11:08
Re: Admin commands dont work - by NoahF - 27.08.2013, 11:08
Re: Admin commands dont work - by Finn707 - 27.08.2013, 11:09

Forum Jump:


Users browsing this thread: 1 Guest(s)