pawn Код:
stock TeleportPlayer(playerid,CordX,CordY,CordZ)
{
if(IsPlayerInAnyVehicle(playerid))
{
new vehicleid;
SetVehiclePos(vehicleid,CordX,CordY,CordZ);
}
else if(!IsPlayerInAnyVehcile(playerid))
{
SetPlayerPos(playerid,CordX,CordY,CordZ);
}
return 1;
}
pawn Код:
TeleportPlayer(playerid, -1389.0780029297, 2622.4719238281, 55.56661605835);