Szerző Téma: Vontató  (Megtekintve 1619 alkalommal)

Nem elérhető DVS

  • 302
    • Profil megtekintése
Vontató
« Dátum: 2010. Június 24. - 07:58:20 »
0 Show voters
Tudom hogy már van 1 ilyen téma de ott nem segítettek dns-nek!
Nekem is ugyan az kellene ami dns-nek vagyis:
Egy Olyan Vontató Szkriptet kérnék Amivel bármelyik jármu bármelyik jármuvet vontatni tudja egy adott paranccsal! (( Pl: /vontat )) És a \'/lekapacsol\' Paranccsal pedig letenné :S Remélem értitek.. ez most fontos lenne :\\
Ja a helyesírási hibákat kijavítottam! :P
Elore is köszönöm! :D
« Utoljára szerkesztve: 2010. Június 24. - 08:26:05 írta DVS »

Nem elérhető BeNiBoY

  • 1342
    • Profil megtekintése
Vontató
« Válasz #1 Dátum: 2010. Június 24. - 08:42:36 »
0 Show voters
nekem van egy olyan, ami NUM6-tal veszi fel, teszi le. VKmaster muve :amazed:
 
#include <a_samp>
#define KEY_ANALOG_LEFT         16384
#define COLOR_WHITE 0xFFFFFFAA
public OnFilterScriptInit()
{
print(\"\\n--------------------------------------\");
print(\" All Vehicles Trailers   By VKmaster      \");
print(\"--------------------------------------\\n\");
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
   if(newkeys == KEY_ANALOG_LEFT ){
            if(IsPlayerInAnyVehicle(playerid)){
               new vehid = GetPlayerVehicleID(playerid);
               if(!IsTrailerAttachedToVehicle(vehid)){
                        new Float:x, Float:y, Float:z;
                   GetVehiclePos(vehid, x, y, z );
                   new vehiclet;
                   GetVehicleWithinDistance(playerid, x, y, z, 100.0, vehiclet);
                   AttachTrailerToVehicle(vehiclet, vehid);
               }
               else{
                  DetachTrailerFromVehicle(vehid);
            }
         }
}
return 1;
}
GetVehicleWithinDistance( playerid, Float:x1, Float:y1, Float:z1, Float:dist, &vehic){
for(new i = 1; i < MAX_VEHICLES; i++){
if(GetVehicleModel(i) > 0){
   if(GetPlayerVehicleID(playerid) != i ){
           new Float:x, Float:y, Float:z;
           new Float:x2, Float:y2, Float:z2;
      GetVehiclePos(i, x, y, z);
      x2 = x1 - x; y2 = y1 - y; z2 = z1 - z;
      new Float:iDist = (x2*x2+y2*y2+z2*z2);
      printf(\"Vehicle %d is %f\", i, iDist);
      if( iDist < dist){
         vehic = i;
      }
   }
}
}
}
public ad() {
new msg[256];
format(msg, sizeof(msg), \"Tip: Ctrl lerak egy rámpát /setramp 1-5 különbözo rámpákért!\");
format(msg, sizeof(msg), \"Jármu szálitáshoz nyomd meg a NUM 6-ot!\");
SendClientMessageToAll(COLOR_WHITE, msg);
return 1;
}

 
a végén van ramp, hogy kattra leteszi az ugratót, de az nem müxik, csak az üzenet van benne.
« Utoljára szerkesztve: 2010. Június 24. - 13:49:51 írta BeNiBoY »

Nem elérhető DVS

  • 302
    • Profil megtekintése
Vontató
« Válasz #2 Dátum: 2010. Június 24. - 09:06:40 »
0 Show voters
Még megvárom a többi ember válaszát! :D
Mert most az angol wiki-t fordítom lefelé magyarra és nem érek rá ilyet írni magamnak! :P

Nem elérhető Popec16

  • 1267
    • Profil megtekintése
Vontató
« Válasz #3 Dátum: 2010. Június 24. - 10:59:14 »
0 Show voters
BeNiBoY a scripter nevét aki csinálta lefelejtetted ...:)
dns nek megigértem hogy csinálok egyet de elfelejtettem :S ! :D

Nem elérhető DVS

  • 302
    • Profil megtekintése
Vontató
« Válasz #4 Dátum: 2010. Június 24. - 11:21:53 »
0 Show voters
És akkor most csinálsz vagy nem?  :D

Nem elérhető Popec16

  • 1267
    • Profil megtekintése
Vontató
« Válasz #5 Dátum: 2010. Június 24. - 11:23:56 »
0 Show voters
Eps-nek van egy nagyon fajaa!
Kérd el tole szerintem odafogja adni!
De a Hiv fórumon van rengeteg szerintem!

Nem elérhető DVS

  • 302
    • Profil megtekintése
Vontató
« Válasz #6 Dátum: 2010. Június 24. - 12:44:04 »
0 Show voters
Oké!Elkérem akkor Epsilontól! :P

Nem elérhető BeNiBoY

  • 1342
    • Profil megtekintése
Vontató
« Válasz #7 Dátum: 2010. Június 24. - 13:50:23 »
0 Show voters
Idézetet írta: Popec16 date=1277369954\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"2141\" data-ipsquote-contentclass=\"forums_Topic
BeNiBoY a scripter nevét aki csinálta lefelejtetted ...:)
dns nek megigértem hogy csinálok egyet de elfelejtettem :S ! :D
 
comment frissítve ;)

Nem elérhető DVS

  • 302
    • Profil megtekintése
Vontató
« Válasz #8 Dátum: 2010. Június 24. - 14:11:09 »
0 Show voters
Epsilon nem adja ide!xD

Nem elérhető Popec16

  • 1267
    • Profil megtekintése
Vontató
« Válasz #9 Dátum: 2010. Június 26. - 16:31:46 »
0 Show voters
*,*

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal