Retrieving Script Name
#1

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?
Reply
#2

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,
Reply
#3

Quote:
Originally Posted by xMichaelx
Посмотреть сообщение
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,
I would only be deleting the .amx file, and that's only if someone uses it at an address not defined by me.
Reply
#4

yes with
GetServerVarAsString(server var[],string[],max size);

example
GetServerVarAsString("gamemode0",servervars,sizeof (servervars));
Reply
#5

I didn't know that function could retrieve that line, thanks cessil!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)