Raised This Month: $ Target: $400
 0% 

[v2.5.2, March 19] Trouble in Terrorist Town mod


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
erkike93
Member
Join Date: Aug 2013
Old 03-09-2015 , 17:06   Re: [v2.5.1, February 15] Trouble in Terrorist Town mod
Reply With Quote #10

Hi bro i want to ask you how can i add the weapon name to the ttt_special_info at this part:

PHP Code:
        formatex(messagecharsmax(message), "Name: %s [Karma = %d] -- [HP = %d]"namekarmaget_user_health(pid));
    else 
formatex(messagecharsmax(message), "Name: %s [Karma = %d]"namekarma); 
I want to add that feature and when i see a player, show the weapon name, i try this method:

PHP Code:
    new weapon_name[33],weapon_id;
    
read_data(4,weapon_name,32);
    
format(weapon_name,32,"weapon_%s",weapon_name);
        
weapon_id get_weaponid(weapon_name); 
But i dont know if thats right or not, or if i'm missing something more to show the name of weapons when i target a player, cuz it just keep in the hud as [Weapon = ], thanks in advanced bro.

Last edited by erkike93; 03-09-2015 at 17:36.
erkike93 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 18:01.


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