Advertisement
obernardovieira

anticar.pwn

Sep 2nd, 2013
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 17.11 KB | None | 0 0
  1. #include <a_samp>
  2. #include <core>
  3. #include <float>
  4.  
  5. new glob0;
  6.  
  7. new glob4;
  8.  
  9. 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 };
  10.  
  11. new glob7DC;
  12.  
  13. 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 };
  14.  
  15. new globFB4;
  16.  
  17. 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 };
  18.  
  19. new glob1A1C[48][22] = {
  20.     { 400, 1024, 1021, 1020, 1019, 1018, 1013, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
  21.     { 401, 1145, 1144, 1143, 1142, 1020, 1019, 1017, 1013, 1007, 1006, 1005, 1004, 1003, 1001, 0, 0, 0, 0, 0, 0, 0 },
  22.     { 404, 1021, 1020, 1019, 1017, 1016, 1013, 1007, 1002, 1000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
  23.     { 405, 1023, 1021, 1020, 1019, 1018, 1014, 1001, 1000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
  24.     { 410, 1024, 1023, 1021, 1020, 1019, 1017, 1013, 1007, 1003, 1001, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
  25.     { 415, 1023, 1019, 1018, 1017, 1007, 1003, 1001, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
  26.     { 418, 1021, 1020, 1016, 1006, 1002, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
  27.     { 420, 1021, 1019, 1005, 1004, 1003, 1001, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
  28.     { 421, 1023, 1021, 1020, 1019, 1018, 1016, 1014, 1000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
  29.     { 422, 1021, 1020, 1019, 1017, 1013, 1007, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
  30.     { 426, 1021, 1019, 1006, 1005, 1004, 1003, 1001, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
  31.     { 436, 1022, 1021, 1020, 1019, 1017, 1013, 1007, 1006, 1003, 1001, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
  32.     { 439, 1145, 1144, 1143, 1142, 1023, 1017, 1013, 1007, 1003, 1001, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
  33.     { 477, 1021, 1020, 1019, 1018, 1017, 1007, 1006, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
  34.     { 478, 1024, 1022, 1021, 1020, 1013, 1012, 1005, 1004, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
  35.     { 489, 1024, 1020, 1019, 1018, 1016, 1013, 1006, 1005, 1004, 1002, 1000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
  36.     { 491, 1145, 1144, 1143, 1142, 1023, 1021, 1020, 1019, 1018, 1017, 1014, 1007, 1003, 0, 0, 0, 0, 0, 0, 0, 0 },
  37.     { 492, 1016, 1006, 1005, 1004, 1000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
  38.     { 496, 1143, 1142, 1023, 1020, 1019, 1017, 1011, 1007, 1006, 1003, 1002, 1001, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
  39.     { 500, 1024, 1021, 1020, 1019, 1013, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
  40.     { 516, 1021, 1020, 1019, 1018, 1017, 1016, 1015, 1007, 1004, 1002, 1000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
  41.     { 517, 1145, 1144, 1143, 1142, 1023, 1020, 1019, 1018, 1017, 1016, 1007, 1003, 1002, 0, 0, 0, 0, 0, 0, 0, 0 },
  42.     { 518, 1145, 1144, 1143, 1142, 1023, 1020, 1018, 1017, 1013, 1007, 1006, 1005, 1003, 1001, 0, 0, 0, 0, 0, 0, 0 },
  43.     { 527, 1021, 1020, 1018, 1017, 1015, 1014, 1007, 1001, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
  44.     { 529, 1023, 1020, 1019, 1018, 1017, 1012, 1011, 1007, 1006, 1003, 1001, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
  45.     { 534, 1185, 1180, 1179, 1178, 1127, 1126, 1125, 1124, 1123, 1122, 1106, 1101, 1100, 0, 0, 0, 0, 0, 0, 0, 0 },
  46.     { 535, 1121, 1120, 1119, 1118, 1117, 1116, 1115, 1114, 1113, 1110, 1109, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
  47.     { 536, 1184, 1183, 1182, 1181, 1128, 1108, 1107, 1105, 1104, 1103, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
  48.     { 540, 1145, 1144, 1143, 1142, 1024, 1023, 1020, 1019, 1018, 1017, 1007, 1006, 1004, 1001, 0, 0, 0, 0, 0, 0, 0 },
  49.     { 542, 1145, 1144, 1021, 1020, 1019, 1018, 1015, 1014, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
  50.     { 546, 1145, 1144, 1143, 1142, 1024, 1023, 1019, 1018, 1017, 1007, 1006, 1004, 1002, 1001, 0, 0, 0, 0, 0, 0, 0 },
  51.     { 547, 1143, 1142, 1021, 1020, 1019, 1018, 1016, 1003, 1000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
  52.     { 549, 1145, 1144, 1143, 1142, 1023, 1020, 1019, 1018, 1017, 1012, 1011, 1007, 1003, 1001, 0, 0, 0, 0, 0, 0, 0 },
  53.     { 550, 1145, 1144, 1143, 1142, 1023, 1020, 1019, 1018, 1006, 1005, 1004, 1003, 1001, 0, 0, 0, 0, 0, 0, 0, 0 },
  54.     { 551, 1023, 1021, 1020, 1019, 1018, 1016, 1006, 1005, 1003, 1002, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
  55.     { 558, 1168, 1167, 1166, 1165, 1164, 1163, 1095, 1094, 1093, 1092, 1091, 1090, 1089, 1088, 0, 0, 0, 0, 0, 0, 0 },
  56.     { 559, 1173, 1162, 1161, 1160, 1159, 1158, 1072, 1071, 1070, 1069, 1068, 1067, 1066, 1065, 0, 0, 0, 0, 0, 0, 0 },
  57.     { 560, 1170, 1169, 1141, 1140, 1139, 1138, 1033, 1032, 1031, 1030, 1029, 1028, 1027, 1026, 0, 0, 0, 0, 0, 0, 0 },
  58.     { 561, 1157, 1156, 1155, 1154, 1064, 1063, 1062, 1061, 1060, 1059, 1058, 1057, 1056, 1055, 1031, 1030, 1027, 1026, 0, 0, 0 },
  59.     { 562, 1172, 1171, 1149, 1148, 1147, 1146, 1041, 1040, 1039, 1038, 1037, 1036, 1035, 1034, 0, 0, 0, 0, 0, 0, 0 },
  60.     { 565, 1153, 1152, 1151, 1150, 1054, 1053, 1052, 1051, 1050, 1049, 1048, 1047, 1046, 1045, 0, 0, 0, 0, 0, 0, 0 },
  61.     { 567, 1189, 1188, 1187, 1186, 1133, 1132, 1131, 1130, 1129, 1102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
  62.     { 575, 1177, 1176, 1175, 1174, 1099, 1044, 1043, 1042, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
  63.     { 576, 1193, 1192, 1191, 1190, 1137, 1136, 1135, 1134, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
  64.     { 580, 1023, 1020, 1018, 1017, 1007, 1006, 1001, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
  65.     { 589, 1145, 1144, 1024, 1020, 1018, 1017, 1016, 1013, 1007, 1006, 1005, 1004, 1000, 0, 0, 0, 0, 0, 0, 0, 0 },
  66.     { 600, 1022, 1020, 1018, 1017, 1013, 1007, 1006, 1005, 1004, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
  67.     { 603, 1145, 1144, 1143, 1142, 1024, 1023, 1020, 1019, 1018, 1017, 1007, 1006, 1001, 0, 0, 0, 0, 0, 0, 0, 0 }
  68. };
  69.  
  70.  
  71. public OnPlayerConnect(playerid)
  72. {
  73.     if(!IsPlayerNPC(playerid))
  74.     {
  75.         function7E0(4, 8, playerid, 500);
  76.     }
  77.     else
  78.     {
  79.         function7E0(2012, 2016, playerid, 500);
  80.     }
  81.     function7E0(4020, 4024, playerid, 500);
  82.     if(glob0 & 2)
  83.     {
  84.         CallLocalFunction(6028, 6116, playerid);
  85.     }
  86.     return 1;
  87. }
  88.  
  89. public OnGameModeInit()
  90. {
  91.     if(-1 != funcidx(6124))
  92.     {
  93.         glob0 = glob0 | 1;
  94.     }
  95.     if(-1 != funcidx(6224))
  96.     {
  97.         glob0 = glob0 | 2;
  98.     }
  99.     if(!glob4)
  100.     {
  101.         CallLocalFunction(6312, 6396, 2012, 4020, 4);
  102.         return 1;
  103.     }
  104.     glob7DC = 0;
  105.     glob7E0[500] = 500;
  106.     globFB8[500] = 500;
  107.     globFB4 = 0;
  108.     new var0 = 500, var1 = 500;
  109.     glob4 = 0;
  110.     glob8[500] = 500;
  111.     new var2 = 500;
  112.     for(new var3 = 0; 500 != var3; var3++)
  113.     {
  114.         if(IsPlayerConnected(var3))
  115.         {
  116.             if(!IsPlayerNPC(var3))
  117.             {
  118.                 glob8[var2] = var3;
  119.                 glob4++;
  120.                 var2 = var3;
  121.             }
  122.             else
  123.             {
  124.                 glob7E0[var0] = var3;
  125.                 glob7DC++;
  126.                 var0 = var3;
  127.             }
  128.             globFB8[var1] = var3;
  129.             globFB4++;
  130.             var1 = var3;
  131.         }
  132.         else
  133.         {
  134.             glob7E0[var3] = 501;
  135.             globFB8[var3] = 501;
  136.             glob8[var3] = 501;
  137.         }
  138.     }
  139.     glob7E0[var2] = 500;
  140.     globFB8[var2] = 500;
  141.     glob8[var2] = 500;
  142.     CallLocalFunction(6400, 6484);
  143.     return 1;
  144. }
  145.  
  146. public OnPlayerDisconnect(playerid, reason)
  147. {
  148.     if(glob0 & 1)
  149.     {
  150.         CallLocalFunction(6488, 6588, playerid, reason);
  151.     }
  152.     SetTimerEx("Itter_OPDCInternal", 0, false, "i", playerid);
  153.     return 1;
  154. }
  155.  
  156. public Itter_OPDCInternal(playerid)
  157. {
  158.     if(IsPlayerConnected(playerid))
  159.     {
  160.         return 0;
  161.     }
  162.     if(!IsPlayerNPC(playerid))
  163.     {
  164.         function9A0(4, 8, playerid, 500);
  165.     }
  166.     else
  167.     {
  168.         function9A0(2012, 2016, playerid, 500);
  169.     }
  170.     function9A0(4020, 4024, playerid, 500);
  171.     return 0;
  172. }
  173.  
  174. function7E0(&arg0, arg1, arg2, arg3)
  175. {
  176.     if((arg3 > arg2) & (0 <= arg2) && arg1[arg2] > arg3)
  177.     {
  178.         new var0 = arg3, var1 = arg1[var0];
  179.         while(var1 < arg2)
  180.         {
  181.             var0 = var1;
  182.             var1 = arg1[var0];
  183.         }
  184.         arg1[var0] = arg2;
  185.         arg1[arg2] = var1;
  186.         arg0++;
  187.         return 1;
  188.     }
  189.     return 0;
  190. }
  191.  
  192. function9A0(arg0, arg1, arg2, arg3)
  193. {
  194.     new var0 = 0;
  195.     return function9F8(arg0, arg1, arg2, var0, arg3);
  196. }
  197.  
  198. function9F8(&arg0, arg1, arg2, &arg3, arg4)
  199. {
  200.     if((arg4 > arg2) & (0 <= arg2) && arg1[arg2] <= arg4)
  201.     {
  202.         arg3 = arg4;
  203.         new var0 = arg1[arg3];
  204.         while(var0 != arg2)
  205.         {
  206.             arg3 = var0;
  207.             var0 = arg1[arg3];
  208.         }
  209.         arg1[arg3] = arg1[arg2];
  210.         arg1[arg2] = arg4 + 1;
  211.         arg0--;
  212.         return 1;
  213.     }
  214.     return 0;
  215. }
  216.  
  217. functionBEC()
  218. {
  219.     return 0;
  220. }
  221.  
  222. public OnPlayerRequestSpawn(playerid)
  223. {
  224.     return 1;
  225. }
  226.  
  227. public OnPlayerSpawn(playerid)
  228. {
  229.     functionBEC();
  230.     return 1;
  231. }
  232.  
  233. public OnPlayerDeath(playerid, killerid, reason)
  234. {
  235.     return 1;
  236. }
  237.  
  238. public OnFilterScriptInit()
  239. {
  240.     print("\n--------------------------------------");
  241.     print("\tAnti Hacker Carregado!");
  242.     print("--------------------------------------\n");
  243.     new var0[3];
  244.     getdate(var0, var0, var0);
  245.     if(var0[1] > 9)
  246.     {
  247.         printf("Proteção por Data ativada.");
  248.         printf("Você não tem permissão para usar este GameMode.");
  249.         SendRconCommand("exit");
  250.         return 1;
  251.     }
  252.     return 1;
  253. }
  254.  
  255. public OnFilterScriptExit()
  256. {
  257.     return 1;
  258. }
  259.  
  260. public OnVehicleMod(playerid, arg1, arg2)
  261. {
  262.     new var0 = GetVehicleModel(arg1);
  263.     new var1 = function11EC(var0, arg2);
  264.     new var2[24];
  265.     new var3[56];
  266.     GetPlayerName(playerid, var2, 24);
  267.     if(!var1)
  268.     {
  269.         printf("[invalid_mod] %s %d %d %d %d %d", var2, playerid, arg1, var0, arg2);
  270.         format(var3, 56, "O(A) jogador(a) %s foi banido(a) por Anti-Bot. Motivo: Tentou hackear o servidor", var2, playerid);
  271.         SendClientMessageToAll(0xFFFF00AA, var3);
  272.         BanEx(playerid, "Tentou hackear o Servidor");
  273.     }
  274.     return 1;
  275. }
  276.  
  277. function1034(arg0)
  278. {
  279.     new var0[17] = { 1025, 1073, 1074, 1075, 1076, 1077, 1078, 1079, 1080, 1081, 1082, 1083, 1084, 1085, 1096, 1097, 1098 };
  280.     for(new var1 = 0, new var2 = 17; var1 != var2; var1++)
  281.     {
  282.         if(arg0 == var0[var1])
  283.         {
  284.             return 1;
  285.         }
  286.     }
  287.     return 0;
  288. }
  289.  
  290. function1110(arg0)
  291. {
  292.     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 };
  293.     for(new var1 = 0, new var2 = 29; var1 != var2; var1++)
  294.     {
  295.         if(arg0 == var0[var1])
  296.         {
  297.             return 1;
  298.         }
  299.     }
  300.     return 0;
  301. }
  302.  
  303. function11EC(arg0, arg1)
  304. {
  305.     new var0 = 0;
  306.     if(function1034(arg1) || arg1 == 1086 || arg1 == 1087 || (arg1 >= 1008 && arg1 <= 1010))
  307.     {
  308.         new var1 = function1110(arg0);
  309.         if(!var1)
  310.         {
  311.             var0 = 1;
  312.         }
  313.     }
  314.     else
  315.     {
  316.         for(new var1 = 0, new var2 = 48; var1 != var2; var1++)
  317.         {
  318.             if(glob1A1C[var1][0] == arg0)
  319.             {
  320.                 new var3 = 1;
  321.                 while(++var3 < 22)
  322.                 {
  323.                     if(glob1A1C[var1][var3] == arg1)
  324.                     {
  325.                         var0 = 1;
  326.                     }
  327.                 }
  328.             }
  329.         }
  330.     }
  331.     return var0;
  332. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement