PHP- Kodu:
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "El Sonu Drop"
#define VERSION "1.0"
#define AUTHOR "akcaliberk"
new bool:is_round_ended;
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_logevent("RoundEnd",2,"1=Round_End")
register_logevent("RoundStart",2,"1=Round_Start")
register_event("CurWeapon","WeaponBlock","be","1=1")
}
public RoundStart() {
is_round_ended = false;
}
public RoundEnd() {
is_round_ended = true;
for(new i=1;i<33;i++) {
client_cmd(i,"drop")
}
}
public WeaponBlock(id) {
if(is_round_ended) {
client_cmd(id,"drop")
}
return PLUGIN_CONTINUE
}