Raised This Month: $ Target: $400
 0% 

Hud message show


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
asd13
Member
Join Date: Apr 2009
Old 10-26-2009 , 07:09   Hud message show
Reply With Quote #1

Why isnt this code working?
Code:
#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>

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

    new szMap[ 11 ];
    get_mapname( szMap, 10 );
    
    if( equali( szMap, "de_dust2" ) ) {
    server_cmd("changelevel surf_green")
    server_exec()
    }
    if( equali( szMap, "surf_green" ) ) {
    set_task(120.0, "show_rules", 54564, _, _, "b")
    }
}

public show_rules(id)
{
    set_hudmessage(255, 0, 0, 0.05, 0.2, 0, 6.0, 12.0)
    show_hudmessage(id, "Surf Green Reeglid!")
    set_hudmessage(255, 0, 0, 0.05, 0.2, 0, 6.0, 12.0)
    show_hudmessage(id, "Keelatud on killida:")
    set_hudmessage(255, 0, 0, 0.05, 0.2, 0, 6.0, 12.0)
    show_hudmessage(id, "1. Relvaka ees!")
    set_hudmessage(255, 0, 0, 0.05, 0.2, 0, 6.0, 12.0)
    show_hudmessage(id, "2. Relvaka sees!")
    set_hudmessage(255, 0, 0, 0.05, 0.2, 0, 6.0, 12.0)
    show_hudmessage(id, "3. Topis!")
    set_hudmessage(255, 0, 0, 0.05, 0.2, 0, 6.0, 12.0)
    show_hudmessage(id, "Reeglite eirajaid karistatakse!")
}
The point is to show those messages if map is surf green and if map is de_dust2 it changes 2 surf_green

Last edited by asd13; 10-26-2009 at 10:06.
asd13 is offline
 



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 17:39.


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