Raised This Month: $ Target: $400
 0% 

hud_showmessage not showing up


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
skis
Junior Member
Join Date: Jul 2008
Old 07-23-2008 , 21:18   hud_showmessage not showing up
Reply With Quote #1

Can anyone please check out my code and figure out why hud_showmessage isn't showing up to the person who picked up the bomb? No errors are coming up in the server log when someone picks the bomb up.

Also, is there a way to show the message to everybody instead of just the player who picks it up? (I'm assuming in the "id" parameter of the "public bombpickup(id)" function that metamod is passing the id of the player who made the event fire in the first place? Is that how it works?)

Here's my code:

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <cstrike>

#define PLUGIN "mod_name_goes_here"
#define VERSION "1.0"
#define AUTHOR "author_name_goes_here"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_logevent("bombdrop"3"2=Dropped_The_Bomb");
    
register_logevent("bombpickup"3"2=Got_The_Bomb");
}

public 
bombdrop(id) {
    
//not written yet
    
return PLUGIN_CONTINUE;
}

public 
bombpickup(id) {
    new 
players[32];
    new 
numi;
    
get_players(playersnum"e""TERRORIST");
    for(
1;numi++) {
        new 
weapons[32];
        new 
numweaponsj;
        
get_user_weapons(iweaponsnumweapons);
        for (
0numweaponsj++) {
            if (
equal(weapons[j],"weapon_c4")) {
                
set_hudmessage(25500, -1.00.01)
                
show_hudmessage(id"you picked up the bomb")
            }
        }
    }
    return 
PLUGIN_CONTINUE;

Thanks
skis 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 05:38.


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