register_clcmd(say /model....
ALright...
I made a plugin that allows player to change their models... The thing is, I want it to be in chat... Example, I write: /model "modelname" And it changes my model.. if I type: say /model "modelname" in console, it works fine.. But if I use my standard talk button it doesnt work.. The standard talk button wich is "Y" is bound to "Messagemode" How would I make it work so I dont have to write say bla bla bla in console...? Any help? Thanks :D |
registering it as say /model will not work
register say, and hook it to a function, then look through the arguements to see if it contains "/model", then do your function. |
Huh, what do you mean register say?
|
Code:
|
I did that... but when I type: /model something it doesnt work..
BUt if I type: say /model something in console it works... |
Arg, you didnt get me. Watch and learn.
Code:
public plugin_init() { Your way of "say /model" will ONLY WORK if you ONLY say "/model" anything else and it screws up. My way looks for it inside the say, so you can put stuff after it. Get it? Got it? Good. |
Psycho Bitch :shock:
|
Hmmmm
Thanks, I wouldve never figuere that out by myself. ill try it out right now. |
Quote:
*goes and sits in her corner and crys* |
Alright...
Here's my source. Now, I can't make the say work... Example: my "containi" is /model BUt the plugin only responds to "model" Code:
|
| All times are GMT -4. The time now is 17:23. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.