Raised This Month: $ Target: $400
 0% 

function that it can not use weapon


Post New Thread Reply   
 
Thread Tools Display Modes
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
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 07-10-2012 , 18:51   Re: function that it can not use weapon
Reply With Quote #2

You can hook Ham_Item_CanDeploy or Ham_Item_Deploy for example.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
klysman07
Senior Member
Join Date: Oct 2011
Old 07-10-2012 , 19:25   Re: function that it can not use weapon
Reply With Quote #3

Quote:
Originally Posted by ConnorMcLeod View Post
You can hook Ham_Item_CanDeploy or Ham_Item_Deploy for example.
where can I put this function?
which one is best?
can put it to me please?
klysman07 is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 07-10-2012 , 20:58   Re: function that it can not use weapon
Reply With Quote #4

This is not a function you can insert as you seems to think.
If you don't have any specific question about some code, make a request in the correct forum.
__________________
- 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 15:21.


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