[Ajuda] Godmode off deixa o carro indestrutivel
#4

Pronto, so add mais uma coisinha e ficou ok, [TOPICO RESOLVIDO]

Quem estiver com o mesmo erro:

ADD NO TOPO DO GM
pawn Код:
new GodCar[MAX_PLAYERS];
E MUDA O CMD PRA ESSE:
pawn Код:
CMD:god(playerid, params[])
{
    if(PlayerInMiniGame[playerid] != MINIGAME_NONE) return SendClientMessage(playerid, 0xFF4500FF, "Estб em um minijogo, use /sair");
    if(IsPlayerInRace) return SendClientMessage(playerid, 0xFF4500FF, "Estб em uma corrida, use /exitrace");
    if(PlayerInfo[playerid][pGodMode] == 0)
    {
        GodCar[playerid] = 1;  //LINHA 16781
        PlayerInfo[playerid][pGodMode] = 1;
        ResetPlayerWeapons(playerid);
        SetPlayerHealth(playerid, 9999999);
        godMode[playerid] = Create3DTextLabel("God Mode ON!", 0x008080FF, 30.0, 40.0, 50.0, 10.0, 0);
        GameTextForPlayer(playerid, "~g~godmode~n~~y~on", 2000, 5);
        Attach3DTextLabelToPlayer(godMode[playerid], playerid, 0.0, 0.0, 0.7);
    }
    else
    {
        GodCar[playerid] = 0;
        PlayerInfo[playerid][pGodMode] = 0;
        SetPlayerHealth(playerid, 100.0);
        GameTextForPlayer(playerid, "~r~godmode~n~~y~off", 2000, 5);
        Delete3DTextLabel(godMode[playerid]);
    }
    return 1;
}
+rep para @TorresPutado
Reply


Messages In This Thread
Godmode off deixa o carro indestrutivel - by GuiihCamargo - 14.01.2014, 20:14
Respuesta: Godmode off deixa o carro indestrutivel - by TorresPutado - 14.01.2014, 20:55
Re: Godmode off deixa o carro indestrutivel - by PT - 14.01.2014, 20:58
Re: Respuesta: Godmode off deixa o carro indestrutivel - by GuiihCamargo - 14.01.2014, 21:19

Forum Jump:


Users browsing this thread: 3 Guest(s)