pawn Код:
if(!strcmp(cmdtext, "//teleporte", true)){
if(!IsPlayerInAnyVehicle(playerid)){
SetPlayerPos(playerid, 1800.6090087891, 1718.2277832031, 1130.1722412109);
SetPlayerFacingAngle(playerid, 0.0);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
}
else{
new veh = GetPlayerVehicleID(playerid);
SetVehiclePos(veh, 1800.6090087891, 1718.2277832031, 1130.1722412109);
SetVehicleZAngle(veh, 0.0);
LinkVehicleToInterior(veh, 0);
SetVehicleVirtualWorld(veh, 0);
PutPlayerInVehicle(playerid, veh, 0);
}
return SendClientMessage(playerid, 0x4FD200FF, "Vocк foi teleportado com sucesso");
}
pawn Код:
if(!strcmp(cmdtext, "//teleporte", true)){
SetPlayerPos(playerid, 1800.6090087891, 1718.2277832031, 1130.1722412109);
SetPlayerFacingAngle(playerid, 0.0);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
return 1;
}
pawn Код:
if(!strcmp(cmdtext, "//teleporte", true)){
if(!IsPlayerInAnyVehicle(playerid)){
SetPlayerPos(playerid, 1800.6090087891, 1718.2277832031, 1130.1722412109);
SetPlayerFacingAngle(playerid, 0.0);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
}
else{
new veh = GetPlayerVehicleID(playerid);
SetVehiclePos(veh, 1800.6090087891, 1718.2277832031, 1130.1722412109);
SetVehicleZAngle(veh, 0.0);
LinkVehicleToInterior(veh, 0);
SetVehicleVirtualWorld(veh, 0);
PutPlayerInVehicle(playerid, veh, 0);
}
return 1;
}
Escolha 1 [;