|
#include <amxmod>
#include <amxmodx>
#include <amxmisc>
#include <fun>
public slaylosers(param[]) {
if(get_cvar_num("cds_xdcheck") == 1) return PLUGIN_HANDLED
new players[32], playersnum,type
get_players(players,playersnum,"ea",(param[7] == 't') ? "CT" : "TERRORIST" )
type = get_cvar_num("cds_slayloser")
for(new a = 0; a < playersnum; ++a){
if(get_cvar_num("cds_slayloser") == 0 || get_cvar_num("cds_slayloser") >5)
type = random_num(1,5)
switch(type){
case 1:Rocket(players[a])
case 2:TimeBomb(players[a])
case 3:Raise(players[a])
case 4:Fire(players[a])
case 5:SlapFly(players[a])
}
}
return PLUGIN_CONTINUE
}
|
|