Check model?!?!
Okay this is mine script:
Code:
I need that if its model 1 ( in this case gign.mdl ) is current player model - player gets function number one. But, if its model 2 ( in this case arctic.mdl ) current player model - player gets function number two. BUT, if it isn't neither gign or arctic as players model - script does different function. But, I cannot affor myself to user natives like cs_get_user_model coz that would not work. Any help? So, can you fix this code and add/remove things needed to get this stuff working? |
Get the model and see if it contains a certain string.
Code:
|
Thnx! Gonna try that ASAP!
|
Doesn't work... Always gives "Not using two predefined models" message...
|
or
Why don't you try the cstrike module, cs_get_user_model.....?
|
I tried that be4 one month - also didn't worked... But can you post a code snippet made by you, so if I was mistaken in it?
|
EV_SZ_model will most likely be player.mdl for players. Use cs_get_user_model.
|
Hmm, but I don't wanna use cs_get_user_model ( I'm aware of it ) - because I need the snippet which will work on almost all HL modifications. I doub't that the Specialists will have CS module on... But, if its the only way, let be it...
|
Apparently cs_get_user_model just returns the model keyvalue. I can't seem to find where the source code for get_user_model is. For models that support model changing through the customize menu, you can use get_user_info(id,"model",text[],maxLength)
|
Yes, I tried that - but the model can't be changed in few mods I'm making plugins for ( Jumbot xPanded , ESF... ).
|
| All times are GMT -4. The time now is 09:53. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.