AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Not change the models (https://forums.alliedmods.net/showthread.php?t=220375)

Varchar' 07-10-2013 03:26

Not change the models
 
Hi, I have a little problem with the weapons menu, which I Sets the models, v_ and p_, this is the part where the models change, not whether there will be a problem in the precache

PHP Code:

new buffer[100
         
if(
weaponid == bufferp[id]) 

       
ArrayGetString(g_weapon_vmodel[0], SELECTION_P[id], buffercharsmax(buffer)) 
       
format(buffercharsmax(buffer), ubicacionbuffer
       
entity_set_string(idEV_SZ_viewmodelbuffer
             
       
ArrayGetString(g_weapon_pmodel[0], SELECTION_P[id], buffercharsmax(buffer)) 
       
format(buffercharsmax(buffer), ubicacionbuffer
       
entity_set_string(idEV_SZ_weaponmodelbuffer

else if(
weaponid == buffers[id]) 

       
ArrayGetString(g_weapon_vmodel[1], SELECTION_S[id], buffercharsmax(buffer)) 
       
format(buffercharsmax(buffer), ubicacionbuffer
       
entity_set_string(idEV_SZ_viewmodelbuffer
            
       
ArrayGetString(g_weapon_pmodel[1], SELECTION_S[id], buffercharsmax(buffer)) 
       
format(buffercharsmax(buffer), ubicacionbuffer
       
entity_set_string(idEV_SZ_weaponmodelbuffer




All times are GMT -4. The time now is 06:23.

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