08.06.2012, 14:55
veja se funciona assim:
pawn Код:
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;
}