hello ppl! I'm a biginner and i wanna learn scripting.
First, i have an ideea, that's all i have for the moment ;(
I Want To Make A Plugin Named amx_sc ( amx short commands )
Description: when an admin want's to slay smbdy, he dosen't have to activate the console, he type with say /slay Player name and the player get slayed.
The problem is that dosen't work.
I tryed something like this:
Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>
#include <vault>
public plugin_init ()
{
register_plugin("Short Commands", "1.0", "Crusher")
register_cvar("sv_sc", "1")
register_clcmd("say /k %d %", "amx_kick %d %")
register_clcmd("say /m %", "amx_map %")
register_clcmd("say /s %d", "amx_slay %d")
register_clcmd("say /sp %d %", "amx_slap %d %")
register_clcmd("say /sc %", "amx_rcon sv_sc %")
}
I complied the plugin, i don't get any errors then i put it on server i joined the server and dosen't work, it's says nothing and do nothing.
Please help me. I'm not lame i learn quick.
Thank' you and sorry for my bad english.
__________________