zombie_plague_advance
************************************************************************\ =============================================== || Zombie Plague Advance Includes File || * =============================================== --------------- ||How to ||* --------------- To make use of the Zombie Plague Advance API features in your plugin, just add the following line at the beginning of your script: #include <zombie_plague_advance> --------------- ||Natives||* --------------- These work just like any other functions: you may have to pass parameters and they usually return values. Example: if ( is_user_alive( id ) && zp_get_user_zombie( id ) ) { server_print( "Player %d is alive and a zombie", id ) } ---------------- ||Forwards||* ---------------- Forwards get called whenever an event happens during the game. You need to make a public callback somewhere on your script, and it will automatically be triggered when the event occurs. Example: public zp_user_infected_post( id, infector, nemesis ) { if ( !infector || nemesis ) return; server_print( "Player %d just got infected by %d!", id, infector ) } Also, take note of cases when there's a suffix: [These suffixes are only available in some forwards] _pre : means the forward will be called BEFORE the event happens _post : means it will be called AFTER the event takes place \**************************************************************************
Constants
| Name | Description |
|---|---|
| _zombie_plague_advance_included | — |
| ZP_TEAM_ZOMBIE | = (1<<0) |
| ZP_TEAM_HUMAN | = (1<<1) |
| ZP_TEAM_NEMESIS | = (1<<2) |
| ZP_TEAM_SURVIVOR | = (1<<3) |
| ZP_TEAM_SNIPER | = (1<<4) |
| ZP_TEAM_ASSASSIN | = (1<<5) |
| ZP_PLUGIN_HANDLED | = 97 |
| ZP_TEAM_ANY | — |