[Pomoc] Komanda za ps

Započeo [SA] 'Ace !, Septembar 15, 2011, 09:57:04 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:  Moja scripta
Detaljan opis problema: Napravio sam komandu /zakaci za PS ali kako sad da napravim da PS odvuce auto do nekog CP i da tu ostane auto a da vlasnik mora platit da bi vratio auto.... /preuzmiauto
Dio skripte:
if(strcmp(cmd,"/zakaci",true)==0)
   {
       if(IsPlayerConnected(playerid))
      {
          if(PlayerInfo[playerid][pLeader] == 19 || PlayerInfo[playerid][pMember] == 19)
          {
              if(IsPlayerInAnyVehicle(playerid))
              {
                  new m = GetVehicleModel(GetPlayerVehicleID(playerid));
                if (m == 525 || m == 552)
                    {
                        if(GetPlayerState(playerid)==2)
                        {
                     new Float:pX,Float:pY,Float:pZ;
                     GetPlayerPos(playerid,pX,pY,pZ);
                     new Float:vX,Float:vY,Float:vZ;
                     new Found=0;
                     new vid=0;
                     while((vid<MAX_VEHICLES)&&(!Found))
                     {
                           vid++;
                           GetVehiclePos(vid,vX,vY,vZ);
                           if ((floatabs(pX-vX)<7.0)&&(floatabs(pY-vY)<7.0)&&(floatabs(pZ-vZ)<7.0)&&(vid!=GetPlayerVehicleID(playerid)))
                        {
                               Found=1;
                               if(IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid)))
                                {
                                   DetachTrailerFromVehicle(GetPlayerVehicleID(playerid));
                                }
                                else
                                {
                               AttachTrailerToVehicle(vid,GetPlayerVehicleID(playerid));
                           }
                         }
                       }
                     if(!Found)
                      {
                           SendClientMessage(playerid,0xFFFF00AA,"Nema vozila u blizini.");
                        }
                  }
                  else
                  {
                     SendClientMessage(playerid, COLOR_GRAD2, "Moras biti vozac!");
                     return 1;
                  }
               }
               else
               {
                  SendClientMessage(playerid, COLOR_GRAD2, "Moras biti u vozilu slep sluzbe!");
                  return 1;
               }
            }
            else
            {
               SendClientMessage(playerid, COLOR_GRAD2, "Moras biti u vozilu!");
               return 1;
            }
         }
         else
         {
            SendClientMessage(playerid,COLOR_GRAD2,"Nisi Parking Servis!");
            return 1;
         }
      }
      return 1;
   }
Neke slike/video za lakse dobivanje pomoci(neobavezno): /