←  Multilingual

AMXX.pl: Support AMX Mod X i SourceMod

»

Klasa
[ROZWIĄZANE] I want to change this class p...

Zablokowany

  • +
  • -
ingram - zdjęcie 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 !






#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);
}

MarWit (19.01.2013 22:28):
Use [sma ][/sma] tags or [spoiler ][sma ][/sma][/spoiler] when Your code's more than 200 lines.

Użytkownik MarWit edytował ten post 19.01.2013 22:26
Added [sma][/sma] tags.
Odpowiedz

Vezkin - zdjęcie Vezkin 19.01.2013

Catch :)

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 ;)

Im Not Good Speak English . I Fink You Understend My Text

Good Luck :)

Załączone pliki

Odpowiedz

  • +
  • -
ingram - zdjęcie 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);
}

MarWit (19.01.2013 22:43):
Tags...
Odpowiedz

Vezkin - zdjęcie 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
Odpowiedz

  • +
  • -
ingram - zdjęcie 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
Odpowiedz

Vezkin - zdjęcie Vezkin 20.01.2013

Spy has got 2x more damage with deagle

Master has got 2x more damage with knife :)

Załączone pliki

Odpowiedz

  • +
  • -
ingram - zdjęcie ingram 20.01.2013

Thanks =D<
Odpowiedz

  • +
  • -
MarWit - zdjęcie 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, Dołączona grafika raportuj ten post, a moderator lub administrator rozpatrzy go ponownie.


Z pozdrowieniami,
Zespół AMXX.PL
Odpowiedz

  • +
  • -
MarWit - zdjęcie MarWit 20.01.2013

Automatyczna wiadomość



Ten temat został przeniesiony z forum


Mody > Call of Duty Mod > Prośby o Klase/Perk


do


AMX Mod X > Multilingual

Odpowiedz
Zablokowany