Timers: Need help
#5

pawn Код:
function FreezePlayer(playerid, time)
{
    new string[16];
    if(time > 0)
    {
        TogglePlayerControllable(playerid, false);
        SetTimerEx("FreezePlayer", 1000, 0, "ii", playerid, time-1);
    }

    else
    {
        TogglePlayerControllable(playerid, true);
    }
    return true;
}
Usage:
pawn Код:
FreezePlayer(playerid, Your_time);
Reply


Messages In This Thread
Timers: Need help - by BigAl - 12.08.2011, 14:28
Re: Timers: Need help - by MadeMan - 12.08.2011, 14:31
Re: Timers: Need help - by grand.Theft.Otto - 12.08.2011, 14:40
Re: Timers: Need help - by BigAl - 12.08.2011, 14:47
Re: Timers: Need help - by Riddick94 - 12.08.2011, 14:51

Forum Jump:


Users browsing this thread: 2 Guest(s)