Raised This Month: $ Target: $400
 0% 

Simple question [Still need help :( ]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
2reason2kill
Senior Member
Join Date: Feb 2011
Old 06-26-2011 , 08:31   Re: Simple question [Still need help]
Reply With Quote #9

Quote:
Originally Posted by usaexelent View Post
It still doesn't work. On new round my skins doesn't change. That means that the Crysis array is still true and setarray didn't work. ;(
I havent test This, I think i should work.

PHP Code:
#include <amxmodx> 
#include <fakemeta> 
#include <fun>
#include <hamsandwich>


new VIEW_MODELKNIFE[]    = "models/CRYSMOD/c_v_knife.mdl"  
new VIEW_MODELAUG[]    = "models/CRYSMOD/c_v_aug.mdl" 
new VIEW_MODELUSP[]    = "models/CRYSMOD/c_v_usp.mdl" 
new PLAYER_MODELAUG[]    = "models/CRYSMOD/c_p_aug.mdl"  

new bool:Crysis33 ]; // Holder for whether player is Crysis or not 


public plugin_precache() 

    
precache_model(VIEW_MODELKNIFE); 
    
precache_model(VIEW_MODELAUG);  
    
precache_model(VIEW_MODELUSP);  
    
precache_model(PLAYER_MODELAUG); 


public 
plugin_init() 

    
register_plugin("Someting","0.1","usaexelent");
    
register_event"CurWeapon""Event_CurWeapon""be""1=1" ); // Register curweapon 
    
register_logevent("GetCrysis"2"1=Round_Start")  
    
register_clcmd("say /boost""GetCrysis"
    
RegisterHam(Ham_Spawn"player""Player_Spawn_Post"1);



public 
Event_CurWeaponid 

    if( !
is_user_aliveid ) || !Crysisid ] ) 
        return 
PLUGIN_CONTINUE
     
    switch( 
read_data(2) ) 
    { 
        case 
CSW_KNIFE
        { 
            
set_pevidpev_viewmodel2VIEW_MODELKNIFE); // set models 
            
set_user_rendering(idkRenderFxGlowShell000kRenderTransAlpha0// set visibility 
        

        case 
CSW_USP
        { 
            
set_pevidpev_viewmodel2VIEW_MODELUSP); // set models
            
set_user_rendering(id)
        } 
        case 
CSW_AUG
        { 
            
set_pevidpev_viewmodel2VIEW_MODELAUG); // set models 
            
set_pevidpev_weaponmodel2PLAYER_MODELAUG ); // set models
            
set_user_rendering(id)
        } 
        default: 
        { 
            
set_user_rendering(id);  
        } 
    } 


public 
GetCrysis( ) 
{
    
arrayset(Crysissizeof(Crysis), false);

    new 
iPlayers32 ], iNum
    
get_playersiPlayersiNum"h" ); 
    new 
iRand iPlayersrandomiNum ) ]; // Get random player 

    
CrysisiRand ] = true// Set the array index to true 

    
client_print(iRandprint_chat"You are Crysis now!");  
}
public 
Player_Spawn_Post(id)
{
    
Crysis[id] = false;
}
public 
client_connect(id)
{
    
Crysis[id] = false;
}
public 
client_disconnect(id)
{
    
Crysis[id] = false;

If somthing is Wrong Plz Correct me!
2reason2kill 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 23:32.


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