21.07.2015, 21:25
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/entrar", true))
{
if(IsPlayerInAnyVehicle(playerid))
{
new vehid = GetPlayerVehicleID(playerid);
if(IsPlayerInRangeOfPoint(playerid, 7.0, -233.1192,987.3795,19.6272))
{
SetVehiclePos(vehid,-1615.9586,742.4404,-5.2422);
SetPlayerVirtualWorld(playerid, 54);
SetVehicleVirtualWorld(GetPlayerVehicleID(playerid), 54);
SetPlayerPos(playerid,-1615.9586,742.4404,-5.2422);
}
}
}
return 1;
}