[ajuda]Sistema de Atentado
#1

galera estou fasendo um sistema de atentado tipo eu ainda nгo decidi aonde o player o terrorista vai para digitar /atentado pra poder inicias o ataque bom й assim eu to criando tipo o player vai tipo no Aeroport de Los santos ai tem um Icone la que eu vo coloca ai tipo ele digita /atentado e ai comeзa faser explosхes na cordenada que eu escolher mais ai eu nem sei como vou faser isso vo postar o cod abaixo como que ta.

pawn Код:
if(strcmp(cmd, "/atentado", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(PlayerInfo[playerid][pMembro] == 16 || PlayerInfo[playerid][pLider] == 16 || PlayerInfo[playerid][pMembro] == 6 || PlayerInfo[playerid][pLider] == 6)
            {
                if (GetPlayerState(playerid) == 2)
                {
                    new gangtext[64];
                    if(PlayerInfo[playerid][pMembro] == 16 || PlayerInfo[playerid][pLider] == 16) { gangtext = "Al'qaeda"; }
                    else if(PlayerInfo[playerid][pMembro] == 18 || PlayerInfo[playerid][pLider] == 18) { gangtext = "Taliban"; }
                    new Nick[MAX_PLAYER_NAME];
                    new Float:x, Float:y, Float:z;
                    GetVehiclePos(vehicleid, x, y, z);
                    GetPlayerName(playerid, Nick, sizeof(Nick));
                    format(string, 256, "AdmAviso: %s Explodiu um carro bomba.", Nick);
                    ABroadCast(COLOR_YELLOW,string,1);
                    format(string, sizeof(string), "%s e os %s estгo fasendo um ataque na 24/7 de Los Santos!", sendername, gangtext);
                    SendClientMessageToAll(COLOR_YELLOW, string);
                    CreateExplosion(x, y , z, 7, 17);
                    CreateExplosion(x+2, y+2 , z, 7, 17);
                    CreateExplosion(x-2, y-2 , z, 7, 17);
                    CreateExplosion(x+4, y+4 , z, 7, 17);
                    CreateExplosion(x-4, y-4 , z, 7, 17);
                    CreateExplosion(x+6, y+6 , z, 7, 17);
                    CreateExplosion(x-6, y-6 , z, 7, 17);
                }
                else
                {
                    SendClientMessage(playerid, COLOR_GRAD1, "Voce nгo estб no lanзa micel.");
                }
            }
            else
            {
                SendClientMessage(playerid, COLOR_LIGHTRED, "Voce nгo й da Al'Qaeda / Taliban!");
            }
        }
        return 1;
    }
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)