Plugin that runs "say thetime" when started recording a demo from console
I tried to make a plugin which displays the current time(using "say thetime") when I type "record" in the console. I already tried in 2 different ways but it doesn't work. Here's what I tried and please correct where necessary or propose a new solution. Thank you in advance.
Code 1: Quote:
Quote:
|
Re: Plugin that runs "say thetime" when started recording a demo from console
Try something like this
PHP Code:
|
Re: Plugin that runs "say thetime" when started recording a demo from console
It didn't work right. I think I realized where the problem is but cannot fix it myself. Here's my thought: amx_record runs the command record, however it is nameless and therefore it doesn't create a .dem file, runs say thetime only. Somehow amx_record "name" must be converted to record "name"
|
Re: Plugin that runs "say thetime" when started recording a demo from console
Try like this:
PHP Code:
|
Re: Plugin that runs "say thetime" when started recording a demo from console
Do you want to record another player, or yourself?
|
Re: Plugin that runs "say thetime" when started recording a demo from console
Eventually, @hateYou from the official Bulgarian amxx site (amxmodxbg.org) helped out and it worked. Here's his suggestion:
Quote:
|
| All times are GMT -4. The time now is 18:28. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.