Raised This Month: $ Target: $400
 0% 

[SOLVED] Format a message?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Depresie
Veteran Member
Join Date: Nov 2013
Old 02-14-2016 , 12:36   [SOLVED] Format a message?
Reply With Quote #1

Can anyone explain to me how i can do the following?

I have about 20 cases with different type of victims, and i would like to save the desired text i want to display for each specific case then insert it into a hud message
PHP Code:

fw_PlayerKilled
(victimattacker)
{
        if(
leader_human(victim))
        {
                
save "Last Kill: get_pcvar_num(cvar_numer_points_last) Points" text in a variable/array
        else if(
last_human(victim))
        {
                
save "Last Kill: get_pcvar_num(cvar_numer_points_last Points" text in a variable/array
        }
        
set_hudmessage(bla bla)
        
show_hudmessage(attacker"%s"text from above cases)

__________________

Last edited by Depresie; 02-15-2016 at 10:06.
Depresie 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 09:27.


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