Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Sign in to follow this  
vENOM

[CodMod Nowy] Jak dodac ciche kroki do klasy

Recommended Posts

Witam , napisze jak dodać ciche chodzenie do klasy , wiec mamy nasza klase

#include 

#include 

#include 

#include 


new const nazwa[]   = "Black Dead ";

new const opis[]    = "";

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", "Cs-StaraSzkola.pl");


	cod_register_class(nazwa, opis, bronie, zdrowie, kondycja, inteligencja, wytrzymalosc);

}


public cod_class_enabled(id)




public cod_class_disabled(id)



1. Dodajemy include
#include 

#include 

#include 

#include 

[u]#include [/u]
2.Szukamy public cod_class_enabled(id) pod tym dodajemy
{

        set_user_footsteps(id, 1); // ustawia ciche chodzenie

}
3.Potem szukamy public cod_class_disabled(id) i pod tym dodajemy
{

         set_user_footsteps(id, 0); // zabiera klasie ciche chodzenie

}
4.Całość wyglada tak
#include 

#include 

#include 

#include 

#include 


new const nazwa[]   = "Black Dead ";

new const opis[]    = "";

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", "Cs-StaraSzkola.pl");


	cod_register_class(nazwa, opis, bronie, zdrowie, kondycja, inteligencja, wytrzymalosc);

}


public cod_class_enabled(id)

{

        set_user_footsteps(id, 1); // ustawia ciche chodzenie

}


public cod_class_disabled(id)

{

        set_user_footsteps(id, 0); // zabiera klasie ciche chodzenie

}

Jak coś przeoczyłem proszę pisać ;)

Share this post


Link to post
Share on other sites

Wystarczyło napisać, że w publicu:

cod_class_enabled(id)
należy dodać:
set_user_footsteps(id, 1); // ustawia ciche chodzenie
a w publicu:
cod_class_disabled(id)
należy dodać:
set_user_footsteps(id, 0); // zabiera klasie ciche chodzenie

Niepotrzebnie tak namieszałeś, jeśli możesz to edytuj post i napisz tak jak Ja + przykładowa klasa.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.


×
×
  • Create New...