Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- forward Httpipgetintel(index, response_code, data[]);
- #define DIALOG_PROXYKICK 1
- public OnPlayerConnect(playerid)
- {
- new ip[16];
- GetPlayerIp(playerid, ip, sizeof ip);
- format(string, sizeof string, "http://check.getipintel.net/check.php?ip=%s&contact=jdhenaogranada@hotmail.com", ip);
- HTTP(playerid, HTTP_GET, string, "", "Httpipgetintel");
- return 1;
- }
- public Httpipgetintel(index, response_code, data[])
- {
- if(response_code == 200)
- {
- if(data[0] == '1')
- {
- ShowPlayerDialog(playerid, DIALOG_PROXYKICK, DIALOG_STYLE_MSGBOX, "IMPORTANT", "Proxy isn't allowed, make sure you remove it before you join!", "Close", "");
- Kick(playerid);
- return 1;
- }
- if(data[0] == '0')
- {
- return 1;
- }
- else
- {
- printf("The request failed! The response code was: %d", response_code);
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement