15.04.2014, 23:21
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);
}