AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   help! (https://forums.alliedmods.net/showthread.php?t=237958)

skype321 04-01-2014 11:47

help!
 
Hello i want to use client_print instead of HUD message how can i do so here's the part..
PHP Code:

new pun_list[][] =
{
    
"%s has sliced %s^nand stole %s bucks!!!",
    
"%s has given %s a taste of his cold steel!!!^n(he took %s from him)",
    
"%s rules! %s bows to his mighty skills ^nand surrenders %s from his purse."
}; 

PHP Code:

set_hudmessage(255127420.5, -1.006.07.0);
show_hudmessage(0,pun_list[random(sizeof pun_list)],kname,vname,namount); 

Full script
Spoiler

fysiks 04-01-2014 12:20

Re: help!
 
Simply replace
Code:

show_hudmessage(0,
with
Code:

client_print(0, print_chat,

skype321 04-02-2014 01:47

Re: help!
 
Quote:

Originally Posted by fysiks (Post 2118843)
Simply replace
Code:

show_hudmessage(0,
with
Code:

client_print(0, print_chat,

Hello thanks for replying sir but i want to take the random messages from the pun_list (in the same way as the hud is done in the above script) how can i do so it's so confusing :shock:
EDIT - I want to display that in client_print format

Blizzard_87 04-02-2014 02:55

Re: help!
 
Quote:

Originally Posted by skype321 (Post 2119080)
Hello thanks for replying sir but i want to take the random messages from the pun_list (in the same way as the hud is done in the above script) how can i do so it's so confusing :shock:
EDIT - I want to display that in client_print format

You mean how the hud is 2 lines?

Can't be done with client_print in one native. You would need to be done in two natives


All times are GMT -4. The time now is 05:55.

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