|
发表于 2007-9-4 00:49:51
|
显示全部楼层
来自 中国–广东–潮州–湘桥区
回复: 在地图更换前如何执行一个函数?
.........
- #include <amxmodx>
-
- #define PLUGIN_NAME "Ryu_"
- #define PLUGIN_VERSION "0.1"
- #define PLUGIN_AUTHOR "CZ*Ryu"
-
- public plugin_init()
- {
- register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR);
-
- register_event("30", "e_ChangeMap", "a")
- }
-
- public e_ChangeMap()
- {
- new iPlayersList[32], iNum, i, id
- get_players(iPlayersList, iNum)
- for ( i=0; i<iNum; i++ )
- {
- id = iPlayersList[i]
- client_cmd(id, "spk misc/seeya")
- }
- }
复制代码 |
|