The trouble I can not write. I tried.

Please someone write to me.
Code:
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("DeathMsg","death","a")
}
public death(id){
new killer = read_data(1)
new victim = read_data(2)
new fragnum = random_num(1,100)
if(killer != victim)
{
new players[32], num, player
get_players(players, num)
player = players[random(num)]
set_user_frags (player, get_user_frags(player)+fragnum)
}
return PLUGIN_HANDLED
}
Quote:
Originally Posted by fysiks
You could set a repeating task for 600 seconds and execute code that does what you want to all the players.
|