[Ajuda] Sistema de Misseis
#1

Bom Pessoal se alguйm pode me ajudar quando eu dou /misseis e coloco a coordenada o missel nгo й lanзado se alguйm pode me ajudar eu agradeзo '-'

pawn Код:
if(strcmp(cmd, "/misseis", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /misseis [X] [Y] [Z]");
                return 1;
            }
            new Float:para1;
            new Float:para2;
            new Float:para3;
            para1 = strval(tmp);
            tmp = strtok(cmdtext, idx);
            para2 = strval(tmp);
            tmp = strtok(cmdtext, idx);
            para3 = strval(tmp);
            if (PlayerToPoint(6.0,playerid,2751.4663,-2453.8887,13.6432) || PlayerToPoint(6.0,playerid,409.2089,2542.7192,17.6184) || PlayerToPoint(6.0,playerid,-1324.3011,492.0768,22.5156))
            {
              if(PlayerInfo[playerid][pCargo] < 3)
              {
                SendClientMessage(playerid, COLOR_GREY, "Vocк precisa de cargo 3 para pegar este equipamento!");
                return 1;
              }
                if(PlayerInfo[playerid][pMembro] == 6 || PlayerInfo[playerid][pLider] == 6 || PlayerInfo[playerid][pMembro] == 15 || PlayerInfo[playerid][pLider] == 15 || PlayerInfo[playerid][pMembro] == 3 || PlayerInfo[playerid][pLider] == 3)
                {
                if(pbmisseis == 1)
                {
                SendClientMessage(playerid,COLOR_GRAD2,"Jб usaram Misseis, aguarde 1 Hora para usar novamente!");
                return 1;
                    }
                  CreateExplosion(para1,para2,para3, 6, 7);
                  GetPlayerName(playerid, sendername, MAX_PLAYER_NAME);
//                  SendClientMessageToAll(playerid, 0xFF000000, "|BHP|______________________Aviso Terrorista, Forзas Armadas______________________|BHP|");
                  format(string, sizeof(string), "ATENЗAO: %s Acabo de Lanзa um Misseo, Cuidado", Tax);
                  SendClientMessageToAll(0xFF8282AA, string);
                  SendClientMessage(playerid, 0xFF000000, "Vocк acaba de enviar Missoes");
                  PlayerInfo[playerid][pInt] = 0;
                  pbmisseis = 1;
                  Tempolancamisseis = SetTimer("lancamisseis", 3600000, 0);
                }
                else
                {
                SendClientMessage(playerid, 0xFF000000, "Voce nao e dos Alqaeda, Forзas Armadas ou Taliban");
                }
            }
        }
        return 1;
    }
Reply
#2

Up pra ajudar
Reply
#3

-1 pelo up.
Reply
#4

Ninguйm ajuda, nem msm eu, tenso :/
Reply
#5

Alguem ajuda -'
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)