Sveiki atvyke į Counter Strike Godlike.lt - CS, CSS, GTA ir visa kita!. Spausk čia registruotis

Del parasiuto ant FLAG

Pokalbiai apie Modus ir Pluginus

Moderatorius: Serverio kūrimo Komanda.

Del parasiuto ant FLAG

Standartine OriGinals » 10 Rgs 2010, 11:42

Sveiki, noreciau paprasyti tik tu kurie moka koreguoti ir kurti pluginus.
Man reiktu, kad sito plugino: Nuorodas mato tik NARIAI. Prisiregistruokite arba Prisijunkite.
tai butu parasiutas ant flag, pakeistumete, kad butu ne ant F flag, o ant R. Labai busiu dekingas, aciu.
Slotas.LT - Vieta, kur išsipildo visos tavo svajonės...
OriGinals
Pasiklydęs Naujokas
Pasiklydęs Naujokas
Statusas: Atsijungęs
Pranešimai: 51
Užsiregistravo:
09 Lie 2010, 19:43
Skype: aurintas2
Pinigai: 54.00
Reputacija: 0

Re: Del parasiuto ant FLAG

Standartine Aur3kas » 11 Rgs 2010, 12:27

R flago nera...
Naujokas? Žvilgtelk čia -> forumo-taisykles-t33.html
Paveikslelis
Vartotojo avataras
Aur3kas
Administratorius
Administratorius
Statusas: Atsijungęs
Pranešimai: 8345
Užsiregistravo:
09 Spa 2008, 10:10
Miestas: Panevėžys
Vardas: Aurimas
Skype: arsiaxz
Pinigai: 2,530.00
Reputacija: 146
Medaliai: 13
Administracija (1) Medalių Moderatorius (1) Apžvalgų Kūrėjas (1) už 100 pranešimų (1) už 300 pranešimų (1)
už 500 pranešimų (1) už 700 pranešimų (1) už 1000 pranešimų (1) už 1500 pranešimų (1) už 2000 pranešimų (1)
už 3000 pranešimų (1) už 5000 pranešimų (1) Reputacija (1)

Re: Del parasiuto ant FLAG

Standartine OriGinals » 11 Rgs 2010, 13:56

Oj, atsiprasau. Man padare kad jis butu ant raides f kuri reiskia amx_map command.
o man reiktu:
ant raides r kuri reiskia custom level F.
Tad prasau kad perdarytumete. Aciu labai! :moksliukas:

-- Sek Rgs 19, 2010 1:01 am --

Man dar vis reikia, labai prasau, padekit!
Slotas.LT - Vieta, kur išsipildo visos tavo svajonės...
OriGinals
Pasiklydęs Naujokas
Pasiklydęs Naujokas
Statusas: Atsijungęs
Pranešimai: 51
Užsiregistravo:
09 Lie 2010, 19:43
Skype: aurintas2
Pinigai: 54.00
Reputacija: 0

Re: Del parasiuto ant FLAG

Standartine Aur3kas » 20 Rgs 2010, 01:46

va padariau
Kodas: Pasirinkti visus
   1.
      #include <amxmodx>
   2.
      #include <fakemeta>
   3.
      #include <hamsandwich>
   4.
       
   5.
      #define PLUGIN   "New Parachute"
   6.
      #define AUTHOR   "Cheap_Suit & eNz0"
   7.
      #define VERSION   "1.0"
   8.
       
   9.
      new const g_paramodel[] = "models/parachute.mdl"
  10.
      new bool: g_has_parachute[33]
  11.
      new g_entmodel[33], cvar_fallspeed, cvar_teams, cvar_vip;
  12.
       
  13.
      public plugin_init()
  14.
      {
  15.
         register_plugin(PLUGIN, VERSION, AUTHOR)
  16.
         register_forward(FM_PlayerPreThink,  "fwd_playerprethink")
  17.
         
  18.
         RegisterHam(Ham_Killed,      "player",       "bacon_killed")
  19.
         RegisterHam(Ham_Spawn,       "player",       "bacon_spawn", 1)
  20.
         
  21.
         cvar_fallspeed       = register_cvar("parachute_fallspeed", "80.0") //Parachute fallspeed
  22.
         cvar_teams           = register_cvar("parachute_teams", "0") //Give parachute to: 0 - all, 1 - CT, 2 -T
  23.
         cvar_vip             = register_cvar("parachute_vip", "1") //Parachute only for vips(0 - no, 1 - yes)
  24.
      }
  25.
      public bacon_spawn(id)
  26.
      {
  27.
              g_has_parachute[id] = false
  28.
             
  29.
              if(get_pcvar_num(cvar_vip))
  30.
              {
  31.
                      if((get_user_flags(id) & ADMIN_LEVEL_F))
  32.
                      {
  33.
                              if(get_pcvar_num(cvar_teams) == 0)
  34.
                              {     
  35.
                                      g_has_parachute[id] = true
  36.
                              }     
  37.
                              else if(get_pcvar_num(cvar_teams) == 1)
  38.
                              {
  39.
                                      if(get_user_team(id) == 2)
  40.
                                      {
  41.
                                              g_has_parachute[id] = true
  42.
                                      }
  43.
                              }
  44.
                              else if(get_pcvar_num(cvar_teams) == 2)
  45.
                              {
  46.
                                      if(get_user_team(id) == 1)
  47.
                                      {
  48.
                                              g_has_parachute[id] = true
  49.
                                      }
  50.
                              }
  51.
                      }
  52.
              }
  53.
              else if(!get_pcvar_num(cvar_vip))
  54.
              {
  55.
                      if(get_pcvar_num(cvar_teams) == 0)
  56.
                      {
  57.
                              g_has_parachute[id] = true
  58.
                      }     
  59.
                      else if(get_pcvar_num(cvar_teams) == 1)
  60.
                      {
  61.
                              if(get_user_team(id) == 2)
  62.
                              {
  63.
                                      g_has_parachute[id] = true
  64.
                              }
  65.
                      }
  66.
                      else if(get_pcvar_num(cvar_teams) == 2)
  67.
                      {
  68.
                              if(get_user_team(id) == 1)
  69.
                              {
  70.
                                      g_has_parachute[id] = true
  71.
                              }
  72.
                      }
  73.
              }
  74.
      }
  75.
       
  76.
      public plugin_precache()
  77.
         precache_model(g_paramodel)
  78.
       
  79.
      public client_connect(id)         
  80.
         parachute_reset(id)
  81.
       
  82.
      public client_disconnect(id)
  83.
         parachute_reset(id)
  84.
       
  85.
      public bacon_killed(victim, attacker, shouldgib)
  86.
         parachute_reset(victim)
  87.
       
  88.
      public parachute_reset(id)
  89.
      {
  90.
         if(g_entmodel[id] > 0 && pev_valid(g_entmodel[id]) && g_has_parachute[id])
  91.
            engfunc(EngFunc_RemoveEntity, g_entmodel[id]) 
  92.
           
  93.
         g_has_parachute[id] = false
  94.
         g_entmodel[id] = 0
  95.
      }
  96.
       
  97.
      public fwd_playerprethink(id)
  98.
      {
  99.
         if(!is_user_alive(id) || !g_has_parachute[id])
 100.
            return FMRES_IGNORED
 101.
         
 102.
         static Float:frame, flags; flags  = pev(id, pev_flags)
 103.
         if(g_entmodel[id] > 0 && (flags & FL_ONGROUND))
 104.
         {
 105.
            if(pev(g_entmodel[id], pev_sequence) != 2)
 106.
            {
 107.
               set_pev(g_entmodel[id], pev_sequence,      2)
 108.
               set_pev(g_entmodel[id], pev_gaitsequence, 1)
 109.
               set_pev(g_entmodel[id], pev_frame,      0.0)
 110.
               set_pev(g_entmodel[id], pev_fuser1,      0.0)
 111.
               set_pev(g_entmodel[id], pev_animtime,     0.0)
 112.
               set_pev(g_entmodel[id], pev_framerate,    0.0)
 113.
               
 114.
               return FMRES_IGNORED
 115.
            }
 116.
       
 117.
            frame = pev(g_entmodel[id], pev_fuser1) + 2.0
 118.
            set_pev(g_entmodel[id], pev_fuser1, frame)
 119.
            set_pev(g_entmodel[id], pev_frame,  frame)
 120.
       
 121.
            if(frame > 254.0)
 122.
            {
 123.
               engfunc(EngFunc_RemoveEntity, g_entmodel[id])
 124.
               g_entmodel[id] = 0
 125.
            }
 126.
         }
 127.
         
 128.
         if(pev(id, pev_button) & IN_USE)
 129.
         {
 130.
            static Float:velocity[3]
 131.
            pev(id, pev_velocity, velocity)
 132.
       
 133.
            if(velocity[2] < 0.0)
 134.
            {
 135.
               if(g_entmodel[id] < 1)
 136.
               {
 137.
                  g_entmodel[id] = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "info_target"))
 138.
                  if(g_entmodel[id] > 0)
 139.
                  {
 140.
                     engfunc(EngFunc_SetModel, g_entmodel[id], g_paramodel)
 141.
                     set_pev(g_entmodel[id], pev_classname,    "parachute")
 142.
                     set_pev(g_entmodel[id], pev_aiment,       id)
 143.
                     set_pev(g_entmodel[id], pev_owner,        id)
 144.
                     set_pev(g_entmodel[id], pev_movetype,     MOVETYPE_FOLLOW)
 145.
                     set_pev(g_entmodel[id], pev_sequence,     0)
 146.
                     set_pev(g_entmodel[id], pev_gaitsequence, 1)
 147.
                     set_pev(g_entmodel[id], pev_frame,      0.0)
 148.
                     set_pev(g_entmodel[id], pev_fuser1,      0.0)
 149.
                  }
 150.
               }
 151.
               else if(g_entmodel[id] > 0)
 152.
               {
 153.
                  static Float:fallspeed; fallspeed = get_pcvar_float(cvar_fallspeed) * -1.0
 154.
                  velocity[2] = (velocity[2] + 40.0 < fallspeed) ? velocity[2] + 40.0 : fallspeed
 155.
                  set_pev(id, pev_velocity, velocity)
 156.
                 
 157.
                  set_pev(id, pev_sequence, 3), set_pev(id, pev_gaitsequence, 1)
 158.
                  set_pev(id, pev_frame, 1.0),  set_pev(id, pev_framerate, 1.0)
 159.
                 
 160.
                  if(pev(g_entmodel[id], pev_sequence) == 0)
 161.
                  {
 162.
                     frame = pev(g_entmodel[id], pev_fuser1) + 1.0
 163.
                     set_pev(g_entmodel[id], pev_fuser1, frame)
 164.
                     set_pev(g_entmodel[id], pev_frame,  frame)
 165.
       
 166.
                     if(frame > 100.0)
 167.
                     {
 168.
                        set_pev(g_entmodel[id], pev_animtime,      0.0)
 169.
                        set_pev(g_entmodel[id], pev_framerate,    0.4)
 170.
                        set_pev(g_entmodel[id], pev_sequence,      1)
 171.
                        set_pev(g_entmodel[id], pev_gaitsequence, 1)
 172.
                        set_pev(g_entmodel[id], pev_frame,      0.0)
 173.
                        set_pev(g_entmodel[id], pev_fuser1,      0.0)
 174.
                     }
 175.
                  }
 176.
               }
 177.
            }
 178.
            else if(g_entmodel[id] > 0)
 179.
            {
 180.
               engfunc(EngFunc_RemoveEntity, g_entmodel[id])
 181.
               g_entmodel[id] = 0
 182.
            }
 183.
         }
 184.
         else if((pev(id, pev_oldbuttons) & IN_USE) && g_entmodel[id] > 0)
 185.
         {
 186.
            engfunc(EngFunc_RemoveEntity, g_entmodel[id])
 187.
            g_entmodel[id] = 0
 188.
         }
 189.
         return FMRES_IGNORED
 190.
      }
Naujokas? Žvilgtelk čia -> forumo-taisykles-t33.html
Paveikslelis
Vartotojo avataras
Aur3kas
Administratorius
Administratorius
Statusas: Atsijungęs
Pranešimai: 8345
Užsiregistravo:
09 Spa 2008, 10:10
Miestas: Panevėžys
Vardas: Aurimas
Skype: arsiaxz
Pinigai: 2,530.00
Reputacija: 146
Medaliai: 13
Administracija (1) Medalių Moderatorius (1) Apžvalgų Kūrėjas (1) už 100 pranešimų (1) už 300 pranešimų (1)
už 500 pranešimų (1) už 700 pranešimų (1) už 1000 pranešimų (1) už 1500 pranešimų (1) už 2000 pranešimų (1)
už 3000 pranešimų (1) už 5000 pranešimų (1) Reputacija (1)


Grižti i Modai ir Pluginai [CS 1.6]

Dabar prisijunge

Vartotojai naršantys ši foruma: Registruotu vartotoju nera ir 0 sveciu