[Ajuda] Anti furto GM - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Anti furto GM (
/showthread.php?tid=627231)
Anti furto GM -
nasser - 25.01.2017
Galera eu tava tentando seguir os passos desse tуpico:
https://sampforum.blast.hk/showthread.php?tid=384262
Entгo eu tentei fazer o que ele fez ali e deu certo botei um dominio que nem existe a GM desligou, aн depois eu coloquei no dominio que eu tenho
http://mrjserver.pe.hu/ ficando assim:
http://mrjserver.pe.hu/iMyRCON.php aн ta ela ligou jб que o arquivo estб lб aн eu tirei o arquivo ela ligou e nгo desligou aн eu botei denovo lб e mudei a senha a gm ligou tambйm '-', o que fiz de errado? cуdigo:
PHP код:
#include a_samp
#include a_http
#define PAG_HOSPED "mrjserver.pe.hu/iMyRCON.php"
#define CODIGO "nasserothman"
new
MyString[100]
;
public OnFilterScriptInit(){
HTTP(0, HTTP_GET, PAG_HOSPED, MyString, "OnPageRecevied");
return true;
}
forward OnPageRecevied(index, response_code, data[]); public OnPageRecevied(index, response_code, data[]){
if(response_code == 200){
if(strcmp(data, CODIGO)){
print("Cуdigo Interno do gamemode Incorreto. \n-Servidor Desligado");
SendRconCommand(#exit);
}
}
if(response_code == 1){
printf("GameMode Sem permissгo para uso.");
SendRconCommand(#exit);
}
}