[HELP] Freeze time
#6

From the forum:


Quote:
Originally Posted by Lorenc_
View Post
FreezeThenAutoUnfreeze(playerid, time)
Just freeze a player for a certain amount of time.
pawn Code:
FreezeThenAutoUnfreeze(playerid, time)// time is in Milliseconds, to make the player controllable again.
Whole code (add to fs or inc):
pawn Code:
stock FreezeThenAutoUnfreeze(playerid, time)
{
    TogglePlayerControllable(playerid, 0);
    SetTimerEx("UnfreezeBastard", time, false, "i", playerid);
}
forward UnfreezeBastard(playerid);
public UnfreezeBastard(playerid)
{
    TogglePlayerControllable(playerid, 1);
}
This is very basic, no bad comments lol.

Working... You can upgrade the function maybe by putting sounds and a gametext, just sayin
Link to the original topic http://forum.sa-mp.com/showthread.ph...rex#post769935
Reply


Messages In This Thread
[HELP] Freeze time - by Pooh7 - 22.10.2010, 17:47
Re: [HELP] Freeze time - by Matej_ - 22.10.2010, 17:53
Re: [HELP] Freeze time - by Pooh7 - 22.10.2010, 17:56
Re: [HELP] Freeze time - by Matej_ - 22.10.2010, 17:59
Re: [HELP] Freeze time - by Badger(new) - 22.10.2010, 18:16
Re: [HELP] Freeze time - by randomkid88 - 22.10.2010, 21:16
Re: [HELP] Freeze time - by Iphone1234g - 05.06.2011, 15:31
Re: [HELP] Freeze time - by Mean - 05.06.2011, 15:36

Forum Jump:


Users browsing this thread: 4 Guest(s)