[HELP] Use chat every 3 seconds
#8

On top of your script:
pawn Код:
new CanChat[MAX_PLAYERS] = 1;
pawn Код:
public OnPlayerText(playerid, text[])
{
    if(CanChat[playerid] == 0)
    {
        SendClientMessage(playerid, FF0000, "You can send a message every 3 seconds!");
        return 0;
    }

    CanChat[playerid] = 0;
    SetTimerEx("AllowChat", 1000*3, false, "i", playerid);
    return 1;
}
pawn Код:
forward AllowChat(playerid);
public AllowChat(playerid)
{
    CanChat[playerid] = 1;
    return 1;
}
Reply


Messages In This Thread
[HELP] Use chat every 3 seconds - by kbalor - 02.08.2012, 06:05
Re: [HELP] Use chat every 3 seconds - by Gamer_007 - 02.08.2012, 06:06
Re: [HELP] Use chat every 3 seconds - by newbienoob - 02.08.2012, 06:12
Re: [HELP] Use chat every 3 seconds - by AmigaBlizzard - 02.08.2012, 06:46
Re: [HELP] Use chat every 3 seconds - by [MM]RoXoR[FS] - 02.08.2012, 06:57
Re: [HELP] Use chat every 3 seconds - by ReVo_ - 02.08.2012, 10:30
Re: [HELP] Use chat every 3 seconds - by [MM]RoXoR[FS] - 02.08.2012, 10:53
Re: [HELP] Use chat every 3 seconds - by Dan. - 02.08.2012, 10:55

Forum Jump:


Users browsing this thread: 2 Guest(s)