I'm sure its easy, please help quick!
#1

If I was creating this:
pawn Код:
CMD:gov(playerid, params[])
{
    new string[128], new govon;
    if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
    if(!IsACop(playerid) || !IsFBi || !IsLSFMD || !IsAGov(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You are not an LEO/Government Official.");
    if(!PlayerInfo[playerid][pFacLeader]) return SendClientMessage(playerid, COLOR_GREY, "You are not a faction leader.");
    govon == 0;
    if(sscanf(params, "s[128]", params)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: (/gov)ernment announcement [text]");
    if(AntiAdv(playerid, params)) return 1;
    if (govon == 0)
    {
        SendClientMessageToAll(COLOR_WHITE, "|___________ Government News Announcement ___________|");
        format(string, sizeof(string), "** [%s] %s %s: %s **", RPFN(playerid), RPFRN(playerid), RPN(playerid), params);
        SendClientMessageToAll(COLOR_BLUE, string);
        govon == 1;
        return 1;
    }
    else if (govon == 1)
    {
        format(string, sizeof(string), "** [%s] %s %s: %s **", RPFN(playerid), RPFRN(playerid), RPN(playerid), params);
        SendClientMessageToAll(COLOR_BLUE, string);
        return 1;
    }
    return 1;
}
How would I create a little timer say after 1 minute of /gov not being done, govon returns to 0?
Reply


Messages In This Thread
I'm sure its easy, please help quick! - by grantism - 24.06.2012, 07:20
Re: I'm sure its easy, please help quick! - by doreto - 24.06.2012, 07:23
Re: I'm sure its easy, please help quick! - by grantism - 24.06.2012, 07:27
Re: I'm sure its easy, please help quick! - by Grand_Micha - 24.06.2012, 07:30
Re: I'm sure its easy, please help quick! - by Randy More - 24.06.2012, 08:13

Forum Jump:


Users browsing this thread: 1 Guest(s)