Raised This Month: $ Target: $400
 0% 

Check model?!?!


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
LynX
Veteran Member
Join Date: Oct 2004
Old 03-24-2005 , 16:15   Check model?!?!
Reply With Quote #1

Okay this is mine script:

Code:
// Don't pay attention to these includes - I have more stuff that requires this modules #include <amxmodx> #include <core> #include <engine> #include <fun> public plugin_init() {     register_plugin("CheckModel_GiveFunction","dunno","LynX")     register_clcmd("check","check_function")     return PLUGIN_CONTINUE } new model[33][33] public check_function(id) {     if ((get_user_info(id,"model","gign",32) = 1)     {     client_print(id, print_center, "Using Gign")     return PLUGIN_HANDLED     }     if ((get_user_info(id,"models","arctic",32) = 1)     {     client_print(id, print_center, "Using Arctic")     return PLUGIN_HANDLED     } client_print(id, print_center, "Not using two predefined models") return PLUGIN_HANDLED } public plugin_precache() { precache_model("models/player/arctic/arctic.mdl") precache_model("models/player/gign/gign.mdl") return PLUGIN_HANDLED }

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?
__________________
Current plugin : SoulPunisher anti-cheat
Percentage done : {||--------} 20%

If you think v3x is a PIMP, paste this into your sig!

If you think Bailopan is DA BOMB, paste this into your sig
LynX is offline
Send a message via ICQ to LynX
 



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 09:53.


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