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.
__________________