Freeze for 3 seconds
#1

Hey guys, I've created a command to teleport someone into an interior, but the objects dont load quick enough, and the person falls through the ground, What would if i have to add to freeze them for about 3 seconds?
Reply
#2

This is my code, I don't get error's but it dosen't seem to work.
Код:
	if(strcmp(cmd, "/az", true) == 0)
	{
			if (PlayerInfo[playerid][pAdmin] >= 3 || PlayerInfo[playerid][pGM] >= 4 || IsPlayerAdmin(playerid))
				{
				SetPlayerPos(playerid, 1323.8557, 238.8070, 1600.4843);
				TogglePlayerControllable(playerid, 0);
				SetTimerEx("UnfreezePlayer", 3000, false, "i", playerid);
				}
				return 1;
	}
Reply
#3

pawn Код:
forward UnfreezePlayer(playerid);

public UnfreezePlayer(playerid)
{
TogglePlayerControllable(playerid,1);
return 1;
}
Reply
#4

pawn Код:
if(strcmp(cmd, "/az", true) == 0)
    {
            if (PlayerInfo[playerid][pAdmin] >= 3 || PlayerInfo[playerid][pGM] >= 4 || IsPlayerAdmin(playerid))
                {
                SetPlayerPos(playerid, 1323.8557, 238.8070, 1600.4843);
                TogglePlayerControllable(playerid, 0);
                SetTimerEx("UnfreezePlayer", 3000, false, "i", playerid);
                }
                return 1;
    }

pawn Код:
forward UnfreezePlayer(playerid);

public UnfreezePlayer(playerid)
{
   TogglePlayerControllable(playerid,1);
   return 1;
}

That'll work perfectly, atleast it should.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)