if(!is_user_alive(id))
Hey, i tried making this plugin that shows a hud message after a player is dead just to him but its not working.
Code:
public hudmsg(id) |
Re: if(!is_user_alive(id))
What part isn't working? Is hudmsg() being called? If so, how?
Did you try putting a simple client_print() in there also to see if the functions are getting called properly? Also, you should check if the user is connected in ShowHud() before calling show_dhudmessage(). |
Re: if(!is_user_alive(id))
|
Re: if(!is_user_alive(id))
i tested it using a /test command for chat to see if working and it was..but not without it
|
Re: if(!is_user_alive(id))
Quote:
That's how you fix bugs, it's called DEBUGGING. There's no way to write working code without learning or wanting to debug your code. |
Re: if(!is_user_alive(id))
ok now i see..hudmsg() was not being called sorry xD...i've made it like this
public client_putinserver(id) { set_task(1.0, "showMessage", id) } |
Re: if(!is_user_alive(id))
the plugin is working perfectly now but can you help me so the player using a cmd like /off can switch it off..
Code:
public client_putinserver(id) |
Re: if(!is_user_alive(id))
Maybe...
PHP Code:
|
Re: if(!is_user_alive(id))
by toggle i mean for the player indivisually...sorry for not being clear
|
Re: if(!is_user_alive(id))
Quote:
|
| All times are GMT -4. The time now is 04:40. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.