if(strcmp(cmdtext, "/insano", true) == 0) { if(IsPlayerInAnyVehicle(playerid)) { new VehicleID; VehicleID = GetPlayerVehicleID(playerid); SetVehiclePos(VehicleID,-311.8446,-370.4777,358.8438); new pname[MAX_PLAYER_NAME]; GetPlayerName(playerid, pname, MAX_PLAYER_NAME); format(string, sizeof(string), "%s foi para o Insano (/INSANO)", pname); SendClientMessageToAll(COR_GEO, string); SetPlayerInterior(playerid,0); SetVehicleZAngle(GetPlayerVehicleID(playerid), 90.1131); SendClientMessage(playerid, COLOR_GREEN,"[INFO]: Se Objetos nгo Estiverem Carregados ,saia do veiculo e entre denovo"); } else{ new pname[MAX_PLAYER_NAME]; GetPlayerName(playerid, pname, MAX_PLAYER_NAME); format(string, sizeof(string), "%s foi para Insano (/INSANO)", pname); SendClientMessageToAll(COR_GEO, string); SetPlayerInterior(playerid,0); SetPlayerPos(playerid,-367.3985,-370.5875,358.8438); } return 1; }
if(IsPlayerInAnyVehicle(playerid)) {
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
SetVehiclePos(vehicleid, Float:x, Float:y, Float:z);
} else {
SetPlayerPos(playerid, Float:x, Float:y, Float:z);
}
}
if(strcmp(cmdtext, "/insano", true) == 0)
{
if(IsPlayerInAnyVehicle(playerid))
{
new VehicleID;
if(GetPlayerVehicleSeat(playerid) == 1) return RemovePlayerFromVehicle(playerid);
VehicleID = GetPlayerVehicleID(playerid);
SetVehiclePos(VehicleID,-311.8446,-370.4777,358.8438);
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s foi para o Insano (/INSANO)", pname);
SendClientMessageToAll(COR_GEO, string);
SetPlayerInterior(playerid,0);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 90.1131);
SendClientMessage(playerid, COLOR_GREEN,"[INFO]: Se Objetos nгo Estiverem Carregados ,saia do veiculo e entre denovo");
}
else
{
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s foi para Insano (/INSANO)", pname);
SendClientMessageToAll(COR_GEO, string);
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,-367.3985,-370.5875,358.8438);
}
return 1;
}
1є paulor seu cуdigo quando o passageiro tenta se telportar nao acontece nada ele continua alie
2єblackdonelly pelo que eu vi quando o passageiro for se teleportar ele vai ser removido do veiculo й isso? |