Raised This Month: $51 Target: $400
 12% 

change all weapon models


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Menethil
Senior Member
Join Date: Aug 2011
Old 12-20-2011 , 09:30   change all weapon models
Reply With Quote #1

PHP Code:
new old_p_models[] " // How do I enum here the p_ models wich i want to be replaced "

new old_v_models[] " // How do I enum here the v_ models wich i want to be replaced "

new p_models[] " // Here how do I enum the new p_ models "

new v_models[] " // Here how do i enum the new v_models "

same for w_

It would be easy 
if was only 1 model to be replaced.

so in curweapon 

if(equali(model,old_p_models[]))
        {
                
set_pev(id,pev_viewmodel2,p_models[])
         } 
Menethil is offline
Menethil
Senior Member
Join Date: Aug 2011
Old 12-23-2011 , 11:40   Re: change all weapon models
Reply With Quote #2

any help pls ? o.O
Menethil is offline
Devil259
Veteran Member
Join Date: Dec 2009
Location: France (59)
Old 12-23-2011 , 13:51   Re: change all weapon models
Reply With Quote #3

Code:
new const old_p_models[ ][ ] = {      "my model1",      "my model2",      "my model3" } for( new i = 0; i < sizeof( old_p_models ); i++ ) {      if( equali( model, old_p_models[ i ] ) )      {           // ...      } }
__________________
You can do anything you set your mind to, man.

Devil259 is offline
Reply



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 13:35.


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