Raised This Month: $ Target: $400
 0% 

Simple question [Still need help :( ]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
usaexelent
Senior Member
Join Date: Nov 2009
Location: Lithuania
Old 06-25-2011 , 15:57   Simple question [Still need help :( ]
Reply With Quote #1

How to make that player on other round wouldn't be crysis?

This is my code (And please don't rip this code or my idea)
PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <fun>


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_event"CurWeapon""Event_CurWeapon""be""1=1" ); // Register curweapon
    
register_logevent("GetCrysis"2"1=Round_Start"
    
register_clcmd("say /boost""GetCrysis")
}


public 
Event_CurWeaponid )
{
    if( !
is_user_aliveid ) || !Crysisid ] )
        return 
PLUGIN_CONTINUE;
    
    switch( 
get_user_weaponid ) )
    {
        case 
CSW_KNIFE:
        {
            
set_pevidpev_viewmodel2VIEW_MODELKNIFE); // set models
            
set_user_rendering(idkRenderFxGlowShell000kRenderTransAlpha0// set visibility
        
}
        case 
CSW_USP:
        {
            
set_pevidpev_viewmodel2VIEW_MODELUSP); // set models
        
}
        case 
CSW_AUG:
        {
            
set_pevidpev_viewmodel2VIEW_MODELAUG); // set models
            
set_pevidpev_weaponmodel2PLAYER_MODELAUG ); // set models
        
}
        default:
        {
        
set_user_rendering(id,kRenderFxNone,255,255,255,kRenderNormal,16); 
        }
    }
}

public 
GetCrysisid )
{
Crysis[id] = false;
new 
iPlayers32 ], iNum;
get_playersiPlayersiNum );
new 
iRand randomiNum ); // Get random player

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

client_print(iRandprint_chat"You are Crysis now!"); 


Last edited by usaexelent; 06-27-2011 at 05:56.
usaexelent is offline
Send a message via Skype™ to usaexelent
 



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