[NEED]/ad System Or CMD To Advertisment
#6

pawn Код:
CMD:announce(playerid, params[])
{
   
    if(IsPlayerAdmin(playerid))
        return SendClientMessage(playerid, "You are not allowed to use this command");

    new text[64], time, style;
    if (sscanf(params, "iis[64]", style, time, text)) return
        SendClientMessage( playerid,"Usage: /announce <style[0-6]> <time in ms> <text>");

    if (strlen(text) > 64) return
        SendClientMessage(playerid,"Message too long please shorten it ");

    if(style == 2) return SendClientMessage(playerid,"Bug with style 2 don't use it!");
   
    if (style < 0 || style > 6) return
        SendClientMessage(playerid,0x854900FF,"Invalid style");

    if (time > 20*1000) return
        SendClientMessage(playerid,"No longer than 20 seconds");

    GameTextForAll(text, time, style);
   
    return true;
}
Reply


Messages In This Thread
[NEED]/ad System Or CMD To Advertisment - by UserIndonesia - 18.08.2012, 06:45
Re: [NEED]/ad System Or CMD To Advertisment - by JaKe Elite - 18.08.2012, 06:50
Re: [NEED]/ad System Or CMD To Advertisment - by RanSEE - 18.08.2012, 06:52
Re: [NEED]/ad System Or CMD To Advertisment - by JaKe Elite - 18.08.2012, 06:55
Re: [NEED]/ad System Or CMD To Advertisment - by HughIvar - 18.08.2012, 07:09
Re: [NEED]/ad System Or CMD To Advertisment - by Avi57 - 18.08.2012, 07:14

Forum Jump:


Users browsing this thread: 3 Guest(s)