Raised This Month: $ Target: $400
 0% 

if weapon isnt knife, do stuff


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Pantheon
Member
Join Date: Jan 2011
Old 01-14-2011 , 06:27   if weapon isnt knife, do stuff
Reply With Quote #1

PHP Code:
public WeaponCheck(id) {
    new 
players[32], playernum
    get_players
playersnum"e""TERRORIST" )
    
    for( new 
inumi++ )    {
        
player players[i]
        if(
is_user_connected(player) == && is_user_alive(player) == 1){
            
strip_user_weapons player )
            new 
weapknife[24]
            new 
knifename[32] = "knife"
            
format(weapknife 23"weapon_%s"knifename)
            
//Weapon Checker
            
give_item(playerweapknife)
        }
    }
    
    
get_playersplayersnum"e""CT" )
    for( new 
inumi++ )    {
        
player players[i]
        if(
is_user_connected(player) == && is_user_alive(player) == 1){
            
strip_user_weapons player )
            new 
weapknife[24]
            new 
knifename[32] = "knife"
            
format(weapknife 23"weapon_%s"knifename)
            
//Weapon Checker
            
give_item(playerweapknife)
        }
    }
    
set_task(0.1"WeaponCheck")

i want to check if the player has a knife.

Last edited by Pantheon; 01-14-2011 at 06:31.
Pantheon 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 02:13.


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