View Single Post
johnjg75
Veteran Member
Join Date: Mar 2004
Location: Delaware
Old 10-26-2009 , 21:56   Re: Hud message show
Reply With Quote #2

What does it do? Do you also understand that you're telling it to display the rules 120 seconds after the map is changed? I suggest you do it each time a client is put in the server and only to that client. And since you keep sending HUD Messages to the same channel, i suggest you do something like this:
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>

public plugin_init() {
    
register_plugin("Plugin""Beta""1932")

    new 
szMap11 ];
    
get_mapnameszMap10 );
    
    if( 
equaliszMap"de_dust2" ) ) {
    
server_cmd("changelevel surf_green")
    
server_exec()
    }
    if( 
equaliszMap"surf_green" ) ) {
    
set_task(120.0"show_rules"54564__"b")
    }
}

public 
show_rules()
{
    
set_hudmessage(255000.050.206.012.0)
    
show_hudmessage(0"Surf Green Reeglid!^nKeelatud on killida:^n1. Relvaka ees!^n2. Relvaka sees!^n3. Topis!^nReeglite eirajaid karistatakse!")

__________________

Last edited by johnjg75; 10-26-2009 at 22:01.
johnjg75 is offline
Send a message via AIM to johnjg75 Send a message via MSN to johnjg75 Send a message via Yahoo to johnjg75