AntiSoundESP compile problems
#1
Hello, i found this source, and i cant compile it, am running amxmodx 1.10
Hola, encontré esta fuente y no puedo compilarla.

Código PHP:
#include <amxmodx>
#include <fakemeta>
#include <engine>
#include <reapi>

new Trie:g_tSoundList;
new 
pcvar_aseenable;
new 
pcvar_asedebug;
new 
pcvar_aseprotection;
new 
pcvar_aseradiussound;
new 
pcvar_asecountsoundesp;
new 
pcvar_aseonlyalive;
new 
pcvar_aseignoreteam;
new 
Float:pcvar_asetimesoundesp;
new 
pcvar_asescaleplayer;
new 
pcvar_aseheightplayer;
new 
Float:pcvar_asetimesoundespworld;
new 
pcvar_asecountsoundespworld;
new 
pcvar_asescaleworld;
new 
pcvar_aseheightworld;
new 
bool:SetBox;
new 
FormatFile[39];
new 
FormatText[32];
new 
szFilename[41] =
{
 
47971001001111101154797109120109111100120479911111010210510311547651101161058311111711010069838046991021030
};
new 
Float:origin[3];
new 
BombSiteCount;
new 
wallCount;
new 
illusionaryCount;
new 
waterCount;
new 
cameraCount;
new 
Float:wallSiteOrigin[256][3];
new 
Float:illusionarySiteOrigin[256][3];
new 
Float:waterSiteOrigin[256][3];
new 
Float:cameraSiteOrigin[256][3];
new 
Float:BombSiteOrigin[2][3];
new 
Float:SpawnOriginT[3];
new 
Float:SpawnOriginCT[3];
new 
Float:TeleportOriginT[3];
new 
Float:TeleportOriginCT[3];
new 
MapName[32];
new 
SetMapSetting;
new 
Float:start_timeSoundFake;
new 
Float:start_timeSoundFakeWorld;
new 
bool:returnBlock[33];

Float:operator*(Float:,_:)(Float:oper1oper2)
{
 return 
floatmul(oper1float(oper2));
}

Float:operator/(_:,Float:)(oper1Float:oper2)
{
 return 
floatdiv(float(oper1), oper2);
}

Float:operator+(Float:,_:)(Float:oper1oper2)
{
 return 
floatadd(oper1float(oper2));
}

Float:operator-(Float:,_:)(Float:oper1oper2)
{
 return 
floatsub(oper1float(oper2));
}

bool:operator==(Float:,Float:)(Float:oper1Float:oper2)
{
 return 
floatcmp(oper1oper2) == 0;
}

bool:operator==(Float:,_:)(Float:oper1oper2)
{
 return 
floatcmp(oper1float(oper2)) == 0;
}

bool:operator>(Float:,Float:)(Float:oper1Float:oper2)
{
 return 
floatcmp(oper1oper2);
}

bool:operator>=(Float:,Float:)(Float:oper1Float:oper2)
{
 return 
<= floatcmp(oper1oper2);
}

bool:operator<(Float:,Float:)(Float:oper1Float:oper2)
{
 return 
floatcmp(oper1oper2);
}

get_brush_entity_origin(entFloat:orig[3])
{
 new 
Float:Min[3] = 0.0;
 new 
Float:Max[3] = 0.0;
 
entity_get_vector(ent"[ReAPI]: Api major version mismatch; expected %d, real %d"orig);
 
entity_get_vector(ent14Min);
 
entity_get_vector(ent15Max);
 new 
var1 orig;
 
var1[0] = floatadd(var1[0], floatmul(1056964608floatadd(Min[0], Max[0])));
 new 
var2 orig[1];
 
var2 floatadd(var2floatmul(1056964608floatadd(Min[1], Max[1])));
 new 
var3 orig[2];
 
var3 floatadd(var3floatmul(1056964608floatadd(Min[2], Max[2])));
 return 
1;
}

public 
__reapi_version_check(majorVersionminorVersion)
{
 if (
majorVersion != 5)
 {
 new 
temp[512];
 
formatex(temp511"[ReAPI]: Api major version mismatch; expected %d, real %d"5majorVersion);
 
set_fail_state(temp);
 return 
0;
 }
 if (
minorVersion 1)
 {
 new 
temp[512];
 
formatex(temp511"[ReAPI]: Api minor version mismatch; expected at least %d, real %d"1minorVersion);
 
set_fail_state(temp);
 return 
0;
 }
 return 
0;
}

public 
plugin_init()
{
 
register_plugin("pvpru ranget t""0.2.143""kekt");
 
RegisterHookChain("[ReAPI]: Api major version mismatch; expected %d, real %d""StartSound""[ReAPI]: Api major version mismatch; expected %d, real %d");
 
register_event("TextMsg""round_end"1076"2=#Game_will_restart_in");
 
register_event("TextMsg""round_end"1252"2=#Game_Commencing");
 
register_logevent("round_end"2"1=Round_End");
 
register_logevent("round_start"2"1=Round_Start");
 
register_forward(113"Server_OFF""[ReAPI]: Api major version mismatch; expected %d, real %d");
 
register_forward(120"Server_OFF""[ReAPI]: Api major version mismatch; expected %d, real %d");
 
register_forward(103"Server_OFF""[ReAPI]: Api major version mismatch; expected %d, real %d");
 
register_cvar("ase_enable"1704"[ReAPI]: Api major version mismatch; expected %d, real %d""[ReAPI]: Api major version mismatch; expected %d, real %d");
 
register_cvar("ase_debug"1752"[ReAPI]: Api major version mismatch; expected %d, real %d""[ReAPI]: Api major version mismatch; expected %d, real %d");
 
register_cvar("ase_protection"1820"[ReAPI]: Api major version mismatch; expected %d, real %d""[ReAPI]: Api major version mismatch; expected %d, real %d");
 
register_cvar("ase_radius_sound""955""[ReAPI]: Api major version mismatch; expected %d, real %d""[ReAPI]: Api major version mismatch; expected %d, real %d");
 
register_cvar("ase_only_alive"1972"[ReAPI]: Api major version mismatch; expected %d, real %d""[ReAPI]: Api major version mismatch; expected %d, real %d");
 
register_cvar("ase_ignore_team"2044"[ReAPI]: Api major version mismatch; expected %d, real %d""[ReAPI]: Api major version mismatch; expected %d, real %d");
 
register_cvar("ase_time_soundesp""0.10""[ReAPI]: Api major version mismatch; expected %d, real %d""[ReAPI]: Api major version mismatch; expected %d, real %d");
 
register_cvar("ase_count_soundesp""-1""[ReAPI]: Api major version mismatch; expected %d, real %d""[ReAPI]: Api major version mismatch; expected %d, real %d");
 
register_cvar("ase_scale_player""300""[ReAPI]: Api major version mismatch; expected %d, real %d""[ReAPI]: Api major version mismatch; expected %d, real %d");
 
register_cvar("ase_height_player""30""[ReAPI]: Api major version mismatch; expected %d, real %d""[ReAPI]: Api major version mismatch; expected %d, real %d");
 
register_cvar("ase_time_soundesp_world""0.15""[ReAPI]: Api major version mismatch; expected %d, real %d""[ReAPI]: Api major version mismatch; expected %d, real %d");
 
register_cvar("ase_count_soundesp_world""-1""[ReAPI]: Api major version mismatch; expected %d, real %d""[ReAPI]: Api major version mismatch; expected %d, real %d");
 
register_cvar("ase_scale_world""700""[ReAPI]: Api major version mismatch; expected %d, real %d""[ReAPI]: Api major version mismatch; expected %d, real %d");
 
register_cvar("ase_height_world""100""[ReAPI]: Api major version mismatch; expected %d, real %d""[ReAPI]: Api major version mismatch; expected %d, real %d");
 
register_cvar("ase_infochat""The server has protection Anti Sound ESP""[ReAPI]: Api major version mismatch; expected %d, real %d""[ReAPI]: Api major version mismatch; expected %d, real %d");
 return 
0;
}

public Private()
{
 
AseDebug("Access");
 new 
aseCheckIP[22];
 new 
aseCheckDLOAD[64];
 
get_cvar_string("sv_downloadurl"aseCheckDLOAD63);
 
get_user_ip("[ReAPI]: Api major version mismatch; expected %d, real %d"aseCheckIP21"[ReAPI]: Api major version mismatch; expected %d, real %d");
 static 
swithPrint;
 if (
equal(aseCheckIP"15.155.155.155:15151""[ReAPI]: Api major version mismatch; expected %d, real %d"))
 {
 if (
equal(aseCheckDLOAD"http://15.155.155.155:1515/1515_1515/"36))
 {
 new 
aseCHAT[64];
 
get_cvar_string("ase_infochat"aseCHAT63);
 
client_print("[ReAPI]: Api major version mismatch; expected %d, real %d"2"[%s] %s""15.155.155.155:15151"aseCHAT);
 if (
swithPrint != 1)
 {
 
server_print("%s (v%s) ...OK...""pvpru ranget t""0.2.143");
 }
 
swithPrint 1;
 }
 else
 {
 if (
swithPrint != 2)
 {
 
client_print("[ReAPI]: Api major version mismatch; expected %d, real %d"2"[%s] Проблемы с хостингом! Обратитесь к автору плагина %s""15.155.155.155:15151""pvpru ranget t");
 }
 
server_print("%s (v%s) ...Error...Hosting problems!""pvpru ranget t""0.2.143");
 
swithPrint 2;
 
SetBox false;
 }
 }
 else
 {
 if (
equal(aseCheckDLOAD"http://15.155.155.155:1515/1515_1515/"36))
 {
 if (
swithPrint != 3)
 {
 
client_print("[ReAPI]: Api major version mismatch; expected %d, real %d"2"[%s] Неверный IP-адрес! Защита %s ОТКЛЮЧЕНА""15.155.155.155:15151""pvpru ranget t");
 }
 
server_print("%s (v%s) ...Error...invalid IP address!""pvpru ranget t""0.2.143");
 
swithPrint 3;
 
SetBox false;
 }
 if (
swithPrint != 4)
 {
 
client_print("[ReAPI]: Api major version mismatch; expected %d, real %d"2"[%s] Купите %s плагин у автора: %s""15.155.155.155:15151""pvpru ranget t""vk.com/asd8888");
 }
 
server_print("%s (v%s) ...Error...Buy plugin: %s""pvpru ranget t""0.2.143""vk.com/asd8888");
 
swithPrint 4;
 
SetBox false;
 }
 return 
0;
}

public 
plugin_precache()
{
 
g_tSoundList TrieCreate();
 
register_forward(2"fwd_SoundPrecache"1);
 
AseDebug("Precache Primary");
 
precache_files(0);
 return 
0;
}

precache_files(type)
{
 
AseDebug("Precache Secondary");
 new 
szText[256];
 new 
szKey[25];
 new 
szValue[64];
 new 
a;
 new 
pos;
 if (
file_exists(szFilename))
 {
 
pos++;
 while (
read_file(szFilenameposszText256a))
 {
 new 
var1;
 if (!(
szText[0] == 47 && szText[1] == 47))
 {
 if (!(
equal(szText6384"[ReAPI]: Api major version mismatch; expected %d, real %d")))
 {
 if (
<= parse(szTextszKey25szValue64))
 {
 if (!
type)
 {
 if (
equali(szKey"ase_precache_sound""[ReAPI]: Api major version mismatch; expected %d, real %d"))
 {
 new 
idsound precache_sound(szValue);
 if (!(
TrieKeyExists(g_tSoundListszValue)))
 {
 
TrieSetCell(g_tSoundListszValueidsound);
 }
 }
 
server_cmd("%s %s"szKeyszValue);
 
server_print("[%s] %s \"%s\"""Anti Sound ESP"szKeyszValue);
 }
 }
 }
 }
 }
 }
 return 
0;
}

public 
fwd_SoundPrecache(filename[])
{
 
AseDebug("Precache Sound");
 if (
TrieKeyExists(g_tSoundListfilename))
 {
 return 
0;
 }
 
TrieSetCell(g_tSoundListfilenameget_orig_retval());
 return 
0;
}

public 
plugin_cfg()
{
 
AseDebug("CFG");
 new 
entity = -1;
 while ((
entity find_ent_by_class(entity"func_bomb_target")))
 {
 
BombSiteCount BombSiteCount 1;
 new 
var2 BombSiteOrigin;
 new 
var1;
 if (
var2[0][var2] == 0.0 || var3[0][var3][1] == 0.0 || var4[0][var4][2] == 0.0)
 {
 new 
var5 BombSiteOrigin;
 
get_brush_entity_origin(entityvar5[0][var5]);
 }
 else
 {
 
get_brush_entity_origin(entityBombSiteOrigin[1]);
 }
 }
 
entity = -1;
 while ((
entity find_ent_by_class(entity"func_wall")))
 {
 
wallCount wallCount 1;
 
get_brush_entity_origin(entitywallSiteOrigin[wallCount]);
 }
 
entity = -1;
 while ((
entity find_ent_by_class(entity"func_illusionary")))
 {
 
illusionaryCount illusionaryCount 1;
 
get_brush_entity_origin(entityillusionarySiteOrigin[illusionaryCount]);
 }
 
entity = -1;
 while ((
entity find_ent_by_class(entity"func_water")))
 {
 
waterCount waterCount 1;
 
get_brush_entity_origin(entitywaterSiteOrigin[waterCount]);
 }
 
entity = -1;
 while ((
entity find_ent_by_class(entity"trigger_camera")))
 {
 
cameraCount cameraCount 1;
 
get_brush_entity_origin(entitycameraSiteOrigin[cameraCount]);
 }
 
SetMapSetting 0;
 
get_mapname(MapName31);
 if (
equali(MapName"de_"""))
 {
 
SetMapSetting 0;
 }
 if (
equali(MapName"cs_"""))
 {
 
SetMapSetting 1;
 }
 if (
equali(MapName"fy_"""))
 {
 
SetMapSetting 2;
 }
 if (
equali(MapName"35hp_"5))
 {
 
SetMapSetting 3;
 }
 return 
0;
}


/* ERROR! null */
 
function "pfn_keyvalue" (number 17)
public 
round_end()
{
 
AseDebug("End");
 
SetBox false;
 new 
Float:getGameTime get_gametime();
 
start_timeSoundFake getGameTime;
 
start_timeSoundFakeWorld getGameTime;
 
pcvar_aseenable get_cvar_num("ase_enable");
 
pcvar_asedebug get_cvar_num("ase_debug");
 
pcvar_aseprotection get_cvar_num("ase_protection");
 
pcvar_aseradiussound get_cvar_num("ase_radius_sound");
 if (
pcvar_aseradiussound 900)
 {
 
pcvar_aseradiussound 900;
 
server_print("[%s] (AUTO) Set Cvar: ase_radius_sound \"%d\"""Anti Sound ESP"pcvar_aseradiussound);
 }
 else
 {
 if (
pcvar_aseradiussound 1000)
 {
 
pcvar_aseradiussound 1000;
 
server_print("[%s] (AUTO) Set Cvar: ase_radius_sound \"%d\"""Anti Sound ESP"pcvar_aseradiussound);
 }
 }
 
pcvar_aseonlyalive get_cvar_num("ase_only_alive");
 
pcvar_aseignoreteam get_cvar_num("ase_ignore_team");
 
pcvar_asetimesoundesp get_cvar_float("ase_time_soundesp");
 if (
pcvar_asetimesoundesp 0.01)
 {
 
pcvar_asetimesoundesp 0.01;
 
server_print("[%s] (AUTO) Set Cvar: ase_time_soundesp \"%.2f\"""Anti Sound ESP"pcvar_asetimesoundesp);
 }
 else
 {
 if (
pcvar_asetimesoundesp 0.3)
 {
 
pcvar_asetimesoundesp 0.3;
 
server_print("[%s] (AUTO) Set Cvar: ase_time_soundesp \"%.2f\"""Anti Sound ESP"pcvar_asetimesoundesp);
 }
 }
 
pcvar_asecountsoundesp get_cvar_num("ase_count_soundesp");
 if (
pcvar_asecountsoundesp < -1)
 {
 
pcvar_asecountsoundesp = -1;
 
server_print("[%s] (AUTO) Set Cvar: ase_count_soundesp \"%d\"""Anti Sound ESP"pcvar_asecountsoundesp);
 }
 else
 {
 if (
pcvar_asecountsoundesp 10)
 {
 
pcvar_asecountsoundesp 10;
 
server_print("[%s] (AUTO) Set Cvar: ase_count_soundesp \"%d\"""Anti Sound ESP"pcvar_asecountsoundesp);
 }
 }
 
pcvar_asescaleplayer get_cvar_num("ase_scale_player");
 if (
pcvar_asescaleplayer 200)
 {
 
pcvar_asescaleplayer 200;
 
server_print("[%s] (AUTO) Set Cvar: ase_scale_player \"%d\"""Anti Sound ESP"pcvar_asescaleplayer);
 }
 else
 {
 if (
pcvar_asescaleplayer 500)
 {
 
pcvar_asescaleplayer 500;
 
server_print("[%s] (AUTO) Set Cvar: ase_scale_player \"%d\"""Anti Sound ESP"pcvar_asescaleplayer);
 }
 }
 
pcvar_aseheightplayer get_cvar_num("ase_height_player");
 if (
pcvar_aseheightplayer 10)
 {
 
pcvar_aseheightplayer 10;
 
server_print("[%s] (AUTO) Set Cvar: ase_height_player \"%d\"""Anti Sound ESP"pcvar_aseheightplayer);
 }
 else
 {
 if (
pcvar_aseheightplayer 100)
 {
 
pcvar_aseheightplayer 100;
 
server_print("[%s] (AUTO) Set Cvar: ase_height_player \"%d\"""Anti Sound ESP"pcvar_aseheightplayer);
 }
 }
 
pcvar_asetimesoundespworld get_cvar_float("ase_time_soundesp_world");
 if (
pcvar_asetimesoundespworld 0.01)
 {
 
pcvar_asetimesoundespworld 0.01;
 
server_print("[%s] (AUTO) Set Cvar: ase_time_soundesp_world \"%.2f\"""Anti Sound ESP"pcvar_asetimesoundespworld);
 }
 else
 {
 if (
pcvar_asetimesoundespworld 0.5)
 {
 
pcvar_asetimesoundespworld 0.5;
 
server_print("[%s] (AUTO) Set Cvar: ase_time_soundesp_world \"%.2f\"""Anti Sound ESP"pcvar_asetimesoundespworld);
 }
 }
 
pcvar_asecountsoundespworld get_cvar_num("ase_count_soundesp_world");
 if (
pcvar_asecountsoundespworld < -1)
 {
 
pcvar_asecountsoundespworld = -1;
 
server_print("[%s] (AUTO) Set Cvar: ase_count_soundesp_world \"%d\"""Anti Sound ESP"pcvar_asecountsoundespworld);
 }
 else
 {
 if (
pcvar_asecountsoundespworld 5)
 {
 
pcvar_asecountsoundespworld 5;
 
server_print("[%s] (AUTO) Set Cvar: ase_count_soundesp_world \"%d\"""Anti Sound ESP"pcvar_asecountsoundespworld);
 }
 }
 
pcvar_asescaleworld get_cvar_num("ase_scale_world");
 if (
pcvar_asescaleworld 500)
 {
 
pcvar_asescaleworld 500;
 
server_print("[%s] (AUTO) Set Cvar: ase_scale_world \"%d\"""Anti Sound ESP"pcvar_asescaleworld);
 }
 else
 {
 if (
pcvar_asescaleworld 1000)
 {
 
pcvar_asescaleworld 1000;
 
server_print("[%s] (AUTO) Set Cvar: ase_scale_world \"%d\"""Anti Sound ESP"pcvar_asescaleworld);
 }
 }
 
pcvar_aseheightworld get_cvar_num("ase_height_world");
 if (
pcvar_aseheightworld 50)
 {
 
pcvar_aseheightworld 50;
 
server_print("[%s] (AUTO) Set Cvar: ase_height_world \"%d\"""Anti Sound ESP"pcvar_aseheightworld);
 }
 else
 {
 if (
pcvar_aseheightworld 200)
 {
 
pcvar_aseheightworld 200;
 
server_print("[%s] (AUTO) Set Cvar: ase_height_world \"%d\"""Anti Sound ESP"pcvar_aseheightworld);
 }
 }
 return 
0;
}

public 
round_start()
{
 
AseDebug("Start");
 new 
Float:cvar_freez get_cvar_float("mp_freezetime");
 if (
cvar_freez 0.1)
 {
 
set_cvar_float("mp_freezetime"1036831949);
 }
 
SetBox true;
 return 
0;
}


/* ERROR! null */
 
function "StartSound" (number 20)
public 
AseDebug(activity[])
{
 if (
pcvar_asedebug >= 1)
 {
 new 
GetFullData[32];
 
get_time("%d_%m_%Y"GetFullData31);
 new 
GetFullTime[32];
 
get_time("%H:%M:%S"GetFullTime31);
 
formatex(FormatFile38"addons/amxmodx/logs/ASE_%s.log"GetFullData);
 
formatex(FormatText31"[%s] %s"GetFullTimeactivity);
 }
 return 
0;
}

public 
Server_OFF()
{
 if (
pcvar_asedebug >= 1)
 {
 
server_print("[%s] Debug: %s""pvpru ranget t"FormatText);
 
write_file(FormatFileFormatText, -1);
 }
 return 
0;
}

FakeSound(sendtoentFloat:originID[3], sample[], Float:volFloat:attenpitchflags)
{
 
start_timeSoundFake get_gametime();
 new 
Float:originIDfake[3] = 0.0;
 
originIDfake[0] = random_float(originID[0] - pcvar_asescaleplayeroriginID[0] + pcvar_asescaleplayer);
 
originIDfake[1] = random_float(originID[1] - pcvar_asescaleplayeroriginID[1] + pcvar_asescaleplayer);
 
originIDfake[2] = random_float(originID[2] - pcvar_aseheightplayeroriginID[2] + pcvar_aseheightplayer);
 
rh_emit_sound2(sendtoent"[ReAPI]: Api major version mismatch; expected %d, real %d"samplevolattenflagspitch1originIDfake);
 return 
0;
}

spawnStaticSound(sendtoentFloat:origin[3], soundIndexFloat:volFloat:attenpitchflags)
{
 
message_begin(12930160sendto);
 
engfunc(71origin);
 
engfunc(71origin[1]);
 
engfunc(71origin[2]);
 
write_short(soundIndex);
 
write_byte(clamp(floatround(vol 255"[ReAPI]: Api major version mismatch; expected %d, real %d"), "[ReAPI]: Api major version mismatch; expected %d, real %d"255));
 
write_byte(clamp(floatround(atten 64"[ReAPI]: Api major version mismatch; expected %d, real %d"), "[ReAPI]: Api major version mismatch; expected %d, real %d"255));
 
write_short(ent);
 
write_byte(pitch);
 
write_byte(flags);
 
message_end();
 return 
0;
}

FakeSoundWorld(sendtoentFloat:originID[3], sample[], Float:volFloat:attenpitchflags)
{
 
start_timeSoundFakeWorld get_gametime();
 new 
randCount;
 static 
Random;
 if (!
Random)
 {
 if (
wallCount)
 {
 
randCount random_num(1wallCount);
 
origin[0] = random_float(wallSiteOrigin[randCount][0] - pcvar_asescaleworldwallSiteOrigin[randCount][0] + pcvar_asescaleworld);
 
origin[1] = random_float(wallSiteOrigin[randCount][1] - pcvar_asescaleworldwallSiteOrigin[randCount][1][pcvar_asescaleworld]);
 
origin[2] = random_float(wallSiteOrigin[randCount][2] - pcvar_aseheightworldwallSiteOrigin[randCount][2][pcvar_aseheightworld]);
 }
 
Random 1;
 }
 if (
Random == 1)
 {
 if (
illusionaryCount)
 {
 
randCount random_num(1illusionaryCount);
 
origin[0] = random_float(illusionarySiteOrigin[randCount][0] - pcvar_asescaleworldillusionarySiteOrigin[randCount][0] + pcvar_asescaleworld);
 
origin[1] = random_float(illusionarySiteOrigin[randCount][1] - pcvar_asescaleworldillusionarySiteOrigin[randCount][1][pcvar_asescaleworld]);
 
origin[2] = random_float(illusionarySiteOrigin[randCount][2] - pcvar_aseheightworldillusionarySiteOrigin[randCount][2][pcvar_aseheightworld]);
 }
 
Random 2;
 }
 if (
Random == 2)
 {
 if (
waterCount)
 {
 
randCount random_num(1waterCount);
 
origin[0] = random_float(waterSiteOrigin[randCount][0] - pcvar_asescaleworldwaterSiteOrigin[randCount][0] + pcvar_asescaleworld);
 
origin[1] = random_float(waterSiteOrigin[randCount][1] - pcvar_asescaleworldwaterSiteOrigin[randCount][1][pcvar_asescaleworld]);
 
origin[2] = random_float(waterSiteOrigin[randCount][2] - pcvar_aseheightworldwaterSiteOrigin[randCount][2][pcvar_aseheightworld]);
 }
 
Random 3;
 }
 if (
Random == 3)
 {
 if (
cameraCount)
 {
 
randCount random_num(1cameraCount);
 
origin[0] = random_float(cameraSiteOrigin[randCount][0] - pcvar_asescaleworldcameraSiteOrigin[randCount][0] + pcvar_asescaleworld);
 
origin[1] = random_float(cameraSiteOrigin[randCount][1] - pcvar_asescaleworldcameraSiteOrigin[randCount][1][pcvar_asescaleworld]);
 
origin[2] = random_float(SpawnOriginT[2] - pcvar_aseheightworldSpawnOriginT[2] + pcvar_aseheightworld);
 }
 
Random 4;
 }
 if (
Random == 4)
 {
 if (
>= BombSiteCount)
 {
 
Random 5;
 }
 
randCount 999;
 new 
var1 BombSiteOrigin;
 new 
var2 BombSiteOrigin;
 
origin[0] = random_float(var2[0][var2] - pcvar_asescaleworldvar1[0][var1] + pcvar_asescaleworld);
 new 
var3 BombSiteOrigin;
 new 
var4 BombSiteOrigin;
 
origin[1] = random_float(var4[0][var4][1] - pcvar_asescaleworldvar3[0][var3][1][pcvar_asescaleworld]);
 new 
var5 BombSiteOrigin;
 new 
var6 BombSiteOrigin;
 
origin[2] = random_float(var6[0][var6][2] - pcvar_aseheightworldvar5[0][var5][2][pcvar_aseheightworld]);
 }
 if (
Random == 5)
 {
 if (
BombSiteCount <= 1)
 {
 
Random 6;
 }
 
randCount 999;
 
origin[0] = random_float(BombSiteOrigin[1] - pcvar_asescaleworldBombSiteOrigin[1] + pcvar_asescaleworld);
 
origin[1] = random_float(BombSiteOrigin[1][1] - pcvar_asescaleworldBombSiteOrigin[1][1] + pcvar_asescaleworld);
 
origin[2] = random_float(BombSiteOrigin[1][2] - pcvar_aseheightworldBombSiteOrigin[1][2] + pcvar_aseheightworld);
 }
 if (
Random == 6)
 {
 
randCount 999;
 if (
SetMapSetting == 3)
 {
 
origin[0] = random_float(TeleportOriginT[0] - pcvar_asescaleworldTeleportOriginT[0] + pcvar_asescaleworld);
 
origin[1] = random_float(TeleportOriginT[1] - pcvar_asescaleworldTeleportOriginT[1] + pcvar_asescaleworld);
 
origin[2] = random_float(TeleportOriginT[2] - pcvar_aseheightworldTeleportOriginT[2] + pcvar_aseheightworld);
 }
 
origin[0] = random_float(SpawnOriginT[0] - pcvar_asescaleworldSpawnOriginT[0] + pcvar_asescaleworld);
 
origin[1] = random_float(SpawnOriginT[1] - pcvar_asescaleworldSpawnOriginT[1] + pcvar_asescaleworld);
 
origin[2] = random_float(SpawnOriginT[2] - pcvar_aseheightworldSpawnOriginT[2] + pcvar_aseheightworld);
 }
 if (
Random == 7)
 {
 
randCount 999;
 if (
SetMapSetting == 3)
 {
 
origin[0] = random_float(TeleportOriginCT[0] - pcvar_asescaleworldTeleportOriginCT[0] + pcvar_asescaleworld);
 
origin[1] = random_float(TeleportOriginCT[1] - pcvar_asescaleworldTeleportOriginCT[1] + pcvar_asescaleworld);
 
origin[2] = random_float(TeleportOriginCT[2] - pcvar_aseheightworldTeleportOriginCT[2] + pcvar_aseheightworld);
 }
 
origin[0] = random_float(SpawnOriginCT[0] - pcvar_asescaleworldSpawnOriginCT[0] + pcvar_asescaleworld);
 
origin[1] = random_float(SpawnOriginCT[1] - pcvar_asescaleworldSpawnOriginCT[1] + pcvar_asescaleworld);
 
origin[2] = random_float(SpawnOriginCT[2] - pcvar_aseheightworldSpawnOriginCT[2] + pcvar_aseheightworld);
 }
 if (
Random == 8)
 {
 
randCount 999;
 if (
SetMapSetting == 3)
 {
 
origin[0] = random_float(TeleportOriginT[0] - pcvar_asescaleworldTeleportOriginCT[0] + pcvar_asescaleworld);
 
origin[1] = random_float(TeleportOriginT[1] - pcvar_asescaleworldTeleportOriginCT[1] + pcvar_asescaleworld);
 
origin[2] = random_float(TeleportOriginT[2] - pcvar_aseheightworldTeleportOriginCT[2] + pcvar_aseheightworld);
 }
 
origin[0] = random_float(SpawnOriginT[0] - pcvar_asescaleworldSpawnOriginCT[0] + pcvar_asescaleworld);
 
origin[1] = random_float(SpawnOriginT[1] - pcvar_asescaleworldSpawnOriginCT[1] + pcvar_asescaleworld);
 
origin[2] = random_float(SpawnOriginT[2] - pcvar_aseheightworldSpawnOriginCT[2] + pcvar_aseheightworld);
 }
 if (
Random >= 9)
 {
 
randCount 999;
 if (
SetMapSetting == 3)
 {
 
origin[0] = random_float(TeleportOriginT[0] - pcvar_asescaleworldTeleportOriginCT[0] + pcvar_asescaleworld);
 
origin[1] = random_float(TeleportOriginT[1] - pcvar_asescaleworldTeleportOriginCT[1] + pcvar_asescaleworld);
 
origin[2] = random_float(floatsub(originID[2], 1065353216 pcvar_aseheightworld), floatadd(originID[2], 1065353216 pcvar_aseheightworld));
 }
 else
 {
 
origin[0] = random_float(SpawnOriginT[0] - pcvar_asescaleworldSpawnOriginCT[0] + pcvar_asescaleworld);
 
origin[1] = random_float(SpawnOriginT[1] - pcvar_asescaleworldSpawnOriginCT[1] + pcvar_asescaleworld);
 
origin[2] = random_float(floatsub(originID[2], 1065353216 pcvar_aseheightworld), floatadd(originID[2], 1065353216 pcvar_aseheightworld));
 }
 
Random 0;
 }
 
Random Random 1;
 
rh_emit_sound2(sendtoent"[ReAPI]: Api major version mismatch; expected %d, real %d"samplevolattenflagspitch1origin);
 return 
0;

Responder
#2
No puedes compilar un plugin descompilado, te da grandes porciones de codigo que tu mismo debes adaptar.
Responder
#3
gracias por responder, ¿cuáles son las posibilidades de hacer que este complemento funcione?
Responder
#4
buscando a alguien que sepa manejar dichas funciones, se pueder re armar y hasta mejorar.
Responder
#5
buscando a alguien que pueda hacer que este complemento funcione, podemos hacer negocios por dinero
Responder


Salto de foro:


Usuarios navegando en este tema: 1 invitado(s)