Posts: 7,801
Threads: 187
Joined: Feb 2010
Reputation:
0
Is there a way to retrieve the name of the script when the server is running? For example, as a security feature, if someone tries to use my mode it will delete the .amx file automatically. Obviously if they change the name of the file, it won't delete anything... So again, can I retrieve the name of a script?
Posts: 144
Threads: 37
Joined: Dec 2011
Reputation:
0
Don't thinks its possible as you would need to get inside the PC somehow, unless you mean you include something inside your script that would delete if it is used, but you would be deleting your own script,
Posts: 1,363
Threads: 14
Joined: Apr 2009
Reputation:
0
yes with
GetServerVarAsString(server var[],string[],max size);
example
GetServerVarAsString("gamemode0",servervars,sizeof (servervars));
Posts: 7,801
Threads: 187
Joined: Feb 2010
Reputation:
0
I didn't know that function could retrieve that line, thanks cessil!