Raised This Month: $ Target: $400
 0% 

Help with creating "Unknown command".


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Bad_Bud
Senior Member
Join Date: Oct 2006
Location: The internet
Old 10-13-2006 , 23:48   Help with creating "Unknown command".
Reply With Quote #1

Does anyone know what function is called when a user types in a console command that doesn't exist?

Example: If I were to type in "bloog" in the console, the console would read that "bloog" isn't a command, and would call a function that returns the message "Unknown command: bloog".

Either this is not it's own function call and is part of the console's operation, or I can't find it.

The reason I want to do this is to eliminate the console command "kill", which allows players to suicide. I want to give the illusion that the command doesn't exist, so I want to give a function call that gives a message saying that command doesn't exist.

Thanks for any help, I'm new to AMXX, but not to coding (three years).
Bad_Bud 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 04:56.


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