引用 | 編輯
[NiGhT]-妖
2014-10-26 17:19 |
樓主
▼ |
||
x0
if (zp_get_user_first_zombie(id)) 不能用在多人感染模式 那到底要用什麼來取得頭幾隻喪屍? 謝謝大大們x0
|
引用 | 編輯
岳岳
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)) { ...... ...... ...... } x0 |