Help me please, it'd be appreciated
#7

Use GetTickCount.
pawn Код:
new Ticks[MAX_PLAYERS];

// In your command:
if((GetTickCount() - Ticks[playerid]) < 3000)
{
    SendClientMessage(playerid, COLOR_RED, "Please wait before using this command again");
    return 1;
}
Ticks[playerid] = GetTickCount();

// Your jump code goes here
Reply


Messages In This Thread
Help me please, it'd be appreciated - by Andregood - 29.04.2011, 11:31
Re: Help me please, it'd be appreciated - by Slash01 - 29.04.2011, 11:33
Re: Help me please, it'd be appreciated - by [DDC]Delight - 29.04.2011, 11:33
Re: Help me please, it'd be appreciated - by Andregood - 29.04.2011, 11:45
Re: Help me please, it'd be appreciated - by [DDC]Delight - 29.04.2011, 11:48
Re: Help me please, it'd be appreciated - by Andregood - 29.04.2011, 12:29
Re: Help me please, it'd be appreciated - by Vince - 29.04.2011, 12:34
Re: Help me please, it'd be appreciated - by Andregood - 29.04.2011, 14:28

Forum Jump:


Users browsing this thread: 1 Guest(s)