|
Post by P!KaChu~ on Feb 9, 2018 13:15:51 GMT 5.5
Source Code: #include <amxmodx> #include <zombieplague>
#define PLUGIN "Unlimited Ammo" #define VERSION "1.0" #define AUTHOR "P!KaChu~" #define UNLIMITED_AMMO 1000 // how much ammo admin will always have [Freeze] :V #define ADMIN_FLAG ADMIN_RCON
static TASK_ID = 666
public plugin_init( ) { register_plugin( PLUGIN , VERSION , AUTHOR) }
public client_putinserver( id ) { set_task(3.0, "check_ap", id+TASK_ID, _, _, "b") }
public check_ap(id) { id -= TASK_ID if( zp_get_user_ammo_packs( id ) != UNLIMITED_AMMO && get_user_flags( id ) & ADMIN_FLAG) { zp_set_user_ammo_packs( id , UNLIMITED_AMMO ) } }
public client_disconnect(id) { remove_task(id+TASK_ID) } This is like when you have access your ammo is Set to be 1000 And it never increase or decrease but you can purchase items
|
|
|
Post by K!nG on Feb 11, 2018 17:22:38 GMT 5.5
Nice & more easy to edit !
|
|