View Single Post
MeRcyLeZZ
Veteran Member
Join Date: Dec 2007
Old 10-05-2008 , 23:42   Re: [TUT-CS] Changing player models and lowering svc_bad
Reply With Quote #28

Quote:
Originally Posted by mut2nt
and if i want to add 2 models to be random, how can i add?
Just make a code that picks one randomly and stores it into g_player_model[id]

In the example you would need to replace this line
Code:
        // Store our custom model in g_player_model[id]         copy(g_player_model[id], sizeof g_player_model[] - 1, ZOMBIE_MODEL)
with something like
Code:
        // Pick a random model and store it in g_player_model[id]     switch (random_num(1, 3))     {         case 1: copy(g_player_model[id], sizeof g_player_model[] - 1, "model1")         case 2: copy(g_player_model[id], sizeof g_player_model[] - 1, "model2")         case 3: copy(g_player_model[id], sizeof g_player_model[] - 1, "model3")     }
__________________
MeRcyLeZZ is offline