/announce command with ZCMD -.-
#2

Missing bracket:

pawn Код:
COMMAND:announce(playerid, params[])
{
    if(!IsPlayerAdmin(playerid))
    {
        new text[64], time, style;
        if (sscanf(params, "iis[64]", style, time, text))
       
            {
                if (strlen(text) > 64)
                {
                     if(style == 2)
                     {
                        if (style < 0 || style > 6)
                        {
                            if (time > 20*1000) {
                            GameTextForAll(text, time, style);
                            }
                            else return SendClientMessage(playerid,"No longer than 20 seconds");
                        }
                        else return SendClientMessage(playerid,0x854900FF,"Invalid style");
                     }
                    else return SendClientMessage(playerid,"Bug with style 2! Do not use it!");
                }
                else return SendClientMessage(playerid,"Message too long, please make it with less than 64 letters!");
            }
            else return SendClientMessage(playerid,"Usage: /announce <style[0-6]> <time in ms> <text>");
    }
    else return SendClientMessage(playerid,''Only RCON Adminstrator can use this!''
    return 1;
}
Reply


Messages In This Thread
/announce command with ZCMD -.- - by Armqus_FIN - 28.11.2011, 13:27
Re: /announce command with ZCMD -.- - by SmiT - 28.11.2011, 13:30
Re: /announce command with ZCMD -.- - by Armqus_FIN - 28.11.2011, 13:38
Re: /announce command with ZCMD -.- - by Kostas' - 28.11.2011, 13:38
Re: /announce command with ZCMD -.- - by Armqus_FIN - 28.11.2011, 13:42
Re: /announce command with ZCMD -.- - by Kostas' - 28.11.2011, 13:45
Re: /announce command with ZCMD -.- - by |_ⒾⓇⓄN_ⒹⓄG_| - 28.11.2011, 13:49
Re: /announce command with ZCMD -.- - by ellyx - 28.11.2011, 13:54
Re: /announce command with ZCMD -.- - by Armqus_FIN - 28.11.2011, 14:09
Re: /announce command with ZCMD -.- - by Kostas' - 28.11.2011, 14:10

Forum Jump:


Users browsing this thread: 1 Guest(s)