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的問題嗎??
|