2 lil questions :)
1.What is the event line for "game will restart in x seconds" ?
- can it be changed to "The game is LIVE" (i don't need how) - 2. PHP Code:
1st line will be: AmoneL: /cmds 2nd line will be: AmoneL said /cmds How can i get rid off the 1st line? i need something like.. remove_say or .. don't know :| |
Re: 2 lil questions :)
1. If you want to catch "the game will restart in x seconds" then use this:
PHP Code:
2. To block chat message you need to add "return PLUGIN_HANDLED" at the end of function: PHP Code:
|
Re: 2 lil questions :)
thanks for advice, it was very helpfull.. now i fixed 4 scripts :D
erm.. i tryed what u said PHP Code:
PHP Code:
|
Re: 2 lil questions :)
The first one does not work because message "Live" is displayed before "game will restart in ..." and it's overwritten. You would have to use task to make it work.
The 2nd one is better solution, but you made little mistake. Try: PHP Code:
|
Re: 2 lil questions :)
First one should work since it's an event, aka message has already been sent.
Try instead : register_event("TextMsg", "event_game_restart", "a", "2&#Game_w") PHP Code:
|
Re: 2 lil questions :)
First one does not work even with "2&#Game_w" - I checked it in game (works if used with task).
The method you used in your code is not very different from second one. btw congrats, you managed to change 15 lines of easy to understand code into 40 lines of code that is hard to understand :P |
Re: 2 lil questions :)
thanks sylwester :), didnt noticed :)
btw conor, your code crushed my server X( "iFhWriteString" :-j |
| All times are GMT -4. The time now is 17:44. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.