Problem with safeobject.
#5

make a check when players press F like
pawn Код:
if(newkeys & 16 && !IsPlayerInAnyVehicle(playerid))
    {
        if(PlayerTemp[playerid][key_enter] == 2)
        {
            CheckExit(playerid);
            CheckEnter(playerid);
            if(IsPlayerNearAnyDoors(playerid))
            {
                // Enter bulding
                TogglePlayerControllable(playerid, 0);
                GameTextForPlayer(playerid, "Loading..", 4000, 5);
                SetPVarInt(playerid, "LoadingObjects", 1);
                SetTimerEx("SafeLoadObjects", 5000, 0, "d", playerid);
            }
            else
            {
                // Enter vehicle or whatever
            }
        }
Reply


Messages In This Thread
Problem with safeobject. - by ajam112 - 01.06.2014, 09:24
Re: Problem with safeobject. - by Ciandlah - 01.06.2014, 09:49
Re: Problem with safeobject. - by ajam112 - 01.06.2014, 10:05
Re: Problem with safeobject. - by ajam112 - 01.06.2014, 10:54
Re: Problem with safeobject. - by rickisme - 01.06.2014, 11:20
Re: Problem with safeobject. - by ajam112 - 01.06.2014, 13:02

Forum Jump:


Users browsing this thread: 1 Guest(s)