PHP- Kodu:
#include <amxmodx>
#include <amxmisc>
#include <colorchat>
#include <zombieplague>
#define PLUGIN "AMMO VER"
#define VERSION "1.0"
#define AUTHOR "DeaDB0Y5"
new deger;
new kontrol[33];
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /ammover","ammo_ver")
deger = register_cvar("verilen_ammo","100")
}
public ammo_ver(id) {
if(kontrol[id] == 0) {
if(access(id,ADMIN_CVAR))
{
zp_set_user_ammo_packs(id,zp_get_user_ammo_packs(id) + get_pcvar_num(deger))
ColorChat(id,GREEN,"^03[ AMMO VER ]^04 %d ^03AMMO Verildi",get_pcvar_num(deger))
kontrol[id] = 1;
}
} else {
ColorChat(id,GREEN,"^03[ AMMO VER ]^04 Her Oyunda 1 Defa Alabilirsiniz.")
}
}