Raised This Month: $ Target: $400
 0% 

My second script. Need some help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
knekter
Senior Member
Join Date: Mar 2004
Location: PA
Old 02-04-2005 , 12:20   some work
Reply With Quote #2

You need to read the argument of the player name. The command gets called but the input <name> you want to 'mess' is not called. Try this:

Code:
#include <amxmodx> #include <amxmisc> public plugin_init() { register_plugin("amx_mess", "1.0", "XunTric") register_concmd("amx_mess", "cmdmess", ADMIN_KICK, "<name or #userid>") register_concmd("amx_unmess", "cmdunmess", ADMIN_KICK, "<name or #userid>") } public cmdmess(id,level,cid) {     if (!cmd_access(id,level,cid,2))          return PLUGIN_HANDLED     new arg[32]     read_argv(1,arg,31)     new player = cmd_target(id,arg,31)     server_cmd("amx_chicken %s", player)     server_cmd("amx_llama %s", player)     server_cmd("amx_name %s DONT MESS WITH THE ADMINS", player)          return PLUGIN_HANDLED }

Do the same for unmess and im not sure if the server_cmd with the %s will work, just test with it for a bit
__________________
More updates for Matrix Mod!
knekter is offline
Send a message via AIM to knekter Send a message via MSN to knekter
 



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 19:21.


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