17.01.2017, 12:56
Why u don't use
e.t.c.
Also i think if use this will work.
Ex: That's your script:
That's the ideea that i think will work:
Also create that pickups and don't use them just let them be there.
And when a player is in the range of that pickup, will automatically teleport him inside. I think.
Also reply and if i'll can i'll try to help u.
PHP код:
if( IsPlayerInRangeOfPoint( playerid, 3.0, posX, posY, posZ ) )
Also i think if use this will work.
Ex: That's your script:
PHP код:
new Liberty_enter;
new Liberty_exit;
=======================================
if(pickupid==Liberty_enter)
{
SetPlayerInterior(playerid,1);
SetPlayerPos(playerid,-794.806396,497.738037,1376.195312);
GameTextForPlayer(playerid,"Welcome in~n~~b~Liberty city inside",3000,6);
}
if(pickupid==Liberty_exit)
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,-1985.8883,406.5079,35.3299);
SetPlayerFacingAngle(playerid,90);
}
=========================================
and paste=========
Liberty_enter = CreatePickup(1318,1,-1982.7072,406.7149,35.3299);
Liberty_exit = CreatePickup(1318,1,-795.0205,489.2810,1376.1953);
PHP код:
if( IsPlayerInRangeOfPoint( playerid, 3.0, -1982.7072,406.7149,35.3299 )) // liberty enter pickup inside, posX, posY, posZ
{
SetPlayerInterior(playerid,1);
SetPlayerPos(playerid, -794.806396, 497.738037, 1376.195312);
GameTextForPlayer(playerid,"Welcome in~n~~b~Liberty city inside",3000,6);
}
else if( IsPlayerInRangeOfPoint( playerid, 3.0, -795.0205, 489.2810, 1376.1953 )) // liberty exit pickup inside, posX, posY, posZ
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,-1985.8883,406.5079,35.3299);
SetPlayerFacingAngle(playerid,90);
}
And when a player is in the range of that pickup, will automatically teleport him inside. I think.
Also reply and if i'll can i'll try to help u.