PARTNERI:
-UPOZORENJE-

Samo registrovani članovi mogu da vide/koriste forum u celini.
Prijavite se ili registrujte nalog na Balkan SA-MP forumu.


Autor Tema: [Pomoc]/drag  (Pročitano 49 puta)

0 članova i 1 gost pregledaju ovu temu.

Van mreže Muce

  • Transformer
  • *
  • Poruke: 60
  • Pol: Muškarac
[Pomoc]/drag
« poslato: Decembar 03, 2014, 21:49:56 posle podne »
Skripta koju koristim:Los Angeles HardPlay
Detaljan opis problema:Ovako kad dam nekome wanted i želim da ga ubacim u svoje vozilo pomocu komande /drag izbaci mi /drag [ID Igraca/Dio Imena] [1-2-3] i kucam npr /drag 1 1 i nece nedode mi nista niti hoce da ga ubaci u vozilo možel objašnjenje kako da to sredim,hvala unapred
Dio skripte:    if(strcmp(cmd, "/drag", true) == 0 || strcmp(cmd, "/ubaci", true) == 0) //
   {
       if(IsPlayerConnected(playerid))
       {
           if(!IsACop(playerid))
         {
             SendClientMessage(playerid, COLOR_GRAD1, "Vi niste policajac!");
             return 1;
         }
         tmp = strtok(cmdtext, idx);
         if(!strlen(tmp))
         {
            SendClientMessage(playerid, COLOR_GRAD2, "{008CF0}[BC]{FFFFFF} /drag [ID Igraca/Dio Imena] [1-2-3]");
            return 1;
         }
         new newcar = GetPlayerVehicleID(playerid);
         new playa;
         playa = ReturnUser(tmp);
         if(IsACopCar(newcar) || IsAnCobra(newcar) || IsAnOscCar(newcar))
         {
             if(IsPlayerConnected(playa))
             {
                 if(playa != INVALID_PLAYER_ID)
                 {
                     new Float:x, Float:y, Float:z;
                     GetPlayerPos(playa,x,y,z);
                     if(PlayerToPoint(5, playerid, x, y, z))
                     {
                         new x_nr[256];
                     x_nr = strtok(cmdtext, idx);
                         if(strcmp(x_nr,"1",true) == 0)
                         {
                           PutPlayerInVehicle(playa,newcar,1);
                           GetPlayerName(playa, giveplayer, sizeof(giveplayer));
                        GetPlayerName(playerid, sendername, sizeof(sendername));
                        format(string, sizeof(string), "* %s ubacuje %s-a u svoj auto.", sendername ,giveplayer);
                        ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                     }
                         else if(strcmp(x_nr,"2",true) == 0)
                         {
                           PutPlayerInVehicle(playa,newcar,2);
                           GetPlayerName(playa, giveplayer, sizeof(giveplayer));
                        GetPlayerName(playerid, sendername, sizeof(sendername));
                        format(string, sizeof(string), "* %s ubacuje %s-a u svoj auto.", sendername ,giveplayer);
                        ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                     }
                         else if(strcmp(x_nr,"3",true) == 0)
                         {
                           PutPlayerInVehicle(playa,newcar,3);
                           GetPlayerName(playa, giveplayer, sizeof(giveplayer));
                        GetPlayerName(playerid, sendername, sizeof(sendername));
                        format(string, sizeof(string), "* %s ubacuje %s-a u svoj auto.", sendername ,giveplayer);
                        ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                     }
                  }
                  else
                  {
                     SendClientMessage(playerid, COLOR_GREY, "Igrac nije blizu vas.");
                  }
               }
             }
         }

       }
       return 1;
   }
Neke slike/video za lakse dobivanje pomoci(neobavezno):Evo i slika http://i.imgur.com/ZL4rUnd.png