SA-MP Forums Archive
Pickup - 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: Pickup (/showthread.php?tid=507098)



Pickup - Ananisiki - 15.04.2014

So i have commented the line there i create the pickup for exit in a interior, but when i walk in to the pickup outside, to get inside, it puts me on the exit position coordinate, why is this? i have commented other exit pickups and i have walked in to the enter pickups and they work, why is this one like this?


pawn Код:
if(pickupid == Enter)
    {
        SetPlayerPos(playerid, -794.9509,494.1766,1376.1953);
        SetCameraBehindPlayer(playerid);
        SetPlayerInterior(playerid, 1);
        SetPlayerFacingAngle(playerid, 0);
    }
    if(pickupid == Exit)
    {
        SetPlayerPos(playerid, 2127.5437,2374.0249,10.8203);
        SetCameraBehindPlayer(playerid);
        SetPlayerInterior(playerid, 0);
        SetPlayerFacingAngle(playerid, 180);
    }



Re: Pickup - Dubya - 15.04.2014

Because the pickups are going as soon as you get in them. Add a variable checking if they've been in a pickup recently, then settimer to set it back


Re: Pickup - Ananisiki - 16.04.2014

How