Raised This Month: $ Target: $400
 0% 

[SOLVED]mini problem with deathmsg & weapon


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 10-15-2010 , 19:31   [SOLVED]mini problem with deathmsg & weapon
Reply With Quote #1

hi,

i know you maybe lol @ me but i just 4got manythings

my problem :

i want to catch the weapon in deathmsg event & check if the weapon exists in my list...

Code:
new weapons[][]=
{   
    "weapon_p228", 
    "weapon_scout", 
    "weapon_xm1014", 
    "weapon_mac10", 
    "weapon_aug", 
    "weapon_elite", 
    "weapon_fiveseven", 
    "weapon_ump45",
    "weapon_sg550", 
    "weapon_galil", 
    "weapon_famas", 
    "weapon_usp", 
    "weapon_glock18", 
    "weapon_awp",
    "weapon_mp5navy", 
    "weapon_m249",
    "weapon_m3", 
    "weapon_m4a1", 
    "weapon_tmp", 
    "weapon_g3sg1", 
    "weapon_deagle", 
    "weapon_sg552", 
    "weapon_ak47", 
    "weapon_p90"
}

ublic EventDeathMsg()
{
    new iKiller = read_data( 1 )
    
    
    
    static weapon[7];
    read_data(4,weapon,6); 
    
    if(user_is_warned[iKiller])
    {
        client_print(0,print_chat,"Lol TEST ?! WAFFE = %s ",weapon)
    }
}
now the question :

how to check if( weapon == weapons)

i know its a very beginner question but i just 4get manythings
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
 



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 10:20.


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