Raised This Month: $ Target: $400
 0% 

Weapon Name


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
daNzEt
Senior Member
Join Date: Sep 2010
Location: Romania
Old 01-06-2014 , 08:32   Re: Weapon Name
Reply With Quote #1

Done:

PHP Code:
public event_DeathMsg(id)
{
    new 
iKiller read_data(1
    new 
iVictim    read_data(2)     
    
    if(
iKiller == iVictim
    { 
        return 
PLUGIN_HANDLED
    } 
    
    else 
    {     
        new 
name[32];
        
get_user_name(iKillername31)
        
        new 
szWeapon32 ], iWeapon get_user_weaponiKiller );
        
get_weaponnameiWeaponszWeaponcharsmaxszWeapon ) );
         
        new 
health get_user_health(iKiller); 
         
        
chat_color(iVictim"!nKilled by !t%s !nwith !g%s !nand remained with !g%d !nhp"nameszWeaponhealth
    } 
    
    return 
PLUGIN_HANDLED

Good now but how can i eliminate

weapon_ (only m4a1) etc

[IMG]http://s23.************/cu1yqamd7/imgkill.png[/IMG]

Also on this line:

PHP Code:
new szWeapon32 ], iWeapon get_user_weaponiKiller ); 
PHP Code:
[AMXXDisplaying debug trace (plugin "statsx.amxx")
L 01/06/2014 18:40:45: [AMXXRun time error 10native error (native "get_user_weapon"

Last edited by daNzEt; 01-06-2014 at 12:38.
daNzEt is offline
Send a message via Yahoo to daNzEt Send a message via Skype™ to daNzEt
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 20:36.


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