hud_showmessage not showing up
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:
|
Re: hud_showmessage not showing up
Change:
Code:
Code:
|
Re: hud_showmessage not showing up
That compiles and doesn't cause any errors when the bomb is picked up, but it also doesn't show the message on the screen when the bomb is picked up.
|
Re: hud_showmessage not showing up
|
Re: hud_showmessage not showing up
OK, I changed to fakemeta to find who has the bomb using the script from that thread. The message is still not displaying on the screen. Is there a way to show the message to every player so I can see if it's just sending it to the wrong player?
Here's my code now: PHP Code:
|
Re: hud_showmessage not showing up
Quote:
Code:
show_hudmessage(id, "you picked up the bomb")To (0 = everyone) Code:
show_hudmessage(0, "you picked up the bomb") |
Re: hud_showmessage not showing up
why not using "cs_get_user_plant(index)"?
|
Re: hud_showmessage not showing up
OK, I changed to cs_get_user_plant and here's what I've got now, along with server_prints to see what exactly is getting called:
PHP Code:
Code:
bombpickup called |
Re: hud_showmessage not showing up
"cs_get_user_plant - Returns 1 if a player can plant the bomb"
Doesn't that mean the player has to be standing on the bombsite with the C4 icon blinking red? |
| All times are GMT -4. The time now is 05:38. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.