AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   how can i hide a say and make a hud? (https://forums.alliedmods.net/showthread.php?t=147765)

Crack. 01-13-2011 18:05

how can i hide a say and make a hud?
 
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

drekes 01-13-2011 18:25

Re: how can i hide a say and make a hud?
 
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.



Crack. 01-13-2011 23:05

Re: how can i hide a say and make a hud?
 
thanks, tomorrow i test it :)

drekes 01-14-2011 00:12

Re: how can i hide a say and make a hud?
 
You do know that this isn't the complete code, right ?


All times are GMT -4. The time now is 02:04.

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