←  Multilingual

AMXX.pl: Support AMX Mod X i SourceMod

»

Pomoc Admin Gravity

  • +
  • -
Raptile's Photo Raptile 17.06.2009

Zdrowia pomoże mi ktoś Produkcji plugin gdzie admin moze w case 1,2,3,4,5,6,7,8,9 wybierze grawitacji, chciałbym, aby zapewnić, że gdy admin wybrał grawitacji 600 tak, aby w novem rundze mel z znova grawitacji 600. Byłoby zasilania dla pomocy chlapi
Quote

  • +
  • -
R3X's Photo R3X 17.06.2009

Grawitacja dla wszystkich czy tylko dla admina?
Quote

  • +
  • -
Change's Photo Change 17.06.2009

Akurat na pewno :P Bo nawet w podstawówce się lepiej pisze..
A grawitacja nie może być przez sv_gravity?
Nie do końca zrozumiałem problem ;>
Quote

  • +
  • -
R3X's Photo R3X 17.06.2009

Koleś z Czech

Zrobię tylko dla admina będzie miało jakiś sens :]

-----

Plugin:

Mam nadzieję, że zrozumiesz :D

Menu otwierasz komendą

admin_gravity


Kto może używać menu, musi mieć odpowiednią flagę. Ustaw sobie tu
#define ADMIN_FLAG ADMIN_BAN

Uzupełnij jak chcesz, te opcje będą w menu
new const giGravities[]={
	100,
	200,
	400,
	600,
	700,
	800,
	900
}

Pamiętaj, że ostatni bez przecinka (,) na końcu!

Attached Files

Quote

  • +
  • -
Raptile's Photo Raptile 17.06.2009

Jest to super dzienka barzo chupaci ci chalani ja neviem ^D^ jestem happy :> Suuuper :P jestem z Chech preprasam za chyby umie kdos po cesku?
Quote

  • +
  • -
R3X's Photo R3X 17.06.2009

Tak grawitacja dla admina :D Maybe english?
Quote

  • +
  • -
Raptile's Photo Raptile 17.06.2009

Tak grawitacja dla admina :D Maybe english?

Yes only for admin :-)
Quote

  • +
  • -
R3X's Photo R3X 17.06.2009

so

you can define options for menu in this array
new const giGravities[]={
    100,
    200,
    400,
    600,
    700,
    800,
    900
}
put there your values, but remember that last option have to be without comma char
Quote

  • +
  • -
Raptile's Photo Raptile 17.06.2009

Mozes dodać do pluginu grawitacji. Ješte jednego menu dla wyboru (prędkość tylko dla admina)


case 0: { server_cmd("sv_maxspeed 320")
set_user_maxspeed(id,1.0)
client_cmd(id,"cl_forwardspeed 320")
client_cmd(id,"cl_backspeed 320")
client_cmd(id,"cl_sidespeed 320")
}
case 1: { server_cmd("sv_maxspeed 100000")

new Float:speed = get_user_maxspeed(id) + 30.0;
set_user_maxspeed(id , speed);
client_cmd(id,"cl_forwardspeed 350")
client_cmd(id,"cl_backspeed 350")
client_cmd(id,"cl_sidespeed 350")
}
case 2: { server_cmd("sv_maxspeed 100000")
new Float:speed = get_user_maxspeed(id) + 80.0;
set_user_maxspeed(id , speed);
client_cmd(id,"cl_forwardspeed 400")
client_cmd(id,"cl_backspeed 400")
client_cmd(id,"cl_sidespeed 400")
}
case 3: { server_cmd("sv_maxspeed 100000")
new Float:speed = get_user_maxspeed(id) + 180.0;
set_user_maxspeed(id , speed);
client_cmd(id,"cl_forwardspeed 500")
client_cmd(id,"cl_backspeed 500")
client_cmd(id,"cl_sidespeed 500")
}
case 4: { server_cmd("sv_maxspeed 100000")
new Float:speed = get_user_maxspeed(id) + 280.0;
set_user_maxspeed(id , speed);
client_cmd(id,"cl_forwardspeed 600")
client_cmd(id,"cl_backspeed 600")
client_cmd(id,"cl_sidespeed 600")
}
case 5: { server_cmd("sv_maxspeed 100000")
new Float:speed = get_user_maxspeed(id) + 380.0;
set_user_maxspeed(id , speed);
client_cmd(id,"cl_forwardspeed 700")
client_cmd(id,"cl_backspeed 700")
client_cmd(id,"cl_sidespeed 700")
}
case 6: { server_cmd("sv_maxspeed 100000")
new Float:speed = get_user_maxspeed(id) + 480.0;
set_user_maxspeed(id , speed);
client_cmd(id,"cl_forwardspeed 800")
client_cmd(id,"cl_backspeed 800")
client_cmd(id,"cl_sidespeed 800")
}
case 7: { server_cmd("sv_maxspeed 100000")
new Float:speed = get_user_maxspeed(id) + 679.0;
set_user_maxspeed(id , speed);
client_cmd(id,"cl_forwardspeed 999")
client_cmd(id,"cl_backspeed 999")
client_cmd(id,"cl_sidespeed 999")
}
case 8: {
}
}

Jestes bardco dobry taky by chcauem umiec ;) ;)
Quote

  • +
  • -
R3X's Photo R3X 17.06.2009

Look at this:

new const Float:gfSpeeds[]={
	0.0,
	30.0,
	80.0,
	180.0,
	280.0,
	380.0,
	480.0,
	679.0
}
The same like with gravity, but there put as real - ".0". These values plugin will add to speed with any weapons fe:
AWP speed = 210; select +30.0 from menu and with AWP you will run with 240.0 speed

new command:

admin_speed

Attached Files

Quote

  • +
  • -
Raptile's Photo Raptile 18.06.2009

Look at this:

new const Float:gfSpeeds[]={
	0.0,
	30.0,
	80.0,
	180.0,
	280.0,
	380.0,
	480.0,
	679.0
}
The same like with gravity, but there put as real - ".0". These values plugin will add to speed with any weapons fe:
AWP speed = 210; select +30.0 from menu and with AWP you will run with 240.0 speed

new command:

admin_speed



Funguje Barzo Uadne Dzenkuje Barzo !!!! Where are you learned.? Dou you have any manual???.I would learn srcipting to.you are very Good man . :>
Quote

  • +
  • -
darkman's Photo darkman 18.06.2009

Raptile, I think that better way for you and us will be english posts. These all translators XXX>Polish make your text impossible to read for some people. We must work more to read and understand this text than with writing plugin for you.
Quote

  • +
  • -
R3X's Photo R3X 18.06.2009

Update.
Now it will work better (fe. with amx_revive, older one doesn`t). I hooked spawn event :D

Where are you learned.? Dou you have any manual???.I would learn srcipting to

On begin learn some modern (no Pascal ;P ) language like C++. Later you should know AMXX specific: http://www.amxmodx.org/funcwiki.php (EN) or in near future on this forum (PL). Pawn (language of plugins) is very similar to C/C++, but easier.
Quote

  • +
  • -
Monkyfunky's Photo Monkyfunky 19.06.2009

NICE
Quote

  • +
  • -
Raptile's Photo Raptile 19.06.2009

Update.
Now it will work better (fe. with amx_revive, older one doesn`t). I hooked spawn event :D

Where are you learned.? Dou you have any manual???.I would learn srcipting to

On begin learn some modern (no Pascal ;P ) language like C++. Later you should know AMXX specific: http://www.amxmodx.org/funcwiki.php (EN) or in near future on this forum (PL). Pawn (language of plugins) is very similar to C/C++, but easier.


I tried to learn some instructions on http://www.amxmodx.o...uncwiki.php.But some instructions is very hard for example set_pev and register_logevent("eventRoundStart",2,"1=Round_Start") and register_event("CurWeapon","eventCurWeapon","be","1=1") and or this for (new i=0;i
Quote