Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <core>
- #include <float>
- new glob0;
- new glob4;
- new glob8[501] = { 1000, 999, 998, 997, 996, 995, 994, 993, 992, 991, 990, 989, 988, 987, 986, 985, 984, 983, 982, 981, 980, 979, 978, 977, 976, 975, 974, 973, 972, 971, 970, 969, 968, 967, 966, 965, 964, 963, 962, 961, 960, 959, 958, 957, 956, 955, 954, 953, 952, 951, 950, 949, 948, 947, 946, 945, 944, 943, 942, 941, 940, 939, 938, 937, 936, 935, 934, 933, 932, 931, 930, 929, 928, 927, 926, 925, 924, 923, 922, 921, 920, 919, 918, 917, 916, 915, 914, 913, 912, 911, 910, 909, 908, 907, 906, 905, 904, 903, 902, 901, 900, 899, 898, 897, 896, 895, 894, 893, 892, 891, 890, 889, 888, 887, 886, 885, 884, 883, 882, 881, 880, 879, 878, 877, 876, 875, 874, 873, 872, 871, 870, 869, 868, 867, 866, 865, 864, 863, 862, 861, 860, 859, 858, 857, 856, 855, 854, 853, 852, 851, 850, 849, 848, 847, 846, 845, 844, 843, 842, 841, 840, 839, 838, 837, 836, 835, 834, 833, 832, 831, 830, 829, 828, 827, 826, 825, 824, 823, 822, 821, 820, 819, 818, 817, 816, 815, 814, 813, 812, 811, 810, 809, 808, 807, 806, 805, 804, 803, 802, 801, 800, 799, 798, 797, 796, 795, 794, 793, 792, 791, 790, 789, 788, 787, 786, 785, 784, 783, 782, 781, 780, 779, 778, 777, 776, 775, 774, 773, 772, 771, 770, 769, 768, 767, 766, 765, 764, 763, 762, 761, 760, 759, 758, 757, 756, 755, 754, 753, 752, 751, 750, 749, 748, 747, 746, 745, 744, 743, 742, 741, 740, 739, 738, 737, 736, 735, 734, 733, 732, 731, 730, 729, 728, 727, 726, 725, 724, 723, 722, 721, 720, 719, 718, 717, 716, 715, 714, 713, 712, 711, 710, 709, 708, 707, 706, 705, 704, 703, 702, 701, 700, 699, 698, 697, 696, 695, 694, 693, 692, 691, 690, 689, 688, 687, 686, 685, 684, 683, 682, 681, 680, 679, 678, 677, 676, 675, 674, 673, 672, 671, 670, 669, 668, 667, 666, 665, 664, 663, 662, 661, 660, 659, 658, 657, 656, 655, 654, 653, 652, 651, 650, 649, 648, 647, 646, 645, 644, 643, 642, 641, 640, 639, 638, 637, 636, 635, 634, 633, 632, 631, 630, 629, 628, 627, 626, 625, 624, 623, 622, 621, 620, 619, 618, 617, 616, 615, 614, 613, 612, 611, 610, 609, 608, 607, 606, 605, 604, 603, 602, 601, 600, 599, 598, 597, 596, 595, 594, 593, 592, 591, 590, 589, 588, 587, 586, 585, 584, 583, 582, 581, 580, 579, 578, 577, 576, 575, 574, 573, 572, 571, 570, 569, 568, 567, 566, 565, 564, 563, 562, 561, 560, 559, 558, 557, 556, 555, 554, 553, 552, 551, 550, 549, 548, 547, 546, 545, 544, 543, 542, 541, 540, 539, 538, 537, 536, 535, 534, 533, 532, 531, 530, 529, 528, 527, 526, 525, 524, 523, 522, 521, 520, 519, 518, 517, 516, 515, 514, 513, 512, 511, 510, 509, 508, 507, 506, 505, 504, 503, 502, 501, 500 };
- new glob7DC;
- new glob7E0[501] = { 1000, 999, 998, 997, 996, 995, 994, 993, 992, 991, 990, 989, 988, 987, 986, 985, 984, 983, 982, 981, 980, 979, 978, 977, 976, 975, 974, 973, 972, 971, 970, 969, 968, 967, 966, 965, 964, 963, 962, 961, 960, 959, 958, 957, 956, 955, 954, 953, 952, 951, 950, 949, 948, 947, 946, 945, 944, 943, 942, 941, 940, 939, 938, 937, 936, 935, 934, 933, 932, 931, 930, 929, 928, 927, 926, 925, 924, 923, 922, 921, 920, 919, 918, 917, 916, 915, 914, 913, 912, 911, 910, 909, 908, 907, 906, 905, 904, 903, 902, 901, 900, 899, 898, 897, 896, 895, 894, 893, 892, 891, 890, 889, 888, 887, 886, 885, 884, 883, 882, 881, 880, 879, 878, 877, 876, 875, 874, 873, 872, 871, 870, 869, 868, 867, 866, 865, 864, 863, 862, 861, 860, 859, 858, 857, 856, 855, 854, 853, 852, 851, 850, 849, 848, 847, 846, 845, 844, 843, 842, 841, 840, 839, 838, 837, 836, 835, 834, 833, 832, 831, 830, 829, 828, 827, 826, 825, 824, 823, 822, 821, 820, 819, 818, 817, 816, 815, 814, 813, 812, 811, 810, 809, 808, 807, 806, 805, 804, 803, 802, 801, 800, 799, 798, 797, 796, 795, 794, 793, 792, 791, 790, 789, 788, 787, 786, 785, 784, 783, 782, 781, 780, 779, 778, 777, 776, 775, 774, 773, 772, 771, 770, 769, 768, 767, 766, 765, 764, 763, 762, 761, 760, 759, 758, 757, 756, 755, 754, 753, 752, 751, 750, 749, 748, 747, 746, 745, 744, 743, 742, 741, 740, 739, 738, 737, 736, 735, 734, 733, 732, 731, 730, 729, 728, 727, 726, 725, 724, 723, 722, 721, 720, 719, 718, 717, 716, 715, 714, 713, 712, 711, 710, 709, 708, 707, 706, 705, 704, 703, 702, 701, 700, 699, 698, 697, 696, 695, 694, 693, 692, 691, 690, 689, 688, 687, 686, 685, 684, 683, 682, 681, 680, 679, 678, 677, 676, 675, 674, 673, 672, 671, 670, 669, 668, 667, 666, 665, 664, 663, 662, 661, 660, 659, 658, 657, 656, 655, 654, 653, 652, 651, 650, 649, 648, 647, 646, 645, 644, 643, 642, 641, 640, 639, 638, 637, 636, 635, 634, 633, 632, 631, 630, 629, 628, 627, 626, 625, 624, 623, 622, 621, 620, 619, 618, 617, 616, 615, 614, 613, 612, 611, 610, 609, 608, 607, 606, 605, 604, 603, 602, 601, 600, 599, 598, 597, 596, 595, 594, 593, 592, 591, 590, 589, 588, 587, 586, 585, 584, 583, 582, 581, 580, 579, 578, 577, 576, 575, 574, 573, 572, 571, 570, 569, 568, 567, 566, 565, 564, 563, 562, 561, 560, 559, 558, 557, 556, 555, 554, 553, 552, 551, 550, 549, 548, 547, 546, 545, 544, 543, 542, 541, 540, 539, 538, 537, 536, 535, 534, 533, 532, 531, 530, 529, 528, 527, 526, 525, 524, 523, 522, 521, 520, 519, 518, 517, 516, 515, 514, 513, 512, 511, 510, 509, 508, 507, 506, 505, 504, 503, 502, 501, 500 };
- new globFB4;
- new globFB8[501] = { 1000, 999, 998, 997, 996, 995, 994, 993, 992, 991, 990, 989, 988, 987, 986, 985, 984, 983, 982, 981, 980, 979, 978, 977, 976, 975, 974, 973, 972, 971, 970, 969, 968, 967, 966, 965, 964, 963, 962, 961, 960, 959, 958, 957, 956, 955, 954, 953, 952, 951, 950, 949, 948, 947, 946, 945, 944, 943, 942, 941, 940, 939, 938, 937, 936, 935, 934, 933, 932, 931, 930, 929, 928, 927, 926, 925, 924, 923, 922, 921, 920, 919, 918, 917, 916, 915, 914, 913, 912, 911, 910, 909, 908, 907, 906, 905, 904, 903, 902, 901, 900, 899, 898, 897, 896, 895, 894, 893, 892, 891, 890, 889, 888, 887, 886, 885, 884, 883, 882, 881, 880, 879, 878, 877, 876, 875, 874, 873, 872, 871, 870, 869, 868, 867, 866, 865, 864, 863, 862, 861, 860, 859, 858, 857, 856, 855, 854, 853, 852, 851, 850, 849, 848, 847, 846, 845, 844, 843, 842, 841, 840, 839, 838, 837, 836, 835, 834, 833, 832, 831, 830, 829, 828, 827, 826, 825, 824, 823, 822, 821, 820, 819, 818, 817, 816, 815, 814, 813, 812, 811, 810, 809, 808, 807, 806, 805, 804, 803, 802, 801, 800, 799, 798, 797, 796, 795, 794, 793, 792, 791, 790, 789, 788, 787, 786, 785, 784, 783, 782, 781, 780, 779, 778, 777, 776, 775, 774, 773, 772, 771, 770, 769, 768, 767, 766, 765, 764, 763, 762, 761, 760, 759, 758, 757, 756, 755, 754, 753, 752, 751, 750, 749, 748, 747, 746, 745, 744, 743, 742, 741, 740, 739, 738, 737, 736, 735, 734, 733, 732, 731, 730, 729, 728, 727, 726, 725, 724, 723, 722, 721, 720, 719, 718, 717, 716, 715, 714, 713, 712, 711, 710, 709, 708, 707, 706, 705, 704, 703, 702, 701, 700, 699, 698, 697, 696, 695, 694, 693, 692, 691, 690, 689, 688, 687, 686, 685, 684, 683, 682, 681, 680, 679, 678, 677, 676, 675, 674, 673, 672, 671, 670, 669, 668, 667, 666, 665, 664, 663, 662, 661, 660, 659, 658, 657, 656, 655, 654, 653, 652, 651, 650, 649, 648, 647, 646, 645, 644, 643, 642, 641, 640, 639, 638, 637, 636, 635, 634, 633, 632, 631, 630, 629, 628, 627, 626, 625, 624, 623, 622, 621, 620, 619, 618, 617, 616, 615, 614, 613, 612, 611, 610, 609, 608, 607, 606, 605, 604, 603, 602, 601, 600, 599, 598, 597, 596, 595, 594, 593, 592, 591, 590, 589, 588, 587, 586, 585, 584, 583, 582, 581, 580, 579, 578, 577, 576, 575, 574, 573, 572, 571, 570, 569, 568, 567, 566, 565, 564, 563, 562, 561, 560, 559, 558, 557, 556, 555, 554, 553, 552, 551, 550, 549, 548, 547, 546, 545, 544, 543, 542, 541, 540, 539, 538, 537, 536, 535, 534, 533, 532, 531, 530, 529, 528, 527, 526, 525, 524, 523, 522, 521, 520, 519, 518, 517, 516, 515, 514, 513, 512, 511, 510, 509, 508, 507, 506, 505, 504, 503, 502, 501, 500 };
- new glob1A1C[48][22] = {
- { 400, 1024, 1021, 1020, 1019, 1018, 1013, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
- { 401, 1145, 1144, 1143, 1142, 1020, 1019, 1017, 1013, 1007, 1006, 1005, 1004, 1003, 1001, 0, 0, 0, 0, 0, 0, 0 },
- { 404, 1021, 1020, 1019, 1017, 1016, 1013, 1007, 1002, 1000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
- { 405, 1023, 1021, 1020, 1019, 1018, 1014, 1001, 1000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
- { 410, 1024, 1023, 1021, 1020, 1019, 1017, 1013, 1007, 1003, 1001, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
- { 415, 1023, 1019, 1018, 1017, 1007, 1003, 1001, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
- { 418, 1021, 1020, 1016, 1006, 1002, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
- { 420, 1021, 1019, 1005, 1004, 1003, 1001, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
- { 421, 1023, 1021, 1020, 1019, 1018, 1016, 1014, 1000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
- { 422, 1021, 1020, 1019, 1017, 1013, 1007, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
- { 426, 1021, 1019, 1006, 1005, 1004, 1003, 1001, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
- { 436, 1022, 1021, 1020, 1019, 1017, 1013, 1007, 1006, 1003, 1001, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
- { 439, 1145, 1144, 1143, 1142, 1023, 1017, 1013, 1007, 1003, 1001, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
- { 477, 1021, 1020, 1019, 1018, 1017, 1007, 1006, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
- { 478, 1024, 1022, 1021, 1020, 1013, 1012, 1005, 1004, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
- { 489, 1024, 1020, 1019, 1018, 1016, 1013, 1006, 1005, 1004, 1002, 1000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
- { 491, 1145, 1144, 1143, 1142, 1023, 1021, 1020, 1019, 1018, 1017, 1014, 1007, 1003, 0, 0, 0, 0, 0, 0, 0, 0 },
- { 492, 1016, 1006, 1005, 1004, 1000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
- { 496, 1143, 1142, 1023, 1020, 1019, 1017, 1011, 1007, 1006, 1003, 1002, 1001, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
- { 500, 1024, 1021, 1020, 1019, 1013, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
- { 516, 1021, 1020, 1019, 1018, 1017, 1016, 1015, 1007, 1004, 1002, 1000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
- { 517, 1145, 1144, 1143, 1142, 1023, 1020, 1019, 1018, 1017, 1016, 1007, 1003, 1002, 0, 0, 0, 0, 0, 0, 0, 0 },
- { 518, 1145, 1144, 1143, 1142, 1023, 1020, 1018, 1017, 1013, 1007, 1006, 1005, 1003, 1001, 0, 0, 0, 0, 0, 0, 0 },
- { 527, 1021, 1020, 1018, 1017, 1015, 1014, 1007, 1001, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
- { 529, 1023, 1020, 1019, 1018, 1017, 1012, 1011, 1007, 1006, 1003, 1001, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
- { 534, 1185, 1180, 1179, 1178, 1127, 1126, 1125, 1124, 1123, 1122, 1106, 1101, 1100, 0, 0, 0, 0, 0, 0, 0, 0 },
- { 535, 1121, 1120, 1119, 1118, 1117, 1116, 1115, 1114, 1113, 1110, 1109, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
- { 536, 1184, 1183, 1182, 1181, 1128, 1108, 1107, 1105, 1104, 1103, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
- { 540, 1145, 1144, 1143, 1142, 1024, 1023, 1020, 1019, 1018, 1017, 1007, 1006, 1004, 1001, 0, 0, 0, 0, 0, 0, 0 },
- { 542, 1145, 1144, 1021, 1020, 1019, 1018, 1015, 1014, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
- { 546, 1145, 1144, 1143, 1142, 1024, 1023, 1019, 1018, 1017, 1007, 1006, 1004, 1002, 1001, 0, 0, 0, 0, 0, 0, 0 },
- { 547, 1143, 1142, 1021, 1020, 1019, 1018, 1016, 1003, 1000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
- { 549, 1145, 1144, 1143, 1142, 1023, 1020, 1019, 1018, 1017, 1012, 1011, 1007, 1003, 1001, 0, 0, 0, 0, 0, 0, 0 },
- { 550, 1145, 1144, 1143, 1142, 1023, 1020, 1019, 1018, 1006, 1005, 1004, 1003, 1001, 0, 0, 0, 0, 0, 0, 0, 0 },
- { 551, 1023, 1021, 1020, 1019, 1018, 1016, 1006, 1005, 1003, 1002, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
- { 558, 1168, 1167, 1166, 1165, 1164, 1163, 1095, 1094, 1093, 1092, 1091, 1090, 1089, 1088, 0, 0, 0, 0, 0, 0, 0 },
- { 559, 1173, 1162, 1161, 1160, 1159, 1158, 1072, 1071, 1070, 1069, 1068, 1067, 1066, 1065, 0, 0, 0, 0, 0, 0, 0 },
- { 560, 1170, 1169, 1141, 1140, 1139, 1138, 1033, 1032, 1031, 1030, 1029, 1028, 1027, 1026, 0, 0, 0, 0, 0, 0, 0 },
- { 561, 1157, 1156, 1155, 1154, 1064, 1063, 1062, 1061, 1060, 1059, 1058, 1057, 1056, 1055, 1031, 1030, 1027, 1026, 0, 0, 0 },
- { 562, 1172, 1171, 1149, 1148, 1147, 1146, 1041, 1040, 1039, 1038, 1037, 1036, 1035, 1034, 0, 0, 0, 0, 0, 0, 0 },
- { 565, 1153, 1152, 1151, 1150, 1054, 1053, 1052, 1051, 1050, 1049, 1048, 1047, 1046, 1045, 0, 0, 0, 0, 0, 0, 0 },
- { 567, 1189, 1188, 1187, 1186, 1133, 1132, 1131, 1130, 1129, 1102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
- { 575, 1177, 1176, 1175, 1174, 1099, 1044, 1043, 1042, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
- { 576, 1193, 1192, 1191, 1190, 1137, 1136, 1135, 1134, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
- { 580, 1023, 1020, 1018, 1017, 1007, 1006, 1001, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
- { 589, 1145, 1144, 1024, 1020, 1018, 1017, 1016, 1013, 1007, 1006, 1005, 1004, 1000, 0, 0, 0, 0, 0, 0, 0, 0 },
- { 600, 1022, 1020, 1018, 1017, 1013, 1007, 1006, 1005, 1004, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
- { 603, 1145, 1144, 1143, 1142, 1024, 1023, 1020, 1019, 1018, 1017, 1007, 1006, 1001, 0, 0, 0, 0, 0, 0, 0, 0 }
- };
- public OnPlayerConnect(playerid)
- {
- if(!IsPlayerNPC(playerid))
- {
- function7E0(4, 8, playerid, 500);
- }
- else
- {
- function7E0(2012, 2016, playerid, 500);
- }
- function7E0(4020, 4024, playerid, 500);
- if(glob0 & 2)
- {
- CallLocalFunction(6028, 6116, playerid);
- }
- return 1;
- }
- public OnGameModeInit()
- {
- if(-1 != funcidx(6124))
- {
- glob0 = glob0 | 1;
- }
- if(-1 != funcidx(6224))
- {
- glob0 = glob0 | 2;
- }
- if(!glob4)
- {
- CallLocalFunction(6312, 6396, 2012, 4020, 4);
- return 1;
- }
- glob7DC = 0;
- glob7E0[500] = 500;
- globFB8[500] = 500;
- globFB4 = 0;
- new var0 = 500, var1 = 500;
- glob4 = 0;
- glob8[500] = 500;
- new var2 = 500;
- for(new var3 = 0; 500 != var3; var3++)
- {
- if(IsPlayerConnected(var3))
- {
- if(!IsPlayerNPC(var3))
- {
- glob8[var2] = var3;
- glob4++;
- var2 = var3;
- }
- else
- {
- glob7E0[var0] = var3;
- glob7DC++;
- var0 = var3;
- }
- globFB8[var1] = var3;
- globFB4++;
- var1 = var3;
- }
- else
- {
- glob7E0[var3] = 501;
- globFB8[var3] = 501;
- glob8[var3] = 501;
- }
- }
- glob7E0[var2] = 500;
- globFB8[var2] = 500;
- glob8[var2] = 500;
- CallLocalFunction(6400, 6484);
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- if(glob0 & 1)
- {
- CallLocalFunction(6488, 6588, playerid, reason);
- }
- SetTimerEx("Itter_OPDCInternal", 0, false, "i", playerid);
- return 1;
- }
- public Itter_OPDCInternal(playerid)
- {
- if(IsPlayerConnected(playerid))
- {
- return 0;
- }
- if(!IsPlayerNPC(playerid))
- {
- function9A0(4, 8, playerid, 500);
- }
- else
- {
- function9A0(2012, 2016, playerid, 500);
- }
- function9A0(4020, 4024, playerid, 500);
- return 0;
- }
- function7E0(&arg0, arg1, arg2, arg3)
- {
- if((arg3 > arg2) & (0 <= arg2) && arg1[arg2] > arg3)
- {
- new var0 = arg3, var1 = arg1[var0];
- while(var1 < arg2)
- {
- var0 = var1;
- var1 = arg1[var0];
- }
- arg1[var0] = arg2;
- arg1[arg2] = var1;
- arg0++;
- return 1;
- }
- return 0;
- }
- function9A0(arg0, arg1, arg2, arg3)
- {
- new var0 = 0;
- return function9F8(arg0, arg1, arg2, var0, arg3);
- }
- function9F8(&arg0, arg1, arg2, &arg3, arg4)
- {
- if((arg4 > arg2) & (0 <= arg2) && arg1[arg2] <= arg4)
- {
- arg3 = arg4;
- new var0 = arg1[arg3];
- while(var0 != arg2)
- {
- arg3 = var0;
- var0 = arg1[arg3];
- }
- arg1[arg3] = arg1[arg2];
- arg1[arg2] = arg4 + 1;
- arg0--;
- return 1;
- }
- return 0;
- }
- functionBEC()
- {
- return 0;
- }
- public OnPlayerRequestSpawn(playerid)
- {
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- functionBEC();
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- return 1;
- }
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print("\tAnti Hacker Carregado!");
- print("--------------------------------------\n");
- new var0[3];
- getdate(var0, var0, var0);
- if(var0[1] > 9)
- {
- printf("Proteção por Data ativada.");
- printf("Você não tem permissão para usar este GameMode.");
- SendRconCommand("exit");
- return 1;
- }
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- public OnVehicleMod(playerid, arg1, arg2)
- {
- new var0 = GetVehicleModel(arg1);
- new var1 = function11EC(var0, arg2);
- new var2[24];
- new var3[56];
- GetPlayerName(playerid, var2, 24);
- if(!var1)
- {
- printf("[invalid_mod] %s %d %d %d %d %d", var2, playerid, arg1, var0, arg2);
- format(var3, 56, "O(A) jogador(a) %s foi banido(a) por Anti-Bot. Motivo: Tentou hackear o servidor", var2, playerid);
- SendClientMessageToAll(0xFFFF00AA, var3);
- BanEx(playerid, "Tentou hackear o Servidor");
- }
- return 1;
- }
- function1034(arg0)
- {
- new var0[17] = { 1025, 1073, 1074, 1075, 1076, 1077, 1078, 1079, 1080, 1081, 1082, 1083, 1084, 1085, 1096, 1097, 1098 };
- for(new var1 = 0, new var2 = 17; var1 != var2; var1++)
- {
- if(arg0 == var0[var1])
- {
- return 1;
- }
- }
- return 0;
- }
- function1110(arg0)
- {
- new var0[29] = { 581, 523, 462, 521, 463, 522, 461, 448, 468, 586, 509, 481, 510, 472, 473, 493, 595, 484, 430, 453, 452, 446, 454, 590, 569, 537, 538, 570, 449 };
- for(new var1 = 0, new var2 = 29; var1 != var2; var1++)
- {
- if(arg0 == var0[var1])
- {
- return 1;
- }
- }
- return 0;
- }
- function11EC(arg0, arg1)
- {
- new var0 = 0;
- if(function1034(arg1) || arg1 == 1086 || arg1 == 1087 || (arg1 >= 1008 && arg1 <= 1010))
- {
- new var1 = function1110(arg0);
- if(!var1)
- {
- var0 = 1;
- }
- }
- else
- {
- for(new var1 = 0, new var2 = 48; var1 != var2; var1++)
- {
- if(glob1A1C[var1][0] == arg0)
- {
- new var3 = 1;
- while(++var3 < 22)
- {
- if(glob1A1C[var1][var3] == arg1)
- {
- var0 = 1;
- }
- }
- }
- }
- }
- return var0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement