Pickup
#1

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);
    }
Reply
#2

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
Reply
#3

How
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)