if(strcmp(cmdtext,"/teleport",true) == 0)
{
if(GetPlayerMoney(playerid)>=1000)
{
if(IsPlayerInRangeOfPoint(playerid, 3,231.1188,2017.8610,18.8266) || IsPlayerInRangeOfPoint(playerid, 3, -134.2494,990.2433,20.8266) || IsPlayerInRangeOfPoint(playerid, 3, -1481.2926,2537.2986,57.8266) || IsPlayerInRangeOfPoint(playerid, 3, -175.4669,2643.7397,64.8266))
{
SetPlayerPos(playerid,142.2588,911.6749,798.9789);
SendClientMessage(playerid, COLOR_RED , "Welcome on the plane!");
GivePlayerMoney (playerid, -1000);
GivePlayerWeapon(playerid,46,1);
}
}
else
{
SendClientMessage(playerid,COLOR_RED,"You Don't have enough money or you are not at heli!");
}
return 1;
}