Message
The script i am currently working on shall have a weapon menu which is only supposed to be enabled when there are 2 players left alive.
That is not a problem, but when there are two people left i want a message like: "Gun menu enabled. Type: /guns " or something similar but i canīt get it working. PHP Code:
I also tried: PHP Code:
|
Re: Message
Hook DeathMsg and with that check for alive players count so when there's only 2, you can send the message you want and set a flag to allow the use of the command.
|
Re: Message
DeathMsg?
Beware of that I'm new to Pawn. |
Re: Message
Quote:
2. Your check for players, PHP Code:
|
Re: Message
set_task does not work in plugin_init either :(
Any1 got any suggestions? |
Re: Message
It should work. Post your code.
|
Re: Message
PHP Code:
|
Re: Message
I'm sure that one second after plugin_init you can't have players connected :P
|
Re: Message
You need to register the plugin too...
PHP Code:
Quote:
|
Re: Message
Quote:
|
| All times are GMT -4. The time now is 07:24. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.