AMXX-BG.INFO zombie_plague_advance.inc

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