Raised This Month: $ Target: $400
 0% 

disable choosing of model.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Bad_Bud
Senior Member
Join Date: Oct 2006
Location: The internet
Old 01-10-2007 , 23:00   Re: disable choosing of model.
Reply With Quote #7

Or you could do something simple like you had before:

PHP Code:
register_clcmd("model sinvan","sinvan")
 
sinvan(id)
{
      return 
PLUGIN_HANDLED

You wouldn't need to output a message, because every time "model sinvan" appears in the user's console, it goes immediately to this function, and since this function simply returns PLUGIN_HANDLED, nothing would happen, and they wouldn't be able to use the model.

You could even make it say something like "The use of this model has been denied by an administrator". Then you don't have to check for model flooding and stuff...

So you really kind of had it right the first time... although Avalanche's method is better if you want to block more than one type of model. However, instead of using client_infochanged, you might want to just use register_clcmd("model","modelchanged") and check it from there, and then I don't think they would be able to spam past it.

Just a few thoughts.
__________________
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 22:20.


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