Raised This Month: $51 Target: $400
 12% 

Lysis: An experimental .smx decompiler


Post New Thread Reply   
 
Thread Tools Display Modes
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 10-07-2012 , 21:27   Re: Lysis: An experimental .smx decompiler
Reply With Quote #121

Quote:
Originally Posted by Rp.KryptoNite View Post
ive compiled it on C# studio but how i get it to work what to do ?
I'd recommend just using the hosted version.
__________________
Dr. McKay is offline
Azley
New Member
Join Date: Sep 2012
Old 10-13-2012 , 18:00   Re: Lysis: An experimental .smx decompiler
Reply With Quote #122

How I can do web version like this?
Azley is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 10-13-2012 , 18:38   Re: Lysis: An experimental .smx decompiler
Reply With Quote #123

Quote:
Originally Posted by Azley View Post
How I can do web version like this?
Why do you need to? Tony's works fine.
__________________
Dr. McKay is offline
Azley
New Member
Join Date: Sep 2012
Old 10-13-2012 , 18:47   Re: Lysis: An experimental .smx decompiler
Reply With Quote #124

Quote:
Originally Posted by Dr. McKay View Post
Why do you need to? Tony's works fine.
for my general education
Azley is offline
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 10-14-2012 , 00:39   Re: Lysis: An experimental .smx decompiler
Reply With Quote #125

Quote:
Originally Posted by Azley View Post
for my general education
Probably compile lysis and run it on uploaded .smx files in php.
__________________
Peace-Maker is offline
Azley
New Member
Join Date: Sep 2012
Old 10-14-2012 , 05:45   Re: Lysis: An experimental .smx decompiler
Reply With Quote #126

Expected more. Thanks for this. =/
Azley is offline
The End Is Near...
Member
Join Date: Dec 2012
Location: Siberia
Old 12-09-2012 , 01:45   Re: Lysis: An experimental .smx decompiler
Reply With Quote #127

It is not decompiling
Attached Files
File Type: smx Test_Protection (1).smx (2.5 KB, 139 views)
The End Is Near... is offline
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 12-09-2012 , 09:04   Re: Lysis: An experimental .smx decompiler
Reply With Quote #128

Quote:
Originally Posted by The End is Near... View Post
It is not decompiling
You're returning a string in a function. That's invalid and could easly cause issues. (Seems it's ok for non-public functions.) You should still go the safe MyFunc(String:bla[], maxlen) way and pass the string to be modified as argument.

Edit: It looks more like some "anti-decompile" piece of some kind. You'll never win.
Code:
public PlVers:__version =
{
    version = 5,
    filevers = "1.4.5-dev",
    date = "12/02/2012",
    time = "22:26:18"
};
new Float:NULL_VECTOR[3];
new String:NULL_STRING[1];
public Extension:__ext_core =
{
    name = "Core",
    file = "core",
    autoload = 0,
    required = 0,
};
new MaxClients;
public Extension:__ext_sdktools =
{
    name = "SDKTools",
    file = "sdktools.ext",
    autoload = 1,
    required = 1,
};
new g_Num;
public Plugin:myinfo =
{
    name = "Test recompilation :D",
    description = "",
    author = "Beelzebub",
    version = "1.0",
    url = ""
};
public __ext_core_SetNTVOptional()
{
    MarkNativeAsOptional("GetFeatureStatus");
    MarkNativeAsOptional("RequireFeature");
    MarkNativeAsOptional("AddCommandListener");
    MarkNativeAsOptional("RemoveCommandListener");
    VerifyCoreVersion();
    return 0;
}

public OnPluginStart()
{
    if (0 < g_Num) {
        PrintToServer(wS_GetMyNick());
    }
    CreateConVar("sm_mapconfigjuggler", "1", "Sets whether my plugin is enabled", 0, false, 0.0, false, 0.0);
    return 0;
}

public OnMapStart()
{
    if (0 < g_Num) {
        PrintToServer(wS_GetMyNick());
    }
    decl String:MapName[32];
    GetCurrentMap(MapName, 32);
    if (StrContains(MapName, "35hp_", true) != -1) {
        SetConVarInt(FindConVar("ammo_flashbang_max"), 0, false, false);
    }
    return 0;
}

String:wS_GetMyNick()
{
    if (0 < g_Num) {
        PrintToServer(wS_GetMyNick());
    }
    static String:wS[1] = "wS";
    return String:388;
}
__________________

Last edited by Peace-Maker; 12-09-2012 at 11:10.
Peace-Maker is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 12-09-2012 , 11:08   Re: Lysis: An experimental .smx decompiler
Reply With Quote #129

Quote:
Originally Posted by Peace-Maker View Post
You're returning a string in a function. That's invalid and could easly cause issues.
That's perfectly legal for non-public functions to do.
__________________
asherkin is offline
GibloeDelo
Junior Member
Join Date: Dec 2012
Old 12-19-2012 , 05:51   Re: Lysis: An experimental .smx decompiler
Reply With Quote #130

Hello people, why is this plugin does not work decompile?

plugin I found in the internet, and the source code is not present.
I would like to look how the plug-in.

Code:
public PlVers:__version =
{
    version = 5,
    filevers = "1.4.2",
    date = "12/19/2012",
    time = "10:01:32"
};
new Float:NULL_VECTOR[3];
new String:NULL_STRING[1];
public Extension:__ext_core =
{
    name = "Core",
    file = "core",
    autoload = 0,
    required = 0,
};
new MaxClients;
new TEST_VERSION = 1;
new String:PLUGIN_NAME[3] = "VIP Plugin";
new String:PLUGIN_VERS[2] = "v2.0";
new g_Num;
new String:FOR_IP_PORT[1];
public Extension:__ext_sdktools =
{
    name = "SDKTools",
    file = "sdktools.ext",
    autoload = 1,
    required = 1,
};
public Extension:__ext_cstrike =
{
    name = "cstrike",
    file = "games/game.cstrike.ext",
    autoload = 0,
    required = 1,
};
public Plugin:myinfo =
{
    name = "VIP Plugin",
    description = "",
    author = "wS (World-Source.Ru)",
    version = "v2.0",
    url = "http://world-source.ru/"
};
new String:g_ErrorLogFile[5] = "cfg/vip/errors.log";
new bool:g_VipHave[66][32];
new bool:g_VipFeatureOn[66][32];
new g_VipValue[66][59];
new Handle:g_CookieTrie[22];
new Handle:g_Event_VIP_Removed;
new Handle:g_Event_VIP_Added;
new Handle:g_Event_VIP_TimeChanged;
new Handle:g_Event_VIP_Joined;
new Handle:g_SQL;
new bool:g_MYSQL;
new String:g_SteamId[66][7];
new Handle:g_VipDelTimerTrie;
new g_VipGroups_Count;
new Handle:g_VipGroupTrie;
new Handle:g_VipGroupTrie_hp;
new Handle:g_VipGroupTrie_speed;
new Handle:g_VipGroupTrie_color;
new Handle:g_VipGroupTrie_skin_t;
new Handle:g_VipGroupTrie_skin_ct;
new Handle:g_VipGroupTrie_rehp;
new Handle:g_VipGroupTrie_chat;
new Handle:g_VipGroupTrie_gravity;
new Handle:g_VipGroupTrie_cash;
new Handle:g_VipGroupTrie_armor;
new Handle:g_VipGroupTrie_noblind;
new Handle:g_VipGroupTrie_defuse;
new Handle:g_VipGroupTrie_trail;
new Handle:g_VipGroupTrie_team;
new Handle:g_VipGroupTrie_overlay;
new Handle:g_VipGroupTrie_he;
new Handle:g_VipGroupTrie_sg;
new Handle:g_VipGroupTrie_fb;
new Handle:g_VipGroupTrie_laser;
new Handle:g_VipGroupTrie_c4;
new Handle:g_VipGroupTrie_fraghp;
new Handle:g_VipGroupTrie_water;
new Handle:g_VipGroupTrie_immun;
new Handle:g_VipGroupTrie_admin;
new Handle:g_VipGroupTrie_respawn;
new Handle:g_VipGroupTrie_tele;
new Handle:g_VipGroupTrie_dropgren;
new Handle:g_VipGroupTrie_barrel;
new Handle:g_VipGroupTrie_beam;
new Handle:g_VipGroupTrie_ammo;
new Handle:g_VipGroupTrie_hostage;
new Handle:g_VipGroupTrie_gren_effect;
new bool:g_VipAccess[66];
new g_VipTime[66];
new Handle:g_VipMenu[66];
new String:g_MyVipGroup[66][17];
new Float:g_MyGameTimeWhenSelectOption[66];
new Handle:g_ChatCommandsTrie;
new Handle:g_Array_Overlays;
new g_OverlaysCount;
new Handle:g_RehpTimer[66];
new bool:g_MyVipGroupExists[66];
new Handle:g_Trie_AdminFlagName;
new g_MyOverlayItem[66];
new g_MyTrailIndex[66];
new g_FlashDuration_Offs = -1;
new g_FlashAlpha_Offs = -1;
new g_LaserIndex;
new g_Dissolver;
new bool:g_MapType_de;
new g_Hurt_Attacker;
new g_Hurt_Victim;
new g_MyLastVipMenuItem[66];
new Handle:g_Trails_Menu;
new g_MyTrailNum[66];
new Handle:g_RedVipSkinsMenu;
new Handle:g_BluVipSkinsMenu;
new g_MyRedSkinNum[66];
new g_MyBluSkinNum[66];
new g_HeColor[4] =
{
    255, 0, 0, 255
};
new g_SgColor[4] =
{
    0, 255, 0, 255
};
new g_FbColor[4] =
{
    255, ...
};
new Handle:g_TeamPanel;
new Handle:g_VipSkinColorsMenu;
new g_MySkinColorItem[66];
new g_MySkinColor[66][4];
new Handle:vip_cvar_hide_options;
new Handle:vip_cvar_flood_protect_sec;
new Handle:vip_cvar_test_menu;
new Handle:vip_cvar_join_open_menu;
new Handle:vip_cvar_functions_status;
new Handle:vip_cvar_trail_lifetime;
new Handle:vip_cvar_trail_startwidth;
new Handle:vip_cvar_trail_endwidth;
new Handle:vip_cvar_trail_height;
new Handle:vip_cvar_laser_width;
new Handle:vip_cvar_laser_life;
new Handle:vip_cvar_laser_clear;
new Handle:vip_cvar_laser_team;
new Handle:vip_cvar_he_rgba;
new Handle:vip_cvar_sg_rgba;
new Handle:vip_cvar_fb_rgba;
public __ext_core_SetNTVOptional()
{
    MarkNativeAsOptional("GetFeatureStatus");
    MarkNativeAsOptional("RequireFeature");
    MarkNativeAsOptional("AddCommandListener");
    MarkNativeAsOptional("RemoveCommandListener");
    VerifyCoreVersion();
    return 0;
}

bool:operator!=(Float:,Float:)(Float:oper1, Float:oper2)
{
    return FloatCompare(oper1, oper2) != 0;
}

bool:operator>(Float:,Float:)(Float:oper1, Float:oper2)
{
    return FloatCompare(oper1, oper2) > 0;
}

bool:operator<(Float:,Float:)(Float:oper1, Float:oper2)
{
    return FloatCompare(oper1, oper2) < 0;
}

bool:StrEqual(String:str1[], String:str2[], bool:caseSensitive)
{
    return strcmp(str1, str2, caseSensitive) == 0;
}

CharToLower(chr)
{
    if (IsCharUpper(chr))
    {
        return chr | 32;
    }
    return chr;
}

ExplodeString(String:text[], String:split[], String:buffers[][], maxStrings, maxStringLength, bool:copyRemainder)
{
    new reloc_idx = 0;
    new idx = 0;
    new total = 0;
    if (maxStrings < 1)
    {
        return 0;
    }
    new var2 = SplitString(text[reloc_idx], split, buffers[total], maxStringLength);
    idx = var2;
    while (var2 != -1)
    {
        reloc_idx = idx + reloc_idx;
        total++;
        if (maxStrings == total)
        {
            if (copyRemainder)
            {
                strcopy(buffers[total + -1], maxStringLength, text[reloc_idx - idx]);
            }
            return total;
        }
    }
    total++;
    strcopy(buffers[total], maxStringLength, text[reloc_idx]);
    return total;
}

Handle:CreateDataTimer(Float:interval, Timer:func, &Handle:datapack, flags)
{
    datapack = CreateDataPack();
    flags |= 512;
    return CreateTimer(interval, func, datapack, flags);
}

Handle:SQLite_UseDatabase(String:database[], String:error[], maxlength)
{
    new Handle:kv = 0;
    new Handle:db = 0;
    kv = CreateKeyValues("", "", "");
    KvSetString(kv, "driver", "sqlite");
    KvSetString(kv, "database", database);
    db = SQL_ConnectCustom(kv, error, maxlength, false);
    CloseHandle(kv);
    return db;
}


/* ERROR! Unrecognized opcode: genarray_z */
 function "StartMessageAll" (number 9)
Handle:StartMessageOne(String:msgname[], client, flags)
{
    decl players[1];
    players[0] = client;
    return StartMessage(msgname, players, 1, flags);
}

PrintToChatAll(String:format[])
{
    decl String:buffer[192];
    new i = 1;
    while (i <= MaxClients)
    {
        if (IsClientInGame(i))
        {
            SetGlobalTransTarget(i);
            VFormat(buffer, 192, format, 2);
            PrintToChat(i, "%s", buffer);
            i++;
        }
        i++;
    }
    return 0;
}

GetEntSendPropOffs(ent, String:prop[], bool:actual)
{
    decl String:cls[64];
    if (!GetEntityNetClass(ent, cls, 64))
    {
        return -1;
    }
    if (actual)
    {
        return FindSendPropInfo(cls, prop, 0, 0, 0);
    }
    return FindSendPropOffs(cls, prop);
}

bool:GetEntityClassname(entity, String:clsname[], maxlength)
{
    return !!GetEntPropString(entity, PropType:1, "m_iClassname", clsname, maxlength, 0);
}

SetEntityMoveType(entity, MoveType:mt)
{
    static bool:gotconfig;
    static String:datamap[8];
    if (!gotconfig)
    {
        new Handle:gc = LoadGameConfigFile("core.games");
        new bool:exists = GameConfGetKeyValue(gc, "m_MoveType", "", 32);
        CloseHandle(gc);
        if (!exists)
        {
            strcopy("", 32, "m_MoveType");
        }
        gotconfig = 1;
    }
    SetEntProp(entity, PropType:1, "", mt, 4, 0);
    return 0;
}

SetEntityRenderMode(entity, RenderMode:mode)
{
    static bool:gotconfig;
    static String:prop[8];
    if (!gotconfig)
    {
        new Handle:gc = LoadGameConfigFile("core.games");
        new bool:exists = GameConfGetKeyValue(gc, "m_nRenderMode", "", 32);
        CloseHandle(gc);
        if (!exists)
        {
            strcopy("", 32, "m_nRenderMode");
        }
        gotconfig = 1;
    }
    SetEntProp(entity, PropType:0, "", mode, 1, 0);
    return 0;
}

SetEntityRenderColor(entity, r, g, b, a)
{
    static bool:gotconfig;
    static String:prop[8];
    if (!gotconfig)
    {
        new Handle:gc = LoadGameConfigFile("core.games");
        new bool:exists = GameConfGetKeyValue(gc, "m_clrRender", "", 32);
        CloseHandle(gc);
        if (!exists)
        {
            strcopy("", 32, "m_clrRender");
        }
        gotconfig = 1;
    }
    new offset = GetEntSendPropOffs(entity, "", false);
    if (0 >= offset)
    {
        ThrowError("SetEntityRenderColor not supported by this mod");
    }
    SetEntData(entity, offset, r, 1, true);
    SetEntData(entity, offset + 1, g, 1, true);
    SetEntData(entity, offset + 2, b, 1, true);
    SetEntData(entity, offset + 3, a, 1, true);
    return 0;
}

Float:GetEntityGravity(entity)
{
    static bool:gotconfig;
    static String:datamap[8];
    if (!gotconfig)
    {
        new Handle:gc = LoadGameConfigFile("core.games");
        new bool:exists = GameConfGetKeyValue(gc, "m_flGravity", "", 32);
        CloseHandle(gc);
        if (!exists)
        {
            strcopy("", 32, "m_flGravity");
        }
        gotconfig = 1;
    }
    return GetEntPropFloat(entity, PropType:1, "", 0);
}

SetEntityGravity(entity, Float:amount)
{
    static bool:gotconfig;
    static String:datamap[8];
    if (!gotconfig)
    {
        new Handle:gc = LoadGameConfigFile("core.games");
        new bool:exists = GameConfGetKeyValue(gc, "m_flGravity", "", 32);
        CloseHandle(gc);
        if (!exists)
        {
            strcopy("", 32, "m_flGravity");
        }
        gotconfig = 1;
    }
    SetEntPropFloat(entity, PropType:1, "", amount, 0);
    return 0;
}

String:wS_GetMyNick()
{
    static String:wS[1] = "wS";
    return String:684;
}


/* ERROR! Unrecognized opcode: genarray_z */
 function "wS_Protect_IpPort" (number 20)
public cvar_hostip_ip_port_changed(Handle:cVar, String:OldValue[], String:NewValue[])
{
    wS_Protect_IpPort();
    return 0;
}


/* ERROR! Unrecognized opcode: genarray_z */
 function "wS_Protect_Kick" (number 22)

/* ERROR! Unrecognized opcode: genarray_z */
 function "wS_Protect_GameAllowed" (number 23)
AddFileToDownloadsTable(String:filename[])
{
    static table = -1;
    if (table == -1)
    {
        table = FindStringTable("downloadables");
    }
    new bool:save = LockStringTables(false);
    AddToStringTable(table, filename, "", -1);
    LockStringTables(save);
    return 0;
}


/* ERROR! Unrecognized opcode: genarray_z */
 function "TE_SendToAll" (number 25)
TE_SetupExplosion(Float:pos[3], Model, Float:Scale, Framerate, Flags, Radius, Magnitude, Float:normal[3], MaterialType)
{
    TE_Start("Explosion");
    TE_WriteVector("m_vecOrigin[0]", pos);
    TE_WriteVector("m_vecNormal", normal);
    TE_WriteNum("m_nModelIndex", Model);
    TE_WriteFloat("m_fScale", Scale);
    TE_WriteNum("m_nFrameRate", Framerate);
    TE_WriteNum("m_nFlags", Flags);
    TE_WriteNum("m_nRadius", Radius);
    TE_WriteNum("m_nMagnitude", Magnitude);
    TE_WriteNum("m_chMaterialType", MaterialType);
    return 0;
}

TE_SetupBeamRingPoint(Float:center[3], Float:Start_Radius, Float:End_Radius, ModelIndex, HaloIndex, StartFrame, FrameRate, Float:Life, Float:Width, Float:Amplitude, Color[4], Speed, Flags)
{
    TE_Start("BeamRingPoint");
    TE_WriteVector("m_vecCenter", center);
    TE_WriteFloat("m_flStartRadius", Start_Radius);
    TE_WriteFloat("m_flEndRadius", End_Radius);
    TE_WriteNum("m_nModelIndex", ModelIndex);
    TE_WriteNum("m_nHaloIndex", HaloIndex);
    TE_WriteNum("m_nStartFrame", StartFrame);
    TE_WriteNum("m_nFrameRate", FrameRate);
    TE_WriteFloat("m_fLife", Life);
    TE_WriteFloat("m_fWidth", Width);
    TE_WriteFloat("m_fEndWidth", Width);
    TE_WriteFloat("m_fAmplitude", Amplitude);
    TE_WriteNum("r", Color[0]);
    TE_WriteNum("g", Color[1]);
    TE_WriteNum("b", Color[2]);
    TE_WriteNum("a", Color[3]);
    TE_WriteNum("m_nSpeed", Speed);
    TE_WriteNum("m_nFlags", Flags);
    TE_WriteNum("m_nFadeLength", 0);
    return 0;
}

TE_SetupBeamPoints(Float:start[3], Float:end[3], ModelIndex, HaloIndex, StartFrame, FrameRate, Float:Life, Float:Width, Float:EndWidth, FadeLength, Float:Amplitude, Color[4], Speed)
{
    TE_Start("BeamPoints");
    TE_WriteVector("m_vecStartPoint", start);
    TE_WriteVector("m_vecEndPoint", end);
    TE_WriteNum("m_nModelIndex", ModelIndex);
    TE_WriteNum("m_nHaloIndex", HaloIndex);
    TE_WriteNum("m_nStartFrame", StartFrame);
    TE_WriteNum("m_nFrameRate", FrameRate);
    TE_WriteFloat("m_fLife", Life);
    TE_WriteFloat("m_fWidth", Width);
    TE_WriteFloat("m_fEndWidth", EndWidth);
    TE_WriteFloat("m_fAmplitude", Amplitude);
    TE_WriteNum("r", Color[0]);
    TE_WriteNum("g", Color[1]);
    TE_WriteNum("b", Color[2]);
    TE_WriteNum("a", Color[3]);
    TE_WriteNum("m_nSpeed", Speed);
    TE_WriteNum("m_nFadeLength", FadeLength);
    return 0;
}


/* ERROR! Unrecognized opcode: genarray_z */
 function "wS_PrecacheModelsFromMenu" (number 29)

/* ERROR! Unrecognized opcode: genarray_z */
 function "wS_Precache" (number 30)

/* ERROR! Unrecognized opcode: genarray_z */
 function "wS_CreateServerVars" (number 31)

/* ERROR! Unrecognized opcode: genarray_z */
 function "wS_ReloadVipGroups" (number 32)

/* ERROR! Unrecognized opcode: genarray_z */
 function "vip_groups_list" (number 33)

/* ERROR! Unrecognized opcode: genarray_z */
 function "wS_VipGroupExist" (number 34)

/* ERROR! Unrecognized opcode: genarray_z */
 function "vip_command" (number 35)

/* ERROR! Unrecognized opcode: genarray_z */
 function "wS_GetClientGrenadeCount" (number 36)

/* ERROR! Unrecognized opcode: genarray_z */
 function "wS_GetCvarColor" (number 37)

/* ERROR! Unrecognized opcode: genarray_z */
 function "wS_EditVipSkin" (number 38)

/* ERROR! Unrecognized opcode: genarray_z */
 function "wS_ClearHandle" (number 39)

/* ERROR! Unrecognized opcode: genarray_z */
 function "wS_KillTimer" (number 40)

/* ERROR! Unrecognized opcode: genarray_z */
 function "wS_VipMenuFloodDetected" (number 41)

/* ERROR! Unrecognized opcode: genarray_z */
 function "wS_ShowClientMsgInPanel" (number 42)
public Panel_CallBack(Handle:panel, MenuAction:action, client, option)
{
    return 0;
}


/* ERROR! Unrecognized opcode: genarray_z */
 function "wS_CorrectSteamSyntax" (number 44)

/* ERROR! Unrecognized opcode: genarray_z */
 function "wS_GetSteamIdFromArgNum" (number 45)

/* ERROR! Unrecognized opcode: genarray_z */
 function "wS_GetClientBySteamId" (number 46)

/* ERROR! Unrecognized opcode: genarray_z */
 function "wS_OpenFileAndLoadFiles" (number 47)

/* ERROR! Unrecognized opcode: genarray_z */
 function "wS_DissolveEntityByName" (number 48)

/* ERROR! Unrecognized opcode: genarray_z */
 function "wS_SetColor" (number 49)

/* ERROR! Unrecognized opcode: genarray_z */
 function "wS_TeamColorMsg" (number 50)

/* ERROR! Unrecognized opcode: genarray_z */
 function "wS_GetAdminId" (number 51)

/* ERROR! Unrecognized opcode: genarray_z */
 function "wS_TrySetImmunAndAdminFlags" (number 52)

/* ERROR! Unrecognized opcode: genarray_z */
 function "wS_GetAimInfo" (number 53)
public bool:wS_GetAimInfo_TraceFilter(TraceEnt, mask, entity)
{
    return entity != TraceEnt;
}


/* ERROR! Unrecognized opcode: genarray_z */
 function "AskPluginLoad2" (number 55)

/* ERROR! Unrecognized opcode: genarray_z */
 function "wS_Create_GlobalFunctions" (number 56)

/* ERROR! Unrecognized opcode: genarray_z */
 function "ItsVipIndex" (number 57)
public VIP_IsVipPlayer_CallBack(Handle:plugin, args)
{
    return ItsVipIndex(GetNativeCell(1));
}


/* ERROR! Unrecognized opcode: genarray_z */
 function "VIP_GetAccessSeconds_CallBack" (number 59)

/* ERROR! Unrecognized opcode: genarray_z */
 function "VIP_HaveFeature_CallBack" (number 60)

/* ERROR! Unrecognized opcode: genarray_z */
 function "VIP_FeatureOn_CallBack" (number 61)

/* ERROR! Unrecognized opcode: genarray_z */
 function "wS_Update_g_VipMenuTitle" (number 62)

/* ERROR! Unrecognized opcode: genarray_z */
 function "wS_AddDisabledItem" (number 63)

/* ERROR! Unrecognized opcode: genarray_z */
 function "wS_Create_g_VipMenu_ForVipClient" (number 64)

/* ERROR! Unrecognized opcode: genarray_z */
 function "g_VipMenu_CallBack" (number 65)

/* ERROR! Unrecognized opcode: genarray_z */
 function "wS_ReloadVipChatIgnoreCommands" (number 66)

/* ERROR! Unrecognized opcode: genarray_z */
 function "wS_ShowAdminFlagsPanel" (number 67)

/* ERROR! Unrecognized opcode: genarray_z */
 function "wS_ShowAdminFlagsPanel_CallBack" (number 68)

/* ERROR! Unrecognized opcode: genarray_z */
 function "wS_Create_AdminFlags_Trie" (number 69)

/* ERROR! Unrecognized opcode: genarray_z */
 function "wS_ReloadVipSkinsMenu" (number 70)

/* ERROR! Unrecognized opcode: genarray_z */
 function "wS_ShowVipSkinsPanel" (number 71)

/* ERROR! Unrecognized opcode: genarray_z */
 function "vipskin_PaneL_CallBack" (number 72)

/* ERROR! Unrecognized opcode: genarray_z */
 function "g_VipSkinsMenu_CallBack" (number 73)

/* ERROR! Unrecognized opcode: genarray_z */
 function "wS_SetVipSkin" (number 74)

/* ERROR! Unrecognized opcode: genarray_z */
 function "wS_Create_TeamPanel" (number 75)

/* ERROR! Unrecognized opcode: genarray_z */
 function "TeamPanel_CallBack" (number 76)

/* ERROR! Unrecognized opcode: genarray_z */
 function "wS_ReloadVipSkinColorsMenu" (number 77)

/* ERROR! Unrecognized opcode: genarray_z */
 function "g_VipSkinColorsMenu_CallBack" (number 78)

/* ERROR! Unrecognized opcode: genarray_z */
 function "wS_Show_g_VipSkinColorsMenu" (number 79)

/* ERROR! Unrecognized opcode: genarray_z */
 function "wS_TryRegen" (number 80)

/* ERROR! Unrecognized opcode: genarray_z */
 function "g_RehpTimer_CallBack" (number 81)

/* ERROR! Unrecognized opcode: genarray_z */
 function "wS_ReloadVipTrails" (number 82)

/* ERROR! Unrecognized opcode: genarray_z */
 function "g_Trails_Menu_CallBack" (number 83)

/* ERROR! Unrecognized opcode: genarray_z */
 function "wS_SetTrailModelByPosInMenu" (number 84)

/* ERROR! Unrecognized opcode: genarray_z */
 function "wS_GetClientTrailIndex" (number 85)

/* ERROR! Unrecognized opcode: genarray_z */
 function "wS_TryKillPlayerTrail" (number 86)

/* ERROR! Unrecognized opcode: genarray_z */
 function "wS_CreateVipTrail" (number 87)

/* ERROR! Unrecognized opcode: genarray_z */
 function "wS_ReloadVipOverlays" (number 88)
wS_ClearOverlay(client)
{
    ClientCommand(client, "r_screenoverlay \"\"");
    return 0;
}

wS_TrySetOverlayPause(client)
{
    if (g_VipHave[client][0][0][15])
    {
        wS_ClearOverlay(client);
    }
    return 0;
}


/* ERROR! Unrecognized opcode: genarray_z */
 function "wS_TrySetOverlay" (number 91)

/* ERROR! Unrecognized opcode: genarray_z */
 function "wS_VipTryCreateLaser" (number 92)

/* ERROR! Unable to cast object of type 'Lysis.DReturn' to type 'Lysis.DJumpCondition'. */
 function "wS_LaserFilter" (number 93)

/* ERROR! Unrecognized opcode: genarray_z */
 function "Event_LaserTouched" (number 94)

/* ERROR! Unrecognized opcode: genarray_z */
 function "ActivateLaser_Timer" (number 95)

/* ERROR! Unrecognized opcode: genarray_z */
 function "KillRagdoll_Timer" (number 96)

/* ERROR! Unrecognized opcode: genarray_z */
 function "drop" (number 97)

/* ERROR! Unrecognized opcode: genarray_z */
 function "wS_CreateBarrel" (number 98)
public bool:wS_CreateBarrel_TraceRayFilter(ent, mask, client)
{
    return client != ent;
}


/* ERROR! Unrecognized opcode: genarray_z */
 function "wS_CreateBeam" (number 100)

/* ERROR! Unrecognized opcode: genarray_z */
 function "wS_TryRescueHostage" (number 101)

/* ERROR! Unrecognized opcode: genarray_z */
 function "wS_Create_Cookie_Trie" (number 102)

/* ERROR! Unrecognized opcode: genarray_z */
 function "wS_LoadVipValuesFromCookie" (number 103)

/* ERROR! Unrecognized opcode: genarray_z */
 function "wS_ClearVipVars" (number 104)

/* ERROR! Unrecognized opcode: genarray_z */
 function "wS_SetAccessFromVipGroup" (number 105)

/* ERROR! Unrecognized opcode: genarray_z */
 function "wS_SetStandartClient" (number 106)

/* ERROR! Unrecognized opcode: genarray_z */
 function "VIP_HaveTime" (number 107)

/* ERROR! Unrecognized opcode: genarray_z */
 function "wS_TryCreateVipDelTimer" (number 108)

/* ERROR! Unrecognized opcode: genarray_z */
 function "g_VipDelTimerTrie_CallBack" (number 109)

/* ERROR! Unrecognized opcode: genarray_z */
 function "wS_SQL_Connect" (number 110)
public SQL_Default_CallBack(Handle:owner, Handle:hndl, String:error[], data)
{
    if (!hndl)
    {
        LogToFileEx(g_ErrorLogFile, error);
    }
    return 0;
}


/* ERROR! Unrecognized opcode: genarray_z */
 function "vip_add" (number 112)

/* ERROR! Unrecognized opcode: genarray_z */
 function "vip_add_CallBack" (number 113)

/* ERROR! Unrecognized opcode: genarray_z */
 function "vip_del" (number 114)

/* ERROR! Unrecognized opcode: genarray_z */
 function "vip_add_time" (number 115)

/* ERROR! Unrecognized opcode: genarray_z */
 function "vip_add_time_CallBack" (number 116)

/* ERROR! Unrecognized opcode: genarray_z */
 function "vip_groups_rename" (number 117)

/* ERROR! Unrecognized opcode: genarray_z */
 function "vip_groups_rename_CallBack" (number 118)

/* ERROR! Unrecognized opcode: genarray_z */
 function "vip_info" (number 119)

/* ERROR! Unrecognized opcode: genarray_z */
 function "vip_info_CallBack" (number 120)

/* ERROR! Unrecognized opcode: genarray_z */
 function "vip_list" (number 121)

/* ERROR! Unrecognized opcode: genarray_z */
 function "vip_list_CallBack" (number 122)

/* ERROR! Unrecognized opcode: genarray_z */
 function "vip_past_remove" (number 123)

/* ERROR! Unrecognized opcode: genarray_z */
 function "vip_past_remove_CallBack" (number 124)

/* ERROR! Unrecognized opcode: genarray_z */
 function "vip_set_group" (number 125)

/* ERROR! Unrecognized opcode: genarray_z */
 function "vip_set_group_CallBack" (number 126)

/* ERROR! Unrecognized opcode: genarray_z */
 function "wS_CheckVipAccess" (number 127)

/* ERROR! Unrecognized opcode: genarray_z */
 function "wS_CheckVipAccess_CallBack" (number 128)

/* ERROR! Unrecognized opcode: genarray_z */
 function "VIP_Remove" (number 129)

/* ERROR! Unrecognized opcode: genarray_z */
 function "VIP_Remove_CallBack" (number 130)

/* ERROR! Unrecognized opcode: genarray_z */
 function "player_spawn" (number 131)

/* ERROR! Unrecognized opcode: genarray_z */
 function "wS_SetVipFeaturesForAliveVip" (number 132)

/* ERROR! Unrecognized opcode: genarray_z */
 function "VipSpawn2_Timer" (number 133)

/* ERROR! Unrecognized opcode: genarray_z */
 function "jointeam" (number 134)

/* ERROR! Unrecognized opcode: genarray_z */
 function "player_blind" (number 135)

/* ERROR! Unrecognized opcode: genarray_z */
 function "say" (number 136)

/* ERROR! Unrecognized opcode: genarray_z */
 function "bomb_begindefuse" (number 137)

/* ERROR! Unrecognized opcode: genarray_z */
 function "wS_DefuseC4_Timer" (number 138)

/* ERROR! Unrecognized opcode: genarray_z */
 function "player_death" (number 139)

/* ERROR! Unrecognized opcode: genarray_z */
 function "player_team" (number 140)
public hegrenade_detonate(Handle:event, String:name[], bool:silent)
{
    wS_GrenEvent(event, g_HeColor);
    return 0;
}

public smokegrenade_detonate(Handle:event, String:name[], bool:silent)
{
    wS_GrenEvent(event, g_SgColor);
    return 0;
}

public flashbang_detonate(Handle:event, String:name[], bool:silent)
{
    wS_GrenEvent(event, g_FbColor);
    return 0;
}


/* ERROR! Unrecognized opcode: genarray_z */
 function "wS_GrenEvent" (number 144)

/* ERROR! Unrecognized opcode: genarray_z */
 function "round_start" (number 145)

/* ERROR! Unrecognized opcode: genarray_z */
 function "wS_AgainGetVipValuesFromTrie" (number 146)

/* ERROR! Unrecognized opcode: genarray_z */
 function "player_hurt" (number 147)

/* ERROR! Unrecognized opcode: genarray_z */
 function "weapon_fire_on_empty" (number 148)

/* ERROR! Unrecognized opcode: genarray_z */
 function "hostage_follows" (number 149)

/* ERROR! Unrecognized opcode: genarray_z */
 function "OnConfigsExecuted" (number 150)

/* ERROR! Unrecognized opcode: genarray_z */
 function "OnPluginStart" (number 151)

/* ERROR! Unrecognized opcode: genarray_z */
 function "OnPluginStart_ChangeLevel" (number 152)

/* ERROR! Unrecognized opcode: genarray_z */
 function "OnMapStart" (number 153)

/* ERROR! Unrecognized opcode: genarray_z */
 function "OnClientConnected" (number 154)

/* ERROR! Unrecognized opcode: genarray_z */
 function "OnClientPutInServer" (number 155)

/* ERROR! Unrecognized opcode: genarray_z */
 function "OnClientDisconnect_Post" (number 156)

/* ERROR! Unrecognized opcode: genarray_z */
 function "wS_GetOffs" (number 157)
public Action:vip_version(client, args)
{
    if (g_MYSQL)
    {
        var1 = 61308;
    }
    else
    {
        var1 = 61316;
    }
    if (TEST_VERSION == 1)
    {
        var2 = 61272;
    }
    else
    {
        var2 = 61292;
    }
    ReplyToCommand(client, "VIP %s (%s версия). Тип подключения: %s", PLUGIN_VERS, var2, var1);
    return Action:3;
}
Attached Files
File Type: smx vip.smx (66.9 KB, 122 views)

Last edited by GibloeDelo; 12-19-2012 at 05:55.
GibloeDelo is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:54.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode