PHP Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "#8 SickneSS"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say","hook")
}
public hook(id) {
new said[192]
read_args(said,191)
remove_quotes(said)
new Restart[11]
new Value[11]
strbreak(said,Restart,10,Value,10)
if(equali(Restart,"/rr"))
{
if(equal(Value,""))
{
server_cmd("sv_restart 1")
client_print(id,print_chat,"Restart por 1")
}
else
{
server_cmd("sv_restart %d",str_to_num(Value))
client_print(id,print_chat,"Restart por %d",str_to_num(Value))
}
return PLUGIN_HANDLED
}
return PLUGIN_CONTINUE
}
I Made this,but I can't take if is str num or is more than 60,because if I put that,doesn't do nothing when I put only /rr
btw : i will made a const to type !rr /rr .rr or /r !r .r or !restart /restart .restart