Thread: [Solved] Help with turn on / off hud
View Single Post
Author Message
nades
BANNED
Join Date: Oct 2020
Location: Usa
Old 11-04-2020 , 02:36   Help with turn on / off hud
Reply With Quote #1

Code:
#include <amxmodx>


public plugin_init() {
    set_task(1.0, "show_hud",_,_,_, "b")
}

public show_hud() {
    
    new ip [ 60 ], hostname[ 64 ]
    get_user_ip ( 0, ip, sizeof ( ip ) - 1 )
    get_cvar_string("hostname", hostname, 63) 
    set_hudmessage(6, 70, 199, 0.0, 0.21, 0, 6.0, 1.1)
    show_hudmessage(0, "Server: %s^nIP: %s", hostname, ip);
}
I want a cmd /hud for on/off hud message.

Last edited by nades; 11-05-2020 at 02:46.
nades is offline
Send a message via ICQ to nades Send a message via AIM to nades Send a message via Yahoo to nades Send a message via Skype™ to nades