Posts: 192
Threads: 61
Joined: Oct 2010
Reputation:
0
10.10.2015, 22:11
(
Последний раз редактировалось ZmaXy; 11.10.2015 в 14:24.
)
Are there any possibilities that can protect GM from copy from other scripters? Because my friend work on one project that will be something new in SAMP world, something doesn't seen so far. And he wouldn't want that somebody steals his ideas.
I actually think,maybe authorized rights or something else..
Edit: Explain better what I actually think: Maybe SA:MP team have something authorized rights system and who copy your unique system, he banned from "SAMP world" and his server go down. And to protect your rights(or system), you have to pay for it to SAMP team but a system that is copied must be completely identical.
Posts: 262
Threads: 20
Joined: Jun 2014
Reputation:
0
No such thing as protection. Go with a trusted host, never give someone your passwords or access to the script, and never hire developers off the street that you don't know.
Only way to protect your script from leakers.
Posts: 21
Threads: 8
Joined: Sep 2014
There is nothing that can stop a scripter to copy a server.I have myself copied many scripts :P
Posts: 1,506
Threads: 13
Joined: Jun 2015
Well you cant but u can make protection in your gamemode that if someone steals it and uses/runs it, it will close the server
Posts: 1,208
Threads: 36
Joined: Apr 2015
11.10.2015, 07:36
(
Последний раз редактировалось AbyssMorgan; 11.10.2015 в 09:25.
)
PHP код:
AntiDeAMX(){
new UAX[][] = { "Unarmed (Fist)", "Brass K" };
#pragma unused UAX
}
#define FILE_SERVERIP "127.0.0.1"
#define FILE_SERVERPORT (7777)
#define FILE_LICENSEID (20160201) //01.02.2016
public OnGameModeInit(){ //or OnFilterScriptInit
AntiDeAMX();
//IP and PORT check
new serverIP[16];
GetServerVarAsString("bind",serverIP, sizeof serverIP);
if(strcmp(serverIP,FILE_SERVERIP,false)!=0 || isnull(serverIP)){
if((strcmp(serverIP,"127.0.0.1",false)!=0) || (strcmp(serverIP,"localhost",false)!=0) || isnull(serverIP)){
//local allow ?
} else {
//stolen
SendRconCommand("exit");
}
} else if(GetServerVarAsInt("port") != FILE_SERVERPORT){
//stolen
SendRconCommand("exit");
}
//Date Check
new tmpdate, tmpyear, tmpmonth, tmpday;
getdate(tmpyear,tmpmonth,tmpday);
tmpdate = (10000*tmpyear)+(100*tmpmonth)+tmpday;
if(tmpdate > FILE_LICENSEID){
//license time out
SendRconCommand("exit");
}
return 1;
}