23208367
|
分享:
▼
x0
|
[1.6][插件] sma的问题
我写了一个插件,用在nst大乱斗的
#include <amxmodx> #include <amxmisc> #include <cstrike> #include <fakemeta> #include <hamsandwich> #define PLUGIN "zbu_tr" #define VERSION "1.0" #define AUTHOR "kevin" new icon new color=255 public plugin_init() { register_plugin( PLUGIN, VERSION, AUTHOR ) register_event( "HLTV" , "event_round_start" , "a" , "1=0" , "2=0" ) icon=get_user_msgid("StatusIcon") } public event_round_start() { if(get_user_team(1) == CS_TEAM_T) { begin_spr(0) } } public begin_spr(id) { remove_task(id) message_begin(MSG_ONE,icon,{0,0,0},id) write_byte(0) write_string("zbu_tr") write_byte(0) write_byte(0) write_byte(0) message_end() set_task(0.1,"show_spr",id,"",0,"b") } public show_spr(id) { color-=5 if(color>0) { message_begin(MSG_ONE,icon,{0,0,0},id) write_byte(1) write_string("zbu_tr") write_byte(color) write_byte(color) write_byte(color) message_end() } else { color=0 message_begin(MSG_ONE,icon,{0,0,0},id) write_byte(0) write_string("zbu_tr") write_byte(color) write_byte(color) write_byte(color) message_end() remove_task(id) } }
可是,一进游戏选了tr以后,就被弹了出来(选ct不会) 说:Host_Error: WriteDest_Parm: not a clien 这是什么问题,amxx的问题吗??
|