[ROZWIĄZANE] I want to change this class p...
ingram
19.01.2013
I just created this class and I would add speed but I want That agility points (kondycja) stay in 0
and i also want that he is invisible with knife ( if don't move ) i mean when he's freez he's invisible but when he moove up he's not invisible thanks !
and i also want that he is invisible with knife ( if don't move ) i mean when he's freez he's invisible but when he moove up he's not invisible thanks !
#include <amxmodx>
#include <amxmisc>
#include <codmod>
#include <engine>
#include <hamsandwich>
new const nazwa[] = "spy";
new const opis[] = "invisible with knife if you don't move ";
new const bronie = 0;
new const zdrowie = 0;
new const kondycja = 0;
new const inteligencja = 0;
new const wytrzymalosc = 0;
new ma_klase[33];
public plugin_init()
{
register_plugin(nazwa, "1.0", "amxx.pl");
cod_register_class(nazwa, opis, bronie, zdrowie, kondycja, inteligencja, wytrzymalosc);
register_event("CurWeapon", "eventKnife_Niewidzialnosc", "be", "1=1");
RegisterHam(Ham_Spawn, "player", "fwSpawn_Grawitacja", 1);
}
public cod_class_enabled(id)
{
entity_set_float(id, EV_FL_gravity, 250.0/800.0);
ma_klase[id] = true;
}
public cod_class_disabled(id)
{
set_rendering(id,kRenderFxNone, 0, 0, 0, kRenderTransAlpha, 255);
entity_set_float(id, EV_FL_gravity, 1.0);
ma_klase[id] = false;
}
public eventKnife_Niewidzialnosc(id)
{
if(!ma_klase[id])
return;
if( read_data(2) == CSW_KNIFE )
{
set_rendering(id,kRenderFxNone, 0, 0, 0, kRenderTransAlpha, 0);
}
else
{
set_rendering(id,kRenderFxNone, 0, 0, 0, kRenderTransAlpha, 255);
}
}
public fwSpawn_Grawitacja(id)
{
if(ma_klase[id])
entity_set_float(id, EV_FL_gravity, 250.0/800.0);
}
Użytkownik MarWit edytował ten post 19.01.2013 22:26
Added [sma][/sma] tags.
Vezkin
19.01.2013
Catch ![:)](https://amxx.pl/public/style_emoticons/default/smile.png)
Than You Open This File Look Line :
When "x" Is Your Speed And Where You Look Line
When See "Than You Change Your Description" Change Your Version![;)](https://amxx.pl/public/style_emoticons/default/wink.png)
Im Not Good Speak English . I Fink You Understend My Text
Good Luck
![:)](https://amxx.pl/public/style_emoticons/default/smile.png)
Than You Open This File Look Line :
new const kondycja = x;
When "x" Is Your Speed And Where You Look Line
new const opis[] = "Than You Change Your Description ";
When See "Than You Change Your Description" Change Your Version
![;)](https://amxx.pl/public/style_emoticons/default/wink.png)
Im Not Good Speak English . I Fink You Understend My Text
Good Luck
![:)](https://amxx.pl/public/style_emoticons/default/smile.png)
Załączone pliki
ingram
19.01.2013
they says to me Error please fix it :
#include <amxmodx> #include <amxmisc> #include <codmod> #include <engine> #include <hamsandwich> new const nazwa[] = "spy"; new const opis[] = "Than You Change Your Description "; new const bronie = (1<<CSW_HEGRENADE)| new const zdrowie = 0; new const kondycja = 50; new const inteligencja = 0; new const wytrzymalosc = 0; new ma_klase[33]; public plugin_init() { register_plugin(nazwa, "1.0", "amxx.pl"); cod_register_class(nazwa, opis, bronie, zdrowie, kondycja, inteligencja, wytrzymalosc); register_event("CurWeapon", "eventKnife_Niewidzialnosc", "be", "1=1"); RegisterHam(Ham_Spawn, "player", "fwSpawn_Grawitacja", 1); } public cod_class_enabled(id) { entity_set_float(id, EV_FL_gravity, 250.0/800.0); ma_klase[id] = true; } public cod_class_disabled(id) { set_rendering(id,kRenderFxNone, 0, 0, 0, kRenderTransAlpha, 255); entity_set_float(id, EV_FL_gravity, 1.0); ma_klase[id] = false; } public eventKnife_Niewidzialnosc(id) { if(!ma_klase[id]) return; if( read_data(2) == CSW_KNIFE ) { set_rendering(id,kRenderFxNone, 0, 0, 0, kRenderTransAlpha, 0); } else { set_rendering(id,kRenderFxNone, 0, 0, 0, kRenderTransAlpha, 255); } } public fwSpawn_Grawitacja(id) { if(ma_klase[id]) entity_set_float(id, EV_FL_gravity, 250.0/800.0); }
Vezkin
19.01.2013
Write a class which is to be and i tomorrow make a class
Użytkownik Vezkin edytował ten post 19.01.2013 22:41
Użytkownik Vezkin edytował ten post 19.01.2013 22:41
ingram
19.01.2013
Okay
Okay
I just want two class please : the first class is :
damage deagle x 2 .
Second class : invisible with knife if you don't move and damage knife x 2 , but if he's moving he's not invisible
That's all and thanks you for everything
Okay
I just want two class please : the first class is :
damage deagle x 2 .
Second class : invisible with knife if you don't move and damage knife x 2 , but if he's moving he's not invisible
That's all and thanks you for everything
Vezkin
20.01.2013
Spy has got 2x more damage with deagle
Master has got 2x more damage with knife
Master has got 2x more damage with knife
![:)](https://amxx.pl/public/style_emoticons/default/smile.png)
Załączone pliki
MarWit
20.01.2013
Wiadomość wygenerowana automatycznie
Ten temat został zamknięty przez moderatora.
Powód: Pomoc udzielona
Jeśli się z tym nie zgadzasz,
raportuj ten post, a moderator lub administrator rozpatrzy go ponownie.
Z pozdrowieniami,
Zespół AMXX.PL
Ten temat został zamknięty przez moderatora.
Powód: Pomoc udzielona
Jeśli się z tym nie zgadzasz,
![Dołączona grafika](https://amxx.pl/public/style_images/master/report.png)
Z pozdrowieniami,
Zespół AMXX.PL
MarWit
20.01.2013
Automatyczna wiadomość
Ten temat został przeniesiony z forum
Mody > Call of Duty Mod > Prośby o Klase/Perk
do