#include <amxmodx> #include <fun> #include <hamsandwich> #define PLUGIN_NAME "Longjump" #define PLUGIN_VERSION "1.0" #define PLUGIN_AUTHOR "COLT" new longjump public plugin_init() { longjump = register_cvar("amx_longjump", "1") RegisterHam(Ham_Spawn, "player", "player_spawn", 1) register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR) } public player_spawn(id) { if(get_pcvar_num(longjump) == 1) { if(is_user_alive(id)) { give_item(id, "item_longjump") message_begin(MSG_ONE,get_user_msgid("StatusIcon"),{0,0,0},id); write_byte(1); // status (0=hide, 1=show, 2=flash) write_string("item_longjump"); // icon write_byte(0); // red write_byte(210); // green write_byte(0); // blue message_end(); } } }
Proszę o pomoc... Dziękuję