freeze help - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: freeze help (
/showthread.php?tid=386661)
freeze help -
Wonderweiss - 21.10.2012
the player teleports and then freezes i need to make it first the player freeze for X seconds and then teleport here is the code :
Код:
CMD:balance(playerid, params[]) {
FreezePlayer(playerid, 5);
SetPlayerPos(playerid,2202.5703,1987.0085,10.8203);
format(fstring,sizeof(fstring), "Your Bank account balance is: $%d", BankInfo[playerid][Balance]);
ShowPlayerDialog(playerid, 122, DIALOG_STYLE_MSGBOX, "{FFFFFF}QBank - Bank Balance", fstring, "Close", "");
return 1; }
Re: freeze help -
Wonderweiss - 21.10.2012
anyone ?
Re: freeze help -
Adil - 21.10.2012
According to this code you've pasted, the player first freezes then gets teleported.
Re: freeze help -
Wonderweiss - 21.10.2012
yes but its not doing that it freezes and teleports in same time i want to freeze for 5 secs and then teleport
Re: freeze help -
Infinity90 - 21.10.2012
Whats your "FreezePlayer" stock? Paste it here
Re: freeze help -
RedFusion - 21.10.2012
Freezes the player, and Calls FreezePlayer(playerid) in 5 seconds..
pawn Код:
CMD:balance(playerid, params[])
{
TogglePlayerControllable(playerid,false);
SetTimerEx("FreezePlayer",5000,false,"i",playerid);
return 1;
}
forward FreezePlayer(playerid);
public FreezePlayer(playerid)
{
TogglePlayerControllable(playerid,true);
SetPlayerPos(playerid,2202.5703,1987.0085,10.8203);
format(fstring,sizeof(fstring), "Your Bank account balance is: $%d", BankInfo[playerid][Balance]);
ShowPlayerDialog(playerid, 122, DIALOG_STYLE_MSGBOX, "{FFFFFF}QBank - Bank Balance", fstring, "Close", "");
}