Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function FunctieNoua(index, response_code, data[])
- {
- new string[128];
- if(response_code == 200)
- {
- format(string, sizeof(string), "Mesaj: %s", data);
- SendClientMessage(index, -1, string);
- }
- else
- {
- format(string, sizeof(string), "NU S-A TRIMIS: %d", response_code);
- SendClientMessage(index, -1, string);
- }
- }
- function LoadAccount(playerid)
- {
- new queryyy[312];
- new playerIP[64], playerGPCI[64], stringAfisare[256];
- GetPlayerIp(playerid, playerIP, sizeof(playerIP));
- gpci(playerid, playerGPCI, sizeof(playerGPCI));
- format(stringAfisare, sizeof(stringAfisare), "OLD IP: %s | NEW IP: %s", PlayerInfo[playerid][pLastIP], playerIP);
- SendClientMessage(playerid, -1, stringAfisare);
- format(stringAfisare, sizeof(stringAfisare), "OLD GPCI: %s | NEW GPCI: %s", PlayerInfo[playerid][pLastGPCI], playerGPCI);
- SendClientMessage(playerid, -1, stringAfisare);
- if(strcmp(PlayerInfo[playerid][pLastIP], playerIP) || strcmp(PlayerInfo[playerid][pLastGPCI], playerGPCI))
- { // Daca cele doua ip-uri sunt diferite sau cele doua GPCI
- if(!strcmp(PlayerInfo[playerid][pLastIP], "0") && !strcmp(PlayerInfo[playerid][pLastGPCI], "0"))
- SendClientMessage(playerid, -1, "Totul e pe zero");
- else
- {
- new text[128], string[128];
- format(text, sizeof(text), "A-fost-detectata-o-noua-logare-de-pe-alt-calculator!!!");
- format(string, sizeof(string), "drpciv.online/testSAMP.php?code=12345&msg=%s", text);
- HTTP(playerid, HTTP_GET, string, "", "FunctieNoua");
- SendClientMessage(playerid, -1, "S-a trimis request-ul");
- SendClientMessage(playerid, -1, string);
- }
- }
- mysql_format(SQL, queryyy, sizeof(queryyy), "UPDATE usersdata SET LastIP='%s', GPCI='%s' WHERE pID = %d", playerIP, playerGPCI,PlayerInfo[playerid][pMySQLID]);
- mysql_tquery(SQL, queryyy, "", "");
- format(stringAfisare, sizeof(stringAfisare), "IP: %s | GPCI: %s", playerIP, playerGPCI);
- printf(stringAfisare);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement