引用 | 编辑
[NiGhT]-妖
2014-10-26 17:19 |
楼主
▼ |
||
![]() ![]()
|
引用 | 编辑
岳岳
2014-10-26 21:10 |
1楼
▲ ▼ |
复制程式
//这里应该是模式的编号 /* Game modes for zp_round_started() */ enum { MODE_NONE = 0, MODE_INFECTION, MODE_NEMESIS, MODE_ASSASSIN, MODE_SURVIVOR, MODE_SNIPER, MODE_SWARM, MODE_MULTI, MODE_PLAGUE, MODE_LNJ } //这个应该是回合开始后用的 /** * Called when the ZP round starts, i.e. first zombie * is chosen or a game mode begins. * * @param gamemode Mode which has started. * @param id Affected player's index (if applicable). */ forward zp_round_started(gamemode, id) //这个应该是回合开始前 /** * Called before the ZP round starts. This is only * called for custom game modes. * * Note: The custom game mode id can be used to start * the game mode externally * * Note: returning ZP_PLUGIN_HANDLED will cause the * game mode to be blocked and other game modes will * be given a chance. * * @param gameid Custom mode id which is called */ forward zp_round_started_pre(gameid) 大概是这样吧!? if(zp_round_started(7, id)) { ...... ...... ...... } ![]() |