[AJUDA] teleporte
#5

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;
}
Reply


Messages In This Thread
[AJUDA] teleporte - by GhosT_[] - 08.06.2012, 13:59
Re: [AJUDA] teleporte - by Kuddy - 08.06.2012, 14:05
Re: [AJUDA] teleporte - by GhosT_[] - 08.06.2012, 14:11
Re: [AJUDA] teleporte - by paulor - 08.06.2012, 14:29
Re: [AJUDA] teleporte - by Crueliz0n - 08.06.2012, 14:55
Re: [AJUDA] teleporte - by GhosT_[] - 08.06.2012, 15:08
Re: [AJUDA] teleporte - by Crueliz0n - 08.06.2012, 15:10
Re: [AJUDA] teleporte - by paulor - 08.06.2012, 15:39

Forum Jump:


Users browsing this thread: 1 Guest(s)