demo recorder
PHP Code:
PHP Code:
|
Re: demo recorder
When comparing arrays you must use either contain, containi, equal, or equali. The i at the end makes it case-insensitive, so if you want exact name with case sensitive, don't put the i, otherwise if it doesn't matter, leave the i.
So: Code:
if(servername == "JB.RETRY.LV JAILBREAK 47/48p")-> Code:
if(equali(servername,"JB.RETRY.LV JAILBREAK 47/48p"))And change all of them btw. |
Re: demo recorder
Thanks. BTW, is there any way to check if smthn contains some text (ex. HNS.RETRY.LV) so i dont have to check full name?
|
Re: demo recorder
That's what contain is for.
Code:
if(containi(servername, "HNS.RETRY.LV") |
Re: demo recorder
PHP Code:
|
Re: demo recorder
Hmm, can u record from the actual server? get_user_name 0 i think get's the hostname right? So I don't think that the server can record unless u have HLTV. :(
Unless u have a player in the server just sitting there like a bot but an actual player who is recording? So this is what I would do, I'd make it only check once, when the client enters the server, so you don't have a task. Basically what this does if a person enters and their name is HNS......TV or w/e, it will send the command "record %s", demoname to them obviously not that exact command but w/e. So the person that is recording must be you or someone that you have access to their steam files and stuff. Then it will save the demo to their cstrike folder. Only downfall is that if they get kicked or soemthing, it won't stop recording. :( So this is what I got. Untested: Code:
#include <amxmodx> |
Re: demo recorder
Check my code again. Everything is finu but i need to call the record only 1 time for each player.
|
Re: demo recorder
Why don't you use Auto Demo Recorder
Also, 47/48p is not supported. |
Re: demo recorder
I must say that get_user_name(0) doesnt get the hostname.
|
Re: demo recorder
Quote:
Anyway, his server is non-steam. |
| All times are GMT -4. The time now is 21:53. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.