Raised This Month: $ Target: $400
 0% 

how can i hide a say and make a hud?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Crack.
New Member
Join Date: Jan 2011
Location: Cementerio Punk -
Old 01-13-2011 , 18:05   how can i hide a say and make a hud?
Reply With Quote #1

Hi, i'm from argentina, my english is bad :S so i used the google traductor

i have 2 questions

1. how can i hide a say, for example, when a person say /web, the /web don't be displayed on chat and display a hud.

2. how can i make that hud only displayed to the player that wrote the say /web

----------------------------------------------------------------------------
por si no se entendio pregunto:

1. como hacer para que cuando un player escriba por say, por ejemplo, /web , no aparesca en el chat el /web sino que aparesca un hud ( con el nombre de la web en este caso)

2. como hacer para que ese hud que salio solo lo vea el player que escribio /web.


Thanks, Crack
__________________
Crack. is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 01-13-2011 , 18:25   Re: how can i hide a say and make a hud?
Reply With Quote #2

PHP Code:
register_clcmd("say /web""CmdWeb");

public 
CmdWeb(id)
{
    
set_hudmessage(/*the required color and coords*/);
    
show_hudmessage(id"<message>");

    return 
PLUGIN_HANDLED;    // Blocks chat message.

__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
Crack.
New Member
Join Date: Jan 2011
Location: Cementerio Punk -
Old 01-13-2011 , 23:05   Re: how can i hide a say and make a hud?
Reply With Quote #3

thanks, tomorrow i test it
__________________
Crack. is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 01-14-2011 , 00:12   Re: how can i hide a say and make a hud?
Reply With Quote #4

You do know that this isn't the complete code, right ?
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
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 02:04.


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