Raised This Month: $ Target: $400
 0% 

Simple question [Still need help :( ]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
usaexelent
Senior Member
Join Date: Nov 2009
Location: Lithuania
Old 06-26-2011 , 06:09   Re: Simple question [Still need help]
Reply With Quote #1

Thats what i did
usaexelent is offline
Send a message via Skype™ to usaexelent
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 06-26-2011 , 06:22   Re: Simple question [Still need help]
Reply With Quote #2

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( 
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!");  

__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Reply



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