标签:des style blog ar color sp on div log
1 #include <amxmodx> 2 3 new g_bInBuyZone[33] 4 new g_bInBombZone[33] 5 6 public plugin_init() 7 { 8 register_plugin("buy and bomb zone", "1.0", "crsky") 9 register_message(get_user_msgid("StatusIcon"), "fw_StatusIcon") 10 } 11 12 public fw_StatusIcon(iMsgId, iDest, iEnt) 13 { 14 if(!is_user_connected(iEnt)) return 15 16 new szIcon[32] 17 get_msg_arg_string(2, szIcon, sizeof szIcon) 18 19 if(equal(szIcon, "buyzone")) 20 { 21 g_bInBuyZone[iEnt] = get_msg_arg_int(1) 22 } 23 if(equal(szIcon, "c4")) 24 { 25 g_bInBombZone[iEnt] = get_msg_arg_int(1) == 2 ? 1 : 0 26 } 27 } 28 29 public get_user_buyzone(id) 30 { 31 return g_bInBuyZone[id] 32 } 33 34 public get_user_bombzone(id) 35 { 36 return g_bInBombZone[id] 37 }
标签:des style blog ar color sp on div log
原文地址:http://www.cnblogs.com/crsky/p/4168424.html