|
发表于 2009-11-11 21:11:11
|
显示全部楼层
来自 中国–湖北–武汉
本帖最后由 visa567 于 2009-11-11 21:13 编辑
- #include <amxmodx>
- #include <cstrike>
- #define PLUGIN_NAME "show money"
- #define PLUGIN_VERSION "1.1"
- #define PLUGIN_AUTHOR "K.K.Lv"
- new g_max_players
- public plugin_init()
- {
- register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR)
- register_event("ResetHUD", "player_Spawn", "be")
- g_max_players = get_maxplayers()
- }
- public player_Spawn(iPlayer)
- {
- if (is_user_connected(iPlayer))
- {
- set_task(1.0, "show_money", iPlayer)
- }
- }
- public show_money(iPlayer)
- {
- new iMsg[256]
- new iLen = format(iMsg, 255, "当前队友金钱数:^n")
- for (new id = 1; id < g_max_players; id++)
- {
- if ((get_user_team(id) == get_user_team(iPlayer)) && (id != iPlayer))
- {
- new iMoney = cs_get_user_money(id)
- new name[32]
- get_user_name(id, name, 31)
- iLen += format(iMsg[iLen], 255-iLen, "%-22.22s: %d^n", name, iMoney)
- }
- }
- set_hudmessage(100, 200, 0, 0.05, 0.35, 0, 0.02, 5.0, 0.1, 0.2, 2)
- show_hudmessage(iPlayer, iMsg)
- }
复制代码 KK啊朗最新版 免费提供大家
不跟小人争论 说了半天他自己 还不发源码 能证明什么呢?
大家不用求他了 我已经在 KK啊朗指点下发出来了 谢谢 KK啊朗的无私奉献 |
|