Raised This Month: $ Target: $400
 0% 

Amx Short Commands Plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Crushe-R
Junior Member
Join Date: Jun 2006
Location: Romania
Old 09-13-2006 , 09:14   Amx Short Commands Plugin
Reply With Quote #1

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.
__________________
--== Crusher ==--
Crushe-R is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:32.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode