Raised This Month: $ Target: $400
 0% 

random models without change team ?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 03-12-2017 , 13:48   Re: random models without change team ?
Reply With Quote #4

Obviously it only changes the model. A solution would be to create 2 Strings which will contain certain models from each team.

Code:
new const Human_Models[][] = { "model1", "model2" } new const Zombie_Models[][] = { "zm_model1", "zm_model2" }

Then you'd set the model by doing this

Code:
set_user_info( id, "model", get_user_team( id ) ? ( Zombies_Models[ random( sizeof Zombies_Models ) ] ) : ( Human_Models[ random( sizeof Human_Models ) ] ) )
__________________

Last edited by edon1337; 03-12-2017 at 13:51.
edon1337 is offline
 



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 18:00.


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