[Ajuda]SetPlayerInterior BUG
#2

pawn Code:
new Celula[128];
new Float:CorX,Float:CorY,Float:CorZ, Interior;
new id;
   COMMAND:trazer(playerid, params[])
   {
        new VeiculoTrazer = GetPlayerVehicleID(id);
        if(PlayerInfo[playerid][pAdmin] > 1) return SendClientMessage(playerid, ERRO, "Vocк Nгo й Administrador.");
        if(sscanf(params, "u", id)) return SendClientMessage(playerid, CorCinza, "Use: /trazer [ID]");
        if(!IsPlayerConnected(id)) return SendClientMessage(playerid, CorCinza, "Jogador nгo conectado!");
        GetPlayerName(playerid, Jogador, 23);
        GetPlayerName(id, Outro, 23);
        GetPlayerPos(playerid, CorX, CorY, CorZ);
        if(!IsPlayerInVehicle(id, VeiculoTrazer))
        {
            SetPlayerVirtualWorld(id, GetPlayerVirtualWorld(playerid));
            SetPlayerInterior(id, GetPlayerInterior(playerid));
        }
        else
        {
            SetVehiclePos(VeiculoTrazer, CorX, CorY+4, CorZ);
            LinkVehicleToInterior(VeiculoTrazer, Interior);
        }
        SetPlayerPos(id, CorX, CorY+4, CorZ);
        format(Celula, sizeof(Celula), "{2641FE}Vocк Puxou o Player {33FF00}%s{2641FE}.", Outro);
        SendClientMessage(playerid, -1, Celula);
        format(Celula, sizeof(Celula), "{2641FE}O Administrador {33FF00}%s{2641FE} Lhe Puxou.", Jogador);
        SendClientMessage(id, -1, Celula);
        return true;
   }
Reply


Messages In This Thread
[Ajuda]SetPlayerInterior BUG - by Sergio_MOW - 18.09.2011, 17:59
Re: [Ajuda]SetPlayerInterior BUG - by JonathanFeitosa - 18.09.2011, 18:03
Re: [Ajuda]SetPlayerInterior BUG - by Sergio_MOW - 18.09.2011, 18:05
Re: [Ajuda]SetPlayerInterior BUG - by JonathanFeitosa - 18.09.2011, 18:08
Re: [Ajuda]SetPlayerInterior BUG - by Sergio_MOW - 18.09.2011, 18:09
Re: [Ajuda]SetPlayerInterior BUG - by [O.z]Caroline - 18.09.2011, 18:11

Forum Jump:


Users browsing this thread: 2 Guest(s)