freeze help
#1

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; }
Reply
#2

anyone ?
Reply
#3

According to this code you've pasted, the player first freezes then gets teleported.
Reply
#4

yes but its not doing that it freezes and teleports in same time i want to freeze for 5 secs and then teleport
Reply
#5

Whats your "FreezePlayer" stock? Paste it here
Reply
#6

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", "");
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)