Есть плагин. Дается золотой дигл вип игрокам, но есть где то ошибка Лог ошибки: Спойлер L 12/13/2014 - 15:07:27: Start of error session. L 12/13/2014 - 15:07:27: Info (map "de_dust2_2x2") (file "addons/amxmodx/logs/error_20141213.log") L 12/13/2014 - 15:07:27: Invalid player id 0 L 12/13/2014 - 15:07:27: [AMXX] Displaying debug trace (plugin "vip_deagle.amxx") L 12/13/2014 - 15:07:27: [AMXX] Run time error 10: native error (native "get_user_weapon") L 12/13/2014 - 15:07:27: [AMXX] [0] NewPlugin_[13-12]--(13-50-39).sma::TakeDamage (line 80) L 12/13/2014 - 15:08:29: Invalid player id 0 L 12/13/2014 - 15:08:29: [AMXX] Displaying debug trace (plugin "vip_deagle.amxx") L 12/13/2014 - 15:08:29: [AMXX] Run time error 10: native error (native "get_user_weapon") L 12/13/2014 - 15:08:29: [AMXX] [0] NewPlugin_[13-12]--(13-50-39).sma::TakeDamage (line 80) L 12/13/2014 - 15:10:24: Invalid player id 0 L 12/13/2014 - 15:10:24: [AMXX] Displaying debug trace (plugin "vip_deagle.amxx") L 12/13/2014 - 15:10:24: [AMXX] Run time error 10: native error (native "get_user_weapon") L 12/13/2014 - 15:10:24: [AMXX] [0] NewPlugin_[13-12]--(13-50-39).sma::TakeDamage (line 80) Исходник: Спойлер #include #include #include #define PLUGIN "VIP GOLD DEAGLE" #define VERSION "1.0" #define AUTHOR "Glad1ator" #define model new zestaw_flag[] = "b" new speed, visible, damage_cvar public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_event("CurWeapon","CurWeapon","be", "1=1"); RegisterHam(Ham_TakeDamage, "player", "TakeDamage"); register_cvar("gd_gravity", "0.8"); speed = register_cvar("gd_speed", "50"); visible = register_cvar("gd_visible", "0"); damage_cvar = register_cvar("gd_damage", "10"); } public CurWeapon(id) { new wid = read_data(2) if(wid == CSW_DEAGLE && has_flags(id, zestaw_flag)){ #if defined model set_pev(id,pev_viewmodel2,"models/v_golddeagle.mdl") //set_pev(id,pev_weaponmodel2,"models/p_golddeagle.mdl") #endif fm_set_user_gravity(id, get_cvar_float("gd_gravity")); fm_set_user_maxspeed(id,fm_get_user_maxspeed(id) + get_pcvar_num(speed)); fm_set_user_rendering(id, kRenderFxNone, 0,0,0, kRenderTransAlpha, 255 - get_pcvar_num(visible)) } else { if(has_flags(id, zestaw_flag)){ fm_set_user_gravity(id, 1.0); fm_set_user_rendering(id, kRenderFxNone, 0,0,0, kRenderTransAlpha, 255) } } } public has_flags(id,string[]) { new ret=1 new byte new len = strlen(string) new p_flag = get_user_flags(id) for(new i=0;i='a' && string