SA-MP Forums Archive
Lock your own gamemode - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Lock your own gamemode (/showthread.php?tid=335695)



Lock your own gamemode - Gertin - 19.04.2012

Hello

I have one question. I wan't to make fail or include or smth that i need to run my gm. Like if i don't have that fail/include, then i can't run my gm. SAMP-SERVER don't open. I have seen there some gamemode lock tutorial, but that is deleted So i need help and if you help me, i give you 1+ rep too

Thanks for watching


Re: Lock your own gamemode - SiEx - 19.04.2012

If You want to lock your server just type new line in server.cfg

password [yourpassword]


Re: Lock your own gamemode - Luis- - 19.04.2012

He doesn't mean that..


Re: Lock your own gamemode - Gertin - 19.04.2012

Nonooo, i wan't to lock my gamemode. Like anyone else if they get that GM and don't have that fail, then he cant run that GM on SAMP-SERVER


Re: Lock your own gamemode - Calgon - 19.04.2012

Here's a method I use based on something ****** posted a while ago:

http://forum.sa-mp.com/showpost.php?...8&postcount=13

The server.cfg 'bind' value is the IP of the server - if you create a define/macro in your script to compare it against the 'bind' value in your server.cfg, you can check if it's being ran on the server you permit it to run on. Nobody will be able to connect to the server (except localhost) if they try to run the script on another server IP.

I can't find his original post, but this should explain it.


Re: Lock your own gamemode - Deduction - 19.04.2012

You could always use HTTP functions.
So the server connects to a file hosted on a website.
It will collect information which the server hoster will not be able to see.

So in this file you could put in the server IP, and you could also have some extra stuff, and somehow cover it up in the main variables.
That way if someone takes your script, it won't work unless their using your server IP. Thats only if they take AMX file.

Not sure if this works, but create an Include with some Functions, disguise them and add them into the script as an include.
Same thing, have it connect to a website.
Also have a backup website, so if the HTTP responds with a site not found error then it will attempt to connect to a secondary site, connecting to a file.


Re: Lock your own gamemode - MP2 - 19.04.2012

Anything you put in your gamemode to stop it being ran can be un-done. Don't give your source to people if you're paranoid.


Re: Lock your own gamemode - Calgon - 19.04.2012

Quote:
Originally Posted by Deduction
Посмотреть сообщение
You could always use HTTP functions.
So the server connects to a file hosted on a website.
It will collect information which the server hoster will not be able to see.

So in this file you could put in the server IP, and you could also have some extra stuff, and somehow cover it up in the main variables.
That way if someone takes your script, it won't work unless their using your server IP. Thats only if they take AMX file.

Not sure if this works, but create an Include with some Functions, disguise them and add them into the script as an include.
Same thing, have it connect to a website.
Also have a backup website, so if the HTTP responds with a site not found error then it will attempt to connect to a secondary site, connecting to a file.
This can be exploited by updating the IPs in your host files or other methods.

The method I posted isn't foolproof either, but I would generally assume it's easier to exploit via HTTP, than the method I posted. Although I think you could just use something like Hamachi or something to mess up the bind method.


Re: Lock your own gamemode - Gertin - 19.04.2012

Quote:
Originally Posted by Deduction
Посмотреть сообщение
You could always use HTTP functions.
So the server connects to a file hosted on a website.
It will collect information which the server hoster will not be able to see.

So in this file you could put in the server IP, and you could also have some extra stuff, and somehow cover it up in the main variables.
That way if someone takes your script, it won't work unless their using your server IP. Thats only if they take AMX file.

Not sure if this works, but create an Include with some Functions, disguise them and add them into the script as an include.
Same thing, have it connect to a website.
Also have a backup website, so if the HTTP responds with a site not found error then it will attempt to connect to a secondary site, connecting to a file.
i think it's intresting, but i don't know, how to do that problavly But i have mysql gm


Re: Lock your own gamemode - xEF - 04.03.2016

Well, you can make join NPC's, that will connect with the host IP if am right, if npc doesnt join with the host ip, rcon_exit.
That will solve all problems related to extern lockers, that can be copied by copying full server folder.

+REP x 9999999..

Regards.