SA-MP Forums Archive
How is this possible - 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: How is this possible (/showthread.php?tid=587522)



How is this possible - Hotspot - 31.08.2015

How is this man able to make genuine interior enter/exit in the game ?


Need Proof?

sa-mp-009.jpg

sa-mp-010.jpg


Plz help me with this


Re: How is this possible - xVIP3Rx - 31.08.2015

Using DisableInteriorEnterExits, CreatePickup and OnPlayerPickUpPickup


Re: How is this possible - CrazyChoco - 31.08.2015

Pickups?


Re: How is this possible - IceBilizard - 31.08.2015

its object i got that script with same markers on my enter/exit


Re: How is this possible - lanix - 31.08.2015

just learn how to use pickups


Re: How is this possible - Hotspot - 01.09.2015

I know how to use pickup but I want that original size pickup

I think ice billard has given a right answer


Re: How is this possible - Hotspot - 01.09.2015

ice blizzars from where did you got that script I have seen it over 6 different server s?


Re: How is this possible - Abagail - 01.09.2015

You can use something such as http://forum.sa-mp.com/archive/index.php/t-124091.html to fade the screen in and out like in singleplayer.

You can also use GameTextForPlayer(using style #1) to emulate the location text at the bottom-left of the screen.

Then as others have suggested you can use a pickup for the actual enter / exit visual. Note also some servers may be using the default enter / exit pickups from singleplayer.

Example:
pawn Код:
new PlayerEntering[MAX_PLAYERS] = -1;

enum enterData
{
    bool: eActive,
    Float: eX,
    Float: eY,
    Float: eZ,
    Float: eAngle,
    eInt,
    eVW,
    eName[32]
}

new EnterExits[MAX_PICKUPS][enterData];

public OnPlayerConnect(playerid)
{
    PlayerEntering[playerid] = -1;
    return true;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(EnterExits[pickupid][eActive])
    {
        FadePlayerScreen(playerid, 10000);
        PlayerEntering[playerid] = pickupid;
    }
   
    return 1;
}

public OnFadeComplete(playerid, beforefade)
{
    if(PlayerEntering[playerid] == -1) return 1;

    new pickupid = PlayerEntering[playerid];
    if(beforefade)
    {
        SetPlayerPos(playerid, EnterExits[pickupid][eX], EnterExits[pickupid][eY], EnterExits[pickupid][eZ]);
        SetPlayerInterior(playerid, EnterExits[pickupid][eInt]);
        SetPlayerVirtualWorld(playerid, EnterExits[pickupid][eVW]);
        SetPlayerFacingAngle(playerid, EnterExits[pickupid][eAngle]);
       
        TogglePlayerControllable(playerid, 0);
    }
   
    else
    {
        new string[44];
        format(string, sizeof string, "~b %s", EnterExits[pickupid][eName]);
        GameTextForPlayer(playerid, string, 2000, 1);
       
        TogglePlayerControllable(playerid, 1);
       
        PlayerEntering[playerid] = -1;
    }
   
    return 1;
}



Re: How is this possible - Hotspot - 03.09.2015

nice and thanks