Raised This Month: $ Target: $400
 0% 

register_clcmd with parameter? [SOLVED]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
dutchmeat
Senior Member
Join Date: Sep 2006
Old 12-11-2006 , 16:52   Re: register_clcmd with parameter?
Reply With Quote #6

then use this;
for admin_kick only,

Code:
register_clcmd("say","cmd_changemap") register_clcmd("say_team","cmd_changemap") cmd_changemap(id){ if(!access(id, ADMIN_KICK))  return PLUGIN_CONTINUE //let the msg go, if not an admin new said[191] read_args(said,190) remove_quotes(said)  if(equali(said,"/cbble")){   server_cmd("changelevel de_cbble")   return PLUGIN_HANDLED //Do not show the text that has been said,pointless  }else if(equali(said,"/cpl_mill")){   server_cmd("changelevel de_cpl_mill")   return PLUGIN_HANDLED //Dito  } return PLUGIN_CONTINUE }
__________________
before you criticize someone, you should walk a mile in their shoes. that way, when you criticize them, you're a mile away and you have their shoes.
dutchmeat 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 06:57.


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