04.02.2011, 04:03
Hello, I was having a problem with this.. I tried many ways and it failed.. I need to make it where it will teleport you if your in a vehicle.. Or on foot.
pawn Код:
if(strcmp("/vipgarage", cmdtext, true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 3.0, 1263.40527344,-1673.39611816,12.74134350))//Garage
{
SetPlayerPos(playerid, 1145.54235840,-1693.51977539,1587.66223145);
SetPlayerInterior(playerid, 0);
GameTextForPlayer( playerid, "You have Entered the VIP Garage!", 3000, 1 );
}
else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1145.54235840,-1693.51977539,1587.66223145))//Room
{
SetPlayerPos(playerid, 1263.40527344,-1673.39611816,12.74134350);
SetPlayerInterior(playerid, 0);
GameTextForPlayer( playerid, "You have Exited the VIP Garage!", 3000, 1 );
}
return 1;
}