You are not logged in.

Random778

Trainee

  • "Random778" started this thread

Posts: 127

Occupation: Schüler

wcf.user.option.userOption53: Nein

  • Send private message

1

Sunday, September 15th 2013, 3:04pm

Decompiler...

Hallo Leute,
Ich habe mein Windows neu aufgesetzt vor ungefähr 1 Monat dann habe ich die .SP von mir verloren.
Dann hatte ich noch auf dem Server die .SMX, doch hab es versucht zu decompileren doch das verstehe ich nicht ganz.

Spoiler Spoiler

public PlVers:__version =
{
version = 5,
filevers = "1.4.6",
date = "06/21/2013",
time = "16:30:10"
};
new Float:NULL_VECTOR[3];
new String:NULL_STRING[4];
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,
};
public Extension:__ext_cstrike =
{
name = "cstrike",
file = "games/game.cstrike.ext",
autoload = 0,
required = 1,
};
new bool:CSkipList[66];
new Handle:CTrie;
public SharedPlugin:__pl_basecomm =
{
name = "basecomm",
file = "basecomm.smx",
required = 1,
};
public Extension:__ext_cprefs =
{
name = "Client Preferences",
file = "clientprefs.ext",
autoload = 1,
required = 1,
};
new g_iMenu[66];
new bool:vida[66];
new bool:vipchat[66];
new bool:vipchat2[66];
new bool:viptag[66];
new String:clantag[66][32];
new Handle:cookie_ambient;
new Handle:cookie_ambient2;
public __ext_core_SetNTVOptional()
{
MarkNativeAsOptional("GetFeatureStatus");
MarkNativeAsOptional("RequireFeature");
MarkNativeAsOptional("AddCommandListener");
MarkNativeAsOptional("RemoveCommandListener");
VerifyCoreVersion();
return 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;
}

FindCharInString(String:str[], c, bool:reverse)
{
new i;
new len = strlen(str);
if (!reverse)
{
i = 0;
while (i < len)
{
if (c == str)
{
return i;
}
i++;
}
}
else
{
i = len + -1;
while (0 <= i)
{
if (c == str[i])
{
return i;
}
i--;
}
}
return -1;
}

Handle:StartMessageOne(String:msgname[], client, flags)
{
new players[1];
players[0] = client;
return StartMessage(msgname, players, 1, flags);
}

SetEntityHealth(entity, amount)
{
static bool:gotconfig;
static String:prop[32];
if (!gotconfig)
{
new Handle:gc = LoadGameConfigFile("core.games");
new bool:exists = GameConfGetKeyValue(gc, "m_iHealth", prop, 32);
CloseHandle(gc);
if (!exists)
{
strcopy(prop, 32, "m_iHealth");
}
gotconfig = 1;
}
decl String:cls[64];
new PropFieldType:type;
new offset;
if (!GetEntityNetClass(entity, cls, 64))
{
ThrowError("SetEntityHealth not supported by this mod: Could not get serverclass name");
return 0;
}
offset = FindSendPropInfo(cls, prop, type, 0, 0);
if (0 >= offset)
{
ThrowError("SetEntityHealth not supported by this mod");
return 0;
}
if (type == PropFieldType:2)
{
SetEntDataFloat(entity, offset, float(amount), false);
}
else
{
SetEntProp(entity, PropType:0, prop, amount, 4, 0);
}
return 0;
}

CPrintToChat(client, String:message[])
{
CCheckTrie();
if (client <= 0)
{
ThrowError("Invalid client index %i", client);
}
if (!IsClientInGame(client))
{
ThrowError("Client %i is not in game", client);
}
decl String:buffer[252];
decl String:buffer2[252];
SetGlobalTransTarget(client);
Format(buffer, 250, "", message);
VFormat(buffer2, 250, buffer, 3);
CReplaceColorCodes(buffer2, 0, false, 250);
CSendMessage(client, buffer2);
return 0;
}

CPrintToChatAll(String:message[])
{
CCheckTrie();
decl String:buffer[252];
decl String:buffer2[252];
new i = 1;
while (i <= MaxClients)
{
if (!IsClientInGame(i))
{
CSkipList[i] = 0;
}
else
{
SetGlobalTransTarget(i);
Format(buffer, 250, "", message);
VFormat(buffer2, 250, buffer, 2);
CReplaceColorCodes(buffer2, 0, false, 250);
CSendMessage(i, buffer2);
}
i++;
}
return 0;
}

CPrintToChatEx(client, author, String:message[])
{
CCheckTrie();
if (client <= 0)
{
ThrowError("Invalid client index %i", client);
}
if (!IsClientInGame(client))
{
ThrowError("Client %i is not in game", client);
}
if (author <= 0)
{
ThrowError("Invalid client index %i", author);
}
if (!IsClientInGame(author))
{
ThrowError("Client %i is not in game", author);
}
decl String:buffer[252];
decl String:buffer2[252];
SetGlobalTransTarget(client);
Format(buffer, 250, "", message);
VFormat(buffer2, 250, buffer, 4);
CReplaceColorCodes(buffer2, author, false, 250);
CSendMessage(client, buffer2);
return 0;
}

CPrintToChatAllEx(author, String:message[])
{
CCheckTrie();
if (author <= 0)
{
ThrowError("Invalid client index %i", author);
}
if (!IsClientInGame(author))
{
ThrowError("Client %i is not in game", author);
}
decl String:buffer[252];
decl String:buffer2[252];
new i = 1;
while (i <= MaxClients)
{
if (!IsClientInGame(i))
{
CSkipList[i] = 0;
}
else
{
SetGlobalTransTarget(i);
Format(buffer, 250, "", message);
VFormat(buffer2, 250, buffer, 3);
CReplaceColorCodes(buffer2, author, false, 250);
CSendMessage(i, buffer2);
}
i++;
}
return 0;
}

CSendMessage(client, String:message[])
{
new UserMsg:index = GetUserMessageId("SayText2");
if (index == UserMsg:-1)
{
PrintToChat(client, message);
return 0;
}
new Handle:bf = StartMessageOne("SayText2", client, 132);
BfWriteByte(bf, client);
BfWriteByte(bf, 0);
BfWriteString(bf, message);
EndMessage();
return 0;
}

CCheckTrie()
{
if (!CTrie)
{
CTrie = InitColorTrie();
}
return 0;
}

CReplaceColorCodes(String:buffer[], author, bool:removeTags, maxlen)
{
CCheckTrie();
if (!removeTags)
{
ReplaceString(buffer, maxlen, "{default}", "", false);
}
else
{
ReplaceString(buffer, maxlen, "{default}", "", false);
ReplaceString(buffer, maxlen, "{teamcolor}", "", false);
}
if (author)
{
if (author < 0)
{
ThrowError("Invalid client index %i", author);
}
if (!IsClientInGame(author))
{
ThrowError("Client %i is not in game", author);
}
decl String:team[16];
Format(team, 16, "\x07%06X", CGetTeamColor(author));
ReplaceString(buffer, maxlen, "{teamcolor}", team, false);
}
decl part[maxlen];
decl String:find[32];
decl String:replace[16];
new value;
new first;
new last;
new index;
new i;
while (i < 100)
{
first = FindCharInString(buffer[index], 123, false);
last = FindCharInString(buffer[index], 125, false);
if (first == -1)
{
return 0;
}
first++;
last--;
new j;
while (last - first + 1 >= j)
{
if (last - first + 1 == j)
{
part[j] = 0;
index = last + 2 + index;
StrToLower(part);
if (GetTrieValue(CTrie, part, value))
{
Format(find, 32, "{%s}", part);
Format(replace, 16, "\x07%06X", value);
if (!removeTags)
{
ReplaceString(buffer, maxlen, find, replace, false);
i++;
}
ReplaceString(buffer, maxlen, find, "", false);
i++;
}
i++;
}
part[j] = buffer[first + index + j];
j++;
}
index = last + 2 + index;
StrToLower(part);
if (GetTrieValue(CTrie, part, value))
{
Format(find, 32, "{%s}", part);
Format(replace, 16, "\x07%06X", value);
if (!removeTags)
{
ReplaceString(buffer, maxlen, find, replace, false);
i++;
}
ReplaceString(buffer, maxlen, find, "", false);
i++;
}
i++;
}
return 0;
}

StrToLower(String:buffer[])
{
new len = strlen(buffer);
new i;
while (i < len)
{
buffer[i] = CharToLower(buffer[i]);
i++;
}
return 0;
}

CGetTeamColor(client)
{
if (client <= 0)
{
ThrowError("Invalid client index %i", client);
}
if (!IsClientInGame(client))
{
ThrowError("Client %i is not in game", client);
}
new value;
switch (GetClientTeam(client))
{
case 1:
{
value = 13421772;
}
case 2:
{
value = 16728128;
}
case 3:
{
value = 10079487;
}
default:
{
value = 4128574;
}
}
return value;
}

Handle:InitColorTrie()
{
new Handle:hTrie = CreateTrie();
SetTrieValue(hTrie, "aliceblue", any:15792383, true);
SetTrieValue(hTrie, "antiquewhite", any:16444375, true);
SetTrieValue(hTrie, "aqua", any:65535, true);
SetTrieValue(hTrie, "aquamarine", any:8388564, true);
SetTrieValue(hTrie, "azure", any:15794175, true);
SetTrieValue(hTrie, "beige", any:16119260, true);
SetTrieValue(hTrie, "bisque", any:16770244, true);
SetTrieValue(hTrie, "black", any:0, true);
SetTrieValue(hTrie, "blanchedalmond", any:16772045, true);
SetTrieValue(hTrie, "blue", any:10079487, true);
SetTrieValue(hTrie, "blueviolet", any:9055202, true);
SetTrieValue(hTrie, "brown", any:10824234, true);
SetTrieValue(hTrie, "burlywood", any:14596231, true);
SetTrieValue(hTrie, "cadetblue", any:6266528, true);
SetTrieValue(hTrie, "chartreuse", any:8388352, true);
SetTrieValue(hTrie, "chocolate", any:13789470, true);
SetTrieValue(hTrie, "coral", any:16744272, true);
SetTrieValue(hTrie, "cornflowerblue", any:6591981, true);
SetTrieValue(hTrie, "cornsilk", any:16775388, true);
SetTrieValue(hTrie, "crimson", any:14423100, true);
SetTrieValue(hTrie, "cyan", any:65535, true);
SetTrieValue(hTrie, "darkblue", any:139, true);
SetTrieValue(hTrie, "darkcyan", any:35723, true);
SetTrieValue(hTrie, "darkgoldenrod", any:12092939, true);
SetTrieValue(hTrie, "darkgray", any:11119017, true);
SetTrieValue(hTrie, "darkgrey", any:11119017, true);
SetTrieValue(hTrie, "darkgreen", any:25600, true);
SetTrieValue(hTrie, "darkkhaki", any:12433259, true);
SetTrieValue(hTrie, "darkmagenta", any:9109643, true);
SetTrieValue(hTrie, "darkolivegreen", any:5597999, true);
SetTrieValue(hTrie, "darkorange", any:16747520, true);
SetTrieValue(hTrie, "darkorchid", any:10040012, true);
SetTrieValue(hTrie, "darkred", any:9109504, true);
SetTrieValue(hTrie, "darksalmon", any:15308410, true);
SetTrieValue(hTrie, "darkseagreen", any:9419919, true);
SetTrieValue(hTrie, "darkslateblue", any:4734347, true);
SetTrieValue(hTrie, "darkslategray", any:3100495, true);
SetTrieValue(hTrie, "darkslategrey", any:3100495, true);
SetTrieValue(hTrie, "darkturquoise", any:52945, true);
SetTrieValue(hTrie, "darkviolet", any:9699539, true);
SetTrieValue(hTrie, "deeppink", any:16716947, true);
SetTrieValue(hTrie, "deepskyblue", any:49151, true);
SetTrieValue(hTrie, "dimgray", any:6908265, true);
SetTrieValue(hTrie, "dimgrey", any:6908265, true);
SetTrieValue(hTrie, "dodgerblue", any:2003199, true);
SetTrieValue(hTrie, "firebrick", any:11674146, true);
SetTrieValue(hTrie, "floralwhite", any:16775920, true);
SetTrieValue(hTrie, "forestgreen", any:2263842, true);
SetTrieValue(hTrie, "fuchsia", any:16711935, true);
SetTrieValue(hTrie, "fullblue", any:255, true);
SetTrieValue(hTrie, "fullred", any:16711680, true);
SetTrieValue(hTrie, "gainsboro", any:14474460, true);
SetTrieValue(hTrie, "ghostwhite", any:16316671, true);
SetTrieValue(hTrie, "gold", any:16766720, true);
SetTrieValue(hTrie, "goldenrod", any:14329120, true);
SetTrieValue(hTrie, "gray", any:13421772, true);
SetTrieValue(hTrie, "grey", any:13421772, true);
SetTrieValue(hTrie, "green", any:4128574, true);
SetTrieValue(hTrie, "greenyellow", any:11403055, true);
SetTrieValue(hTrie, "honeydew", any:15794160, true);
SetTrieValue(hTrie, "hotpink", any:16738740, true);
SetTrieValue(hTrie, "indianred", any:13458524, true);
SetTrieValue(hTrie, "indigo", any:4915330, true);
SetTrieValue(hTrie, "ivory", any:16777200, true);
SetTrieValue(hTrie, "khaki", any:15787660, true);
SetTrieValue(hTrie, "lavender", any:15132410, true);
SetTrieValue(hTrie, "lavenderblush", any:16773365, true);
SetTrieValue(hTrie, "lawngreen", any:8190976, true);
SetTrieValue(hTrie, "lemonchiffon", any:16775885, true);
SetTrieValue(hTrie, "lightblue", any:11393254, true);
SetTrieValue(hTrie, "lightcoral", any:15761536, true);
SetTrieValue(hTrie, "lightcyan", any:14745599, true);
SetTrieValue(hTrie, "lightgoldenrodyellow", any:16448210, true);
SetTrieValue(hTrie, "lightgray", any:13882323, true);
SetTrieValue(hTrie, "lightgrey", any:13882323, true);
SetTrieValue(hTrie, "lightgreen", any:10092441, true);
SetTrieValue(hTrie, "lightpink", any:16758465, true);
SetTrieValue(hTrie, "lightsalmon", any:16752762, true);
SetTrieValue(hTrie, "lightseagreen", any:2142890, true);
SetTrieValue(hTrie, "lightskyblue", any:8900346, true);
SetTrieValue(hTrie, "lightslategray", any:7833753, true);
SetTrieValue(hTrie, "lightslategrey", any:7833753, true);
SetTrieValue(hTrie, "lightsteelblue", any:11584734, true);
SetTrieValue(hTrie, "lightyellow", any:16777184, true);
SetTrieValue(hTrie, "lime", any:65280, true);
SetTrieValue(hTrie, "limegreen", any:3329330, true);
SetTrieValue(hTrie, "linen", any:16445670, true);
SetTrieValue(hTrie, "magenta", any:16711935, true);
SetTrieValue(hTrie, "maroon", any:8388608, true);
SetTrieValue(hTrie, "mediumaquamarine", any:6737322, true);
SetTrieValue(hTrie, "mediumblue", any:205, true);
SetTrieValue(hTrie, "mediumorchid", any:12211667, true);
SetTrieValue(hTrie, "mediumpurple", any:9662680, true);
SetTrieValue(hTrie, "mediumseagreen", any:3978097, true);
SetTrieValue(hTrie, "mediumslateblue", any:8087790, true);
SetTrieValue(hTrie, "mediumspringgreen", any:64154, true);
SetTrieValue(hTrie, "mediumturquoise", any:4772300, true);
SetTrieValue(hTrie, "mediumvioletred", any:13047173, true);
SetTrieValue(hTrie, "midnightblue", any:1644912, true);
SetTrieValue(hTrie, "mintcream", any:16121850, true);
SetTrieValue(hTrie, "mistyrose", any:16770273, true);
SetTrieValue(hTrie, "moccasin", any:16770229, true);
SetTrieValue(hTrie, "navajowhite", any:16768685, true);
SetTrieValue(hTrie, "navy", any:128, true);
SetTrieValue(hTrie, "oldlace", any:16643558, true);
SetTrieValue(hTrie, "olive", any:10404687, true);
SetTrieValue(hTrie, "olivedrab", any:7048739, true);
SetTrieValue(hTrie, "orange", any:16753920, true);
SetTrieValue(hTrie, "orangered", any:16729344, true);
SetTrieValue(hTrie, "orchid", any:14315734, true);
SetTrieValue(hTrie, "palegoldenrod", any:15657130, true);
SetTrieValue(hTrie, "palegreen", any:10025880, true);
SetTrieValue(hTrie, "paleturquoise", any:11529966, true);
SetTrieValue(hTrie, "palevioletred", any:14184595, true);
SetTrieValue(hTrie, "papayawhip", any:16773077, true);
SetTrieValue(hTrie, "peachpuff", any:16767673, true);
SetTrieValue(hTrie, "peru", any:13468991, true);
SetTrieValue(hTrie, "pink", any:16761035, true);
SetTrieValue(hTrie, "plum", any:14524637, true);
SetTrieValue(hTrie, "powderblue", any:11591910, true);
SetTrieValue(hTrie, "purple", any:8388736, true);
SetTrieValue(hTrie, "red", any:16728128, true);
SetTrieValue(hTrie, "rosybrown", any:12357519, true);
SetTrieValue(hTrie, "royalblue", any:4286945, true);
SetTrieValue(hTrie, "saddlebrown", any:9127187, true);
SetTrieValue(hTrie, "salmon", any:16416882, true);
SetTrieValue(hTrie, "sandybrown", any:16032864, true);
SetTrieValue(hTrie, "seagreen", any:3050327, true);
SetTrieValue(hTrie, "seashell", any:16774638, true);
SetTrieValue(hTrie, "sienna", any:10506797, true);
SetTrieValue(hTrie, "silver", any:12632256, true);
SetTrieValue(hTrie, "skyblue", any:8900331, true);
SetTrieValue(hTrie, "slateblue", any:6970061, true);
SetTrieValue(hTrie, "slategray", any:7372944, true);
SetTrieValue(hTrie, "slategrey", any:7372944, true);
SetTrieValue(hTrie, "snow", any:16775930, true);
SetTrieValue(hTrie, "springgreen", any:65407, true);
SetTrieValue(hTrie, "steelblue", any:4620980, true);
SetTrieValue(hTrie, "tan", any:13808780, true);
SetTrieValue(hTrie, "teal", any:32896, true);
SetTrieValue(hTrie, "thistle", any:14204888, true);
SetTrieValue(hTrie, "tomato", any:16737095, true);
SetTrieValue(hTrie, "turquoise", any:4251856, true);
SetTrieValue(hTrie, "violet", any:15631086, true);
SetTrieValue(hTrie, "wheat", any:16113331, true);
SetTrieValue(hTrie, "white", any:16777215, true);
SetTrieValue(hTrie, "whitesmoke", any:16119285, true);
SetTrieValue(hTrie, "yellow", any:16776960, true);
SetTrieValue(hTrie, "yellowgreen", any:10145074, true);
return hTrie;}

Jackmaster

Super Moderator

Posts: 660

wcf.user.option.userOption53: Ja

  • Send private message

2

Sunday, September 15th 2013, 3:32pm

Mit dem Decompiler bekommst du auch keine lauffähige Version.

Zitat lysis compiler:

Quoted

Disclaimer: This is not intended for general use. It is not a replacement for source code. It usually does not produce something that can compile. I don't have time to support it or decompile plugins on request. This is for people interested in reverse engineering technology.

Random778

Trainee

  • "Random778" started this thread

Posts: 127

Occupation: Schüler

wcf.user.option.userOption53: Nein

  • Send private message

3

Sunday, September 15th 2013, 3:39pm

Das ist mir bewusst dennoch dachte ich mir mit etwas Arbeit würde man das schaffen.
Ein Kumpel und ich haben das mal früher geschrieben für unsere Server, nun hat es keiner mehr von uns beiden.
Da wir auch keine lust mehr haben das neu zu schreiben... haben wir versucht es zu decomplieren, doch das hat uns nicht geholfen deshalb versuche ich es hier.

Spoiler Spoiler

new g_iMenu[66];
new bool:vida[66];
new bool:vipchat[66];
new bool:vipchat2[66];
new bool:viptag[66];
new String:clantag[66][32];
new Handle:cookie_ambient;
new Handle:cookie_ambient2;
#pragma semicolon 1
#include <sourcemod>
#include <sdktools>
#include <sdkhooks>
#include <morecolors>
#include <basecomm>

Das haben wir schonmal.

Jackmaster

Super Moderator

Posts: 660

wcf.user.option.userOption53: Ja

  • Send private message

4

Sunday, September 15th 2013, 3:43pm

Naja,
Du wirst es neuschreiben müssen, da du mit dem nicht wirklich was anfangen kannst

Random778

Trainee

  • "Random778" started this thread

Posts: 127

Occupation: Schüler

wcf.user.option.userOption53: Nein

  • Send private message

5

Sunday, September 15th 2013, 3:49pm

Nein,wir haben den Rest auch doch das sollte ein Privates Plugin bleiben.. :(

Spoiler Spoiler

SetClientCookie(client, cookie_ambient, clantag[client][0][0]);
Random778 has attached the following image:
  • bla.PNG

HSFighter

Administrator

Posts: 1,517

Location: Flensburg

Occupation: Industrieelektroniker

wcf.user.option.userOption53: Nein

  • Send private message

6

Sunday, September 15th 2013, 4:09pm

Wenn ihr dieses Plugin geschrieben habt sollte es anhand des Decompilerten
Codes kein Problem für euch sein in sehr kurzer Zeit daraus ein neues Plugin zu entwickeln.

Wenn ihr Sourcepawn codet müsste diese Fehlermeldung unten für euch kein Problem darstellen.
Erst recht wenn der Compiler meckert das ein ";" vergessen wurde!

Mal abgesehen davon fehlt was in dem oben geposteten Code!

Poste doch bitte mal das .smx File!
Dann ich schau mal was ich da machen kann!



-



-
Anti Cheat: www.smacbans.com
Kein direkter Support per PM (nur auf Anforderung)

Random778

Trainee

  • "Random778" started this thread

Posts: 127

Occupation: Schüler

wcf.user.option.userOption53: Nein

  • Send private message

7

Sunday, September 15th 2013, 4:49pm

Könntest du meine Steam Anfrage annehmen dann könnte ich dir, die .SMX Privat senden.
Weil ich nicht möchte das jeder das Plugin besitzt.
Edit:
Er ist zurzeit im Urlaub eigentlich hat er das geschrieben, und ich hatte etwas mit geholfen.
Da er zurzeit nur Internet mit dem Handy hat, kann er mir dabei nicht helfen.

This post has been edited 1 times, last edit by "Random778" (Sep 15th 2013, 5:09pm)


HSFighter

Administrator

Posts: 1,517

Location: Flensburg

Occupation: Industrieelektroniker

wcf.user.option.userOption53: Nein

  • Send private message

8

Sunday, September 15th 2013, 4:57pm

Bitte sende es mir über das Forum als PM.

Dazu wäre eine kleine Beschreibung über die Funktion des Plugins hilfreich.



-
Anti Cheat: www.smacbans.com
Kein direkter Support per PM (nur auf Anforderung)

Random778

Trainee

  • "Random778" started this thread

Posts: 127

Occupation: Schüler

wcf.user.option.userOption53: Nein

  • Send private message

9

Sunday, September 15th 2013, 5:03pm

Alles klar. :)

Similar threads