You could create a ConVar callback (last argument of the ConVar class
constrictor) to remove all whitespaces from the string. If you wait a
few hours I could do it for you.

On Wednesday, December 9, 2009, JoeX <joe.cabe...@gmail.com> wrote:
> first.... i want to thank AzuiSleet, Saul Rennison and Jacob Heidt for their
> support in the last topic about "tf2 client plugin question", your help is
> much appreciated. Thank you again
>
> in documentation, i can't find how to run code, when the user change the
> value of a cvar...
>
> i got this....
>
> static ConVar empty_cvar("plugin_empty", "0", 0, "Example plugin cvar");
>
> i want to remove whitespaces from user...., that means:
>
> (console)
> ]plugin_empty hola amigos
> ]plugin_empty
>   plugin_empty = "holaamigos" (def = "0")
>   Example plugin cvar
>
> but..... how to make my own code, to "intercept" plugin_empty mdifications?
> like CON_COMMAND, with a code block...
>
> cheers from Chile! (LA)
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives, please 
> visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>
>

-- 

Thanks,
 - Saul.

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to