Szerző Téma: autoban index  (Megtekintve 1986 alkalommal)

autoban index
« Dátum: 2011. Október 05. - 15:07:06 »
0 Show voters
egy oljant keresek, hogy beirod /< vagy /> és az auto indexel

Nem elérhető Benceee

  • 4785
    • Profil megtekintése
autoban index
« Válasz #1 Dátum: 2011. Október 05. - 15:28:22 »
0 Show voters

autoban index
« Válasz #2 Dátum: 2011. Október 05. - 15:29:32 »
0 Show voters
De nagyo könyû késziteni is sima parancsal majd sendclientmessgaeval  :laugh:

Nem elérhető JackBronson

  • 1499
  • ??
    • Profil megtekintése
autoban index
« Válasz #3 Dátum: 2011. Október 05. - 15:32:02 »
0 Show voters
0.3a R5-R7 SERVER!![/quote]
De ha lefutatja 0.3c PAWNOBA akkor menni fog :)

autoban index
« Válasz #4 Dátum: 2011. Október 05. - 16:07:15 »
0 Show voters
de senki nem mond egy szkriptet :\'(

autoban index
« Válasz #5 Dátum: 2011. Október 05. - 16:13:42 »
0 Show voters
De nem tudod elkésziteni? Hogyan akkarod? Mindenki lássa vagy csak te mert ezt meg lehet simán csinálni :D

Nem elérhető Benceee

  • 4785
    • Profil megtekintése
autoban index
« Válasz #6 Dátum: 2011. Október 05. - 16:20:07 »
0 Show voters
Idézetet írta: N@rbirock date=1317823635\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"12248\" data-ipsquote-contentclass=\"forums_Topic
de senki nem mond egy szkriptet :\'(
 
Elõbb linkeltem, vess magadra, ha lusta vagy keresni. Ha már belinkelem, akkor olvasd el..

Nem elérhető JackBronson

  • 1499
  • ??
    • Profil megtekintése
autoban index
« Válasz #7 Dátum: 2011. Október 05. - 16:25:57 »
0 Show voters
Ott van abba  a linkbe amit a gyerek linkelt,hogy ha elolvasod lentebb
DOWNLOAD:
v1.0
www.infinite-gaming.com/iG_real_lights.zip
v1.5
www.infinite-gaming.com/iG_real_lights_15.zip
v2
www.infinite-gaming.com/iG_real_lights_2.zip
.... Vagyis LETÖLTÉS.
Sok sikert remélem ez alapján le tudod tölteni...
Ha rámész a linkre akkor automatán letölti .
De ha igyse lenne jó.[pawn]/*************************************************
Infinite-Gaming.com Presents:
Real Vehicle Lights v.1.0 by Cyber_Punk
DO NOT REMOVE CREDITS
If you borrow bits of code would be nice to..
credit the original authors
Know issues (not script bugs)
Lights still will not flash in the day time,
Rear lights do not flash......
Hope for a samp fix in 0.3b code should still work
*************************************************/
#include <a_samp>
#define BLINK_RATE  500 // This is the rate of flash (also rate of timer in milliseconds)
#define LIGHT_KEY   KEY_SUBMISSION // Set this to whatever key you want to turn the lights on
//Put MAX PLAYERS HERE (sorry its for the timer..)
#undef MAX_PLAYERS
#define MAX_PLAYERS 50
// Macro from SAMP wiki Credits to the author
#define PRESSED(%0) \\
(((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
new BlinkTime[MAX_PLAYERS];
public OnFilterScriptInit()
{
print(\"\\n--------------------------------------\");
print(\" Infinite-Gaming.com Presents:\");
print(\" Real Vehicle Lights by Cyber_Punk\");
print(\"--------------------------------------\\n\");
return 1;
}
public OnFilterScriptExit()
{
print(\"\\n--------------------------------------\");
print(\" Real Vehicle Lights UNLOADED\");
print(\"--------------------------------------\\n\");
return 1;
}
public OnPlayerConnect(playerid)
{
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
KillTimer(BlinkTime[playerid]);
return 1;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
   new panels, doors, lights, tires;
   GetVehicleDamageStatus(GetPlayerVehicleID(playerid), panels, doors, lights, tires);
   lights = encode_lights(1, 1, 1, 1);
   SetPVarInt(playerid, \"vMainOn\", 0);
   UpdateVehicleDamageStatus(GetPlayerVehicleID(playerid), panels, doors, lights, tires);
   BlinkTime[playerid] = SetTimerEx(\"vBlinker\", BLINK_RATE, 1, \"i\", playerid);
}
else if(newstate == PLAYER_STATE_ONFOOT)
{
   KillTimer(BlinkTime[playerid]);
}
return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(PRESSED(LIGHT_KEY))
{
       new panels, doors, lights, tires;
   GetVehicleDamageStatus(GetPlayerVehicleID(playerid), panels, doors, lights, tires);
   switch(GetPVarInt(playerid, \"vMainOn\"))
   {
       case 0:
      {
           lights = encode_lights(0, 0, 0, 0);
               SetPVarInt(playerid, \"vMainOn\", 1);
      }
      case 1:
      {
         lights = encode_lights(1, 1, 1, 1);
         SetPVarInt(playerid, \"vMainOn\", 0);
      }
   }
   UpdateVehicleDamageStatus(GetPlayerVehicleID(playerid), panels, doors, lights, tires);
}
return 1;
}
forward vBlinker(playerid);
public vBlinker(playerid)
{
if(IsPlayerInAnyVehicle(playerid))
{
    new Keys, ud, lr, panels, doors, lights, tires;
    GetPlayerKeys(playerid, Keys, ud, lr);
   GetVehicleDamageStatus(GetPlayerVehicleID(playerid), panels, doors, lights, tires);
       if(lr > 0)
   {
      switch(GetPVarInt(playerid, \"vMainOn\")){
          case 0:{
               switch(GetPVarInt(playerid, \"vBlinkOn\")){
                   case 0:{
                    lights = encode_lights(1, 1, 0, 0);
                     SetPVarInt(playerid, \"vBlinkOn\", 1);
                   }
                   case 1:{
                  lights = encode_lights(1, 1, 1, 1);
                  SetPVarInt(playerid, \"vBlinkOn\", 0);
                   }
            }
         }
         case 1:{
                  switch(GetPVarInt(playerid, \"vBlinkOn\")){
                   case 0:{
                    lights = encode_lights(0, 0, 1, 1);
                     SetPVarInt(playerid, \"vBlinkOn\", 1);
                   }
                   case 1:{
                  lights = encode_lights(0, 0, 0, 0);
                  SetPVarInt(playerid, \"vBlinkOn\", 0);
                   }
            }
         }
      }
   }
   else if(lr < 0)
   {
      switch(GetPVarInt(playerid, \"vMainOn\")){
          case 0:{
               switch(GetPVarInt(playerid, \"vBlinkOn\")){
                   case 0:{
                    lights = encode_lights(0, 0, 1, 1);
                     SetPVarInt(playerid, \"vBlinkOn\", 1);
                   }
                   case 1:{
                  lights = encode_lights(1, 1, 1, 1);
                  SetPVarInt(playerid, \"vBlinkOn\", 0);
                   }
            }
         }
         case 1:{
                  switch(GetPVarInt(playerid, \"vBlinkOn\")){
                   case 0:{
                    lights = encode_lights(1, 1, 0, 0);
                     SetPVarInt(playerid, \"vBlinkOn\", 1);
                   }
                   case 1:{
                  lights = encode_lights(0, 0, 0, 0);
                  SetPVarInt(playerid, \"vBlinkOn\", 0);
                   }
            }
         }
      }
   }else if(lr == 0)
   {
       switch(GetPVarInt(playerid, \"vMainOn\")){
           case 0:{
              lights = encode_lights(1, 1, 1, 1);
         }
         case 1:{
                    lights = encode_lights(0, 0, 0, 0);
         }
       }
   }
   UpdateVehicleDamageStatus(GetPlayerVehicleID(playerid), panels, doors, lights, tires);
}
return 1;
}
// Thanks to JernejL (RedShirt)
encode_lights(light1, light2, light3, light4) {
return light1 | (light2 << 1) | (light3 << 2) | (light4 << 3);
}[/pawn]

autoban index
« Válasz #8 Dátum: 2011. Október 05. - 17:30:28 »
0 Show voters
de én oljant akartam hogy beirom /> vagy /<  és indexel

Nem elérhető JackBronson

  • 1499
  • ??
    • Profil megtekintése
autoban index
« Válasz #9 Dátum: 2011. Október 05. - 17:34:17 »
0 Show voters
Csináld meg parancsosra ebbõl megtudod,ha nem akkor ne csináld.
Ne mindent mi csináljuk,próbáld meg teis.

Nem elérhető Epsilon

  • 1854
    • Profil megtekintése
autoban index
« Válasz #10 Dátum: 2011. Október 05. - 20:51:03 »
0 Show voters
Ez a Segítségek alfórum. Ha te csak szkriptet kérsz, de nem veszed ki a részed az elkészítésben, beszerzésben, akkor rossz helyre nyitottad a témát.

autoban index
« Válasz #11 Dátum: 2011. Október 06. - 05:46:15 »
+1 Show voters
Idézetet írta: N@rbirock date=1317828628\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"12248\" data-ipsquote-contentclass=\"forums_Topic
de én oljant akartam hogy beirom /> vagy /<  és indexel
 

#include <a_samp>
public OnPlayerCommandText(playerid, cmdtext[]) {
if (strcmp(\"/<\", cmdtext, true, 10) == 0) {
SendPlayerMessageToAll(-1, \"Balra Index <<<\");
return 1;
} if (strcmp(\"/>\", cmdtext, true, 10) == 0) {
SendPlayerMessageToAll(-1, \"Jobbra Index >>>\");
return 1; }
return 0; }

autoban index
« Válasz #12 Dátum: 2011. Október 06. - 14:26:32 »
0 Show voters
köszi zárok

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal