Raised This Month: $ Target: $400
 0% 

function that it can not use weapon


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
klysman07
Senior Member
Join Date: Oct 2011
Old 07-10-2012 , 18:49   function that it can not use weapon
Reply With Quote #1

I need the function that does not allow players take or use any type of weapon

Knives only.

this code:

Help pls


PHP Code:
               case DAY_KNIFE:
                {
                        new 
players[32], numplayer;
                        
get_playersplayers,  num"a" );
                        
                        for( new 
0numi++ )
                        {
                                
player players[i];
                                
                                if( !
is_user_aliveplayer ) )
                                        continue;
                                
                                switch( 
cs_get_user_teamplayer ) )
                                {
                                        case 
CS_TEAM_CT:
                                        {
                        
set_user_healthplayer1600 );                       
                        
client_cmdplayer"speak sound/GagaSong/AF.wav");

                                        }
                                        
                                        case 
CS_TEAM_T:
                                        {
                        
set_user_healthplayer1000 );
                        
client_cmdplayer"speak sound/GagaSong/AF.wav");
                                        }
                                }
                                
                                
StripPlayerWeaponsplayer );
                                
                
give_itemplayer"weapon_knife" );
                
server_cmd("mp_friendlyfire 1");
                
server_cmd"sv_gravity 500" );
                
set_hudmessage02550, -1.00.200.05.00.10.1);
                
show_hudmessage0"HOJE E DIA DE SOBREVIVENCIA !!^nTOME CUIDADO !!" );                
                
                        }
                } 
klysman07 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 15:21.


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