Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- forward OnClientCheckResponse(playerid, actionid, memaddr, retndata);
- static const __NORMAL_ADDRESS[] =
- {
- 0x00749B93,0x1C5040F0,0x00000000,0x1C2F50E0,
- 0x14CA8648,0x0177F800,0x00000000,0x0053408E,
- 0x1C2F50E0,0x00734B90,0x00000000,0x00000016,
- 0x14CA8648,0x04A9F01D,0x00000016,0x0515F9D0,
- 0x14CA8648,0x14CA8648,0x0177F81C,0x04AAFFB7,
- 0x00000016,0x000000BF,0x15F4F4C8,0x00000016,
- 0x14CA8648,0x0177FA4C,0x04A1929C,0x00000016,
- 0x05128190,0x00000001,0x0177F964,0x00000016,
- 0x000000BF,0x00000048,0x00000048,0x00000040,
- 0x0177F964,0x0080E700,0x0F9FDE80,0x00000004,
- 0x00000986,0x00000000,0x00000052,0x0000BAF6,
- 0x00000050,0x00000000,0x017A0970,0x00000002,
- 0x00000000,0x00000050,0x00000052,0x00C4D958,
- 0x00000010,0x0A29B5EC,0x00000004,0x00000000,
- 0x00805769,0x017A20F4,0x00C9BC50,0x00000052,
- 0x0178657C,0x007EF657,0x017A0970,0x0178657C,
- 0x00000000,0x00000052,0x3F78196A,0x006C6293,
- 0x006C62AD,0x00000052,0x00000052,0x006C62B5,
- 0x15618FC4,0x00A95094,0x0000021C,0x00C4E4F8,
- 0xC1F7AF37,0x3FF1A19A,0x00000000,0x3F25F734,
- 0x412A20CD,0x00000000,0x00000000,0x3DCCCCCD,
- 0x3F77A3AF,0xBD719680,0xBE7C6F8F,0x3F7FBE2A,
- 0x3E7BF804,0xBC740004,0x3F781984,0xC1A9166B,
- 0x3DB65369,0xBF64AA43,0x0177F97C,0x0177FA4C,
- 0x0177FA94,0x0177FA94,0x04A1FB11,0x05128190,
- 0x0177FA4C,0x00000001,0x0177FAA8,0x04AE0E7B,
- 0x00000000,0x04A3AEE0,0x0177FA90,0x000000BF,
- 0x00000016,0x04A3AE99,0x05164F42,0x05164F40,
- 0x00000000,0x00000060,0x00000060,0x0000005C,
- 0x05167F50,0x69953400,0x05DE6000,0x0177F9A4,
- 0x0F9F1080,0x6995344D,0x3E7BF7C6,0x0F9FB430,
- 0x00000000,0x00000000,0x00000000,0x00000780,
- 0x00000438,0x0FBDB750,0x00000000,0x00000000
- };
- public OnPlayerConnect(playerid)
- {
- SendClientCheck(playerid, 5, 0, 0, 2);
- return 1;
- }
- public OnClientCheckResponse(playerid, actionid, memaddr, retndata)
- {
- switch(actionid)
- {
- case 5:
- {
- if(memaddr < 0x400000 || memaddr > 0x856E00)
- {
- // lose adrese - kikuj
- synced_SendClientMessage(playerid, 0xFFFFFFFF, "Cit detektovan.");
- Kick(playerid);
- }
- addressCheck(playerid, retndata);
- }
- }
- return 1;
- }
- synced_SendClientMessage(playerid, colorcode, const msg[])
- {
- return SendClientMessage(playerid, colorcode, msg);
- }
- static addressCheck(playerid, response)
- {
- new moded_client;
- for(new i; i < sizeof __NORMAL_ADDRESS; i++)
- {
- if(response + __NORMAL_ADDRESS[i] > 0x856E00)
- {
- moded_client++;
- }
- }
- if(moded_client > 10)
- {
- synced_SendClientMessage(playerid, 0xFFFFFFFF, "Cit detektovan.");
- Kick(playerid);
- return 1;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement