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."
};
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."
};
public plugin_precache()
{
precache_sound("misc/humiliation.wav");
}
public hook_death()
{
if(get_pcvar_num(toggle) != 1)
return PLUGIN_HANDLED;
new amount = 0;
new killer = read_data(1);
new victim = read_data(2);
new kname[32]; get_user_name(killer,kname,31);
new vname[32]; get_user_name(victim,vname,31);
new weapon[24];
new namount[32];
read_data(4,weapon,23);
bool: bsounds(pcvar)
{
if(get_pcvar_num(pcvar) == 1)
return true;
return false;
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang11274\\ f0\\ fs16 \n\\ par }
*/
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