I
think this is what you want:
Code:
#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <cstrike>
public plugin_init()
{
register_plugin("Goodbye", "1.0", "s0upnazi")
register_concmd("amx_goodbye", "cmd_bye", ADMIN_KICK, "<target> <# of slaps> ")
}
public cmd_bye(id, level, cid)
{
if(!cmd_access(id, level, cid, 2))
return PLUGIN_HANDLED
new Arg1[24]
new Arg2[4]
read_argv(1, Arg1, 23)
read_argv(2, Arg2, 3)
new Slaps = str_to_num(Arg2)
new player = cmd_target(id, Arg1, 1)
if (!player)
console_print(id, "Whoever %s is could not be slapped!", Arg1)
else
for(new iCount = 0;iCount < Slaps;iCount++)
user_slap(player, 1)
return PLUGIN_HANDLED
}
__________________