how to make freeze while enter building
#1

Heres all my "CheckEnter", theres many people has helped but still not work.. please any pro help me..

pawn Код:
if(newkeys & 16 && !IsPlayerInAnyVehicle(playerid))
    {
        if(PlayerTemp[playerid][key_enter] == 2)
        {
            CheckExit(playerid);
            CheckEnter(playerid);
        }
        for( new i; i < sizeof(setting_TP); i++)
        {
            if(setting_TP[i][tEnterX] == 0.0) continue;
            if(IsPlayerInRangeOfPoint(playerid, 2.0, setting_TP[i][tEnterX],setting_TP[i][tEnterY], setting_TP[i][tEnterZ]))
            {
                if(GetPlayerInterior(playerid) == setting_TP[i][tEnterINT] && GetPlayerVirtualWorld(playerid) == setting_TP[i][tEnterVW])
                {
                    SetPlayerPosEx(playerid,setting_TP[i][tExitX],setting_TP[i][tExitY],setting_TP[i][tExitZ],setting_TP[i][tExitINT],setting_TP[i][tExitVW]);
                    //TogglePlayerControllable(playerid, 0); // This freezes the player once he gets moved
                    //SetTimerEx("Unfreeze",5000,false,"i",playerid); // This will unfreeze the player after 3 seconds
                    //SetTimer("EventSignup", 10000, false);
                    TogglePlayerControllable(playerid, 0);
                    //GameTextForPlayer(playerid, "Objects loading...", 4000, 5);
                    //SetPVarInt(playerid, "LoadingObjects", 1);
                    SetTimerEx("SafeLoadObjects", 5000, 0, "d", playerid);
                }
            }
            if(IsPlayerInRangeOfPoint(playerid, 2.0, setting_TP[i][tExitX],setting_TP[i][tExitY],setting_TP[i][tExitZ]))
            {
                if(GetPlayerInterior(playerid) == setting_TP[i][tExitINT] && GetPlayerVirtualWorld(playerid) == setting_TP[i][tExitVW])
                {
                    SetPlayerPosEx(playerid,setting_TP[i][tEnterX],setting_TP[i][tEnterY], setting_TP[i][tEnterZ], setting_TP[i][tEnterINT],setting_TP[i][tEnterVW]);
                    //TogglePlayerControllable(playerid, 0); // This freezes the player once he gets moved
                    TogglePlayerControllable(playerid, 0);
                    //SetTimerEx("Unfreeze",5000,false,"i",playerid); // This will unfreeze the player after 3 seconds
                    //SetTimer("EventSignup", 50000, false);
                    SetTimerEx("SafeLoadObjects", 5000, 0, "d", playerid);
                }
            }
        }
    }
Reply
#2

Код:
forward SafeLoadObjects(playerid)
public SafeLoadObjects(playerid)
{
 TogglePlayerControllable(playerid, 1);
}
Reply
#3

Quote:
Originally Posted by Slicebook
Посмотреть сообщение
Код:
forward SafeLoadObjects(playerid)
public SafeLoadObjects(playerid)
{
 TogglePlayerControllable(playerid, 1);
}
Not that, please if you not sure..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)