[Pedido] Comando Bomba Atфmica!
#1

Bom eu Tentei Fazer mais nгo deu muito certo, serб que alguйm poderia fazer para min ?
O Comando teria de fazer o seguinte: ao usar /bombaa o comando colocaria fogo em todos e setaria a vida em 0 e depois apareзa que O Administrador "X" Matou todos com uma Bomba Atфmica.
O mбximo que eu consegui fazer foi isto:

pawn Code:
COMMAND:bombaa(playerid, params[])
{
    new Msg[128], Name[24], AdminName[24]
    SendAdminText(playerid, "/bombaa", params);
    if (APlayerData[playerid][LoggedIn] == true)
    {
        if (APlayerData[playerid][PlayerLevel] >= 5)
        {
            for (new i; i < MAX_PLAYERS; i++)
            if (IsPlayerConnected(i))
            if (IsPlayerInAnyVehicle(i) == 0)
            SetPlayerHealth(i, 0.0);
            GetPlayerName(playerid, AdminName, sizeof(AdminName));

    new player1;
    player1 = MAX_PLAYERS;
    new Float:burnx;
    new Float:burny;
    new Float:burnz;

            GetPlayerPos(player1,burnx, burny, burnz);
            CreateExplosion(burnx, burny , burnz + 3, 1, 3);
            format(Msg, 128, "{FF0000}-| O Administrador %s Matou todos com uma Bomba Atфmica. |-", AdminName);
            SendClientMessageToAll(0xFFFFFFFF, Msg);
        }
    }
    return 1;
}
Mais eu acho que ta tudo errado =S, eu nгo conseguir fazer todos ganharem uma explosгo =S
Reply


Messages In This Thread
Comando Bomba Atфmica! - by jdsfenix - 29.04.2014, 06:36
Re: Comando Bomba Atфmica! - by shittt - 29.04.2014, 13:07
Re: Comando Bomba Atфmica! - by jdsfenix - 29.04.2014, 16:31
Re: Comando Bomba Atфmica! - by jdsfenix - 29.04.2014, 17:30

Forum Jump:


Users browsing this thread: 1 Guest(s)