[Pomoc] Parking Servis

Započeo [SA] 'Ace !, Septembar 28, 2011, 19:32:12 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta koju koristim:Moja scripta
Detaljan opis problema:Napravio sam komandu /zakaci za parking servis i sve radi, ali kako sad da napravim da posle ove komande dodam CP gde treba odvuc zakaceno auto i da kad dodje na taj CP da se auto odkaci od pauka.
Dio skripte:
//-----------------------------[Parking servis]--------------------------------------------------------
   if(strcmp(cmd,"/Zakaci",true)==0)
   {
       if(IsPlayerConnected(playerid))
      {
          if(PlayerInfo[playerid][pLeader] == 21 || PlayerInfo[playerid][pMembers] == 21)
          {
              if(IsPlayerInAnyVehicle(playerid))
              {
                if (GetVehicleModel(GetPlayerVehicleID(playerid)) == 525)
                    {
                        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 automobila u blizini.");
                        }
                  }
                  else
                  {
                     SendClientMessage(playerid, COLOR_GRAD2, "Morate biti na mjestu vozaca.");
                     return 1;
                  }
               }
               else
               {
                  SendClientMessage(playerid, COLOR_GRAD2, "Morate biti u pauku da bi mogli ovo koristit");
                  return 1;
               }
            }
            else
            {
               SendClientMessage(playerid, COLOR_GRAD2, "Morate biti u vozilu da biste koristili ovu komandu.");
               return 1;
            }
         }
         else
         {
            SendClientMessage(playerid,COLOR_GRAD2,"Morate biti clan parking servisa da bi koristili ovu komandu.");
            return 1;
         }
      }
      return 1;
   }
Neke slike/video za lakse dobivanje pomoci(neobavezno)://

If playertopoint pa napraviš da ti respawna auto i da mu pare (ako oces)..

Citat: pHon poslato Septembar 28, 2011, 19:35:48 POSLE PODNE
If playertopoint pa napraviš da ti respawna auto i da mu pare (ako oces)..
Da to bi i hteo da napravim.

Pa napravi...
Ne mogu ti ja napravit kad ne znam kako ti je definirano i sve to :/

imaš if(PlayerToPoint(radius,playerid,x,y,z))
pa probaj sam napravit
staviš koordinate i onda da ga respawna i da mu pare..


prouci ovo malo oko setplayercheckpoint

http://wiki.sa-mp.com/wiki/SetPlayerCheckpoint
sve ces ubrzo shaviti
Vratio sam se ponovo ocekjute novi server...