Adding a timer to this...
#7

It compiled fine when I used the above one;

pawn Код:
command(advert, playerid, params[])
{
    new message[128], string[256];
    if(sscanf(params, "s[128]", message))
    {
        if(GloabalAdvertisement){
        GloabalAdvertisement=false;
        SetTimer("MakeGloabalAdverisementTrue",60000/,false);
        {
            if(Player[playerid][DonateRank] >=2)
            SetTimer("MakeGlobalAdvertisementTrue",30000,false);
        }
        SendClientMessage(playerid, WHITE, "Server: /advert [advertisement]");
        SendClientMessage(playerid, GREY, "Example: '/advert Selling my Blista Compact. 15k miles, just been serviced.'");
        SendClientMessage(playerid, GREY, "Will show: [ADVERT] Selling my Blista Compact. 15k miles, just been serviced. [Callum Getty - Phone: 1241231]");
        }
        else SendClientMessage(playerid, WHITE, "You must wait 60 seconds (30 seconds for VIP's) between advertisements!");
    }
    else
    {
        format(string, sizeof(string), "[ADVERT] %s [%s - Call: %d]", message, RemoveUnderScore(playerid), Player[playerid][CellPhoneNumber]);
        SendClientMessageToAll(ADVERT, string);
    }
    return 1;
}
Reply


Messages In This Thread
Adding a timer to this... - by Luke_James - 01.09.2012, 17:26
Re: Adding a timer to this... - by Luke_James - 01.09.2012, 21:01
Re: Adding a timer to this... - by Roko_foko - 01.09.2012, 21:06
Re: Adding a timer to this... - by Luke_James - 01.09.2012, 21:35
Re: Adding a timer to this... - by Admigo - 01.09.2012, 21:41
Re: Adding a timer to this... - by ATTAN - 01.09.2012, 21:51
Re: Adding a timer to this... - by Luke_James - 01.09.2012, 21:53
Re: Adding a timer to this... - by nickdodd25 - 01.09.2012, 22:24
Re: Adding a timer to this... - by Luke_James - 01.09.2012, 22:34
Re: Adding a timer to this... - by nickdodd25 - 01.09.2012, 23:47

Forum Jump:


Users browsing this thread: 1 Guest(s)