thx, ill test it tommorrow. i want one more thing in this plugin. when the admins uses the command it shoul write in chat "[AMXX]Admin X slaped Y Z times with Q damage."
and about the rr plugin ... i have one but is for amx and i dont know if i can make a rr with diferent delays. ill post the source tomorrow.
btw thx again
edit: ive tested it ... but there is a problem. it slaps the correct damage but only one time. and if i type only amx_slap2 it doesnt say "usage bla bla" it says that there is no player with that name
.
the rr plugin source is :
Code:
/* AMX Mod script.
*
* (c) Copyright 2002-2003, f117bomb
* This file is provided as is (no warranties).
*/
#include <amxmod>
#include <amxmisc>
/*
* amx_rr <restart times> <delay>
*
*/
public drestart(param[])
set_cvar_string("sv_restart",param)
public admin_rr(id, level, cid) {
if (!cmd_access(id, level, cid, 3))
return PLUGIN_HANDLED
new sdelay[4], stimes[4]
read_argv(1,stimes,3)
read_argv(2,sdelay,3)
new delay = strtonum(sdelay)
new times = strtonum(stimes)
for(new a = times;a > 0;--a)
set_task( float(delay * a) + 1.0 , "drestart", 0, sdelay, 4)
client_print(0, print_chat, "The Game will restart %d times with a %d sec. delay between restarts",times,delay)
return PLUGIN_HANDLED
}
public plugin_init() {
register_plugin("Admin RestartRound","0.9.2","f117bomb")
register_concmd("amx_rr","admin_rr",ADMIN_LEVEL_A,"<restart times> <delay>")
return PLUGIN_CONTINUE
}
the plugin works correctly with amxx with the amxmod compatibility plugin. but i want to add the name of the admin who restarted the map in print_chat ... can you help me with this ? thx