Guys i need modify this plugins,
give players who have to name --- arena.nick.ro give exp for fake ranks plugins, and acces bhop and 10/20 minutes give extra Experience level up
i have one exampler bad iti decompiler...
Spoiler
public PlVers:__version =
{
version = 5,
filevers = "1.10.0.6484",
date = "06/16/2020",
time = "02:03:09"
};
new Float:NULL_VECTOR[3];
new String:NULL_STRING[16];
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_cprefs =
{
name = "Client Preferences",
file = "clientprefs.ext",
autoload = 1,
required = 1,
};
public Extension:__ext_cstrike =
{
name = "cstrike",
file = "games/game.cstrike.ext",
autoload = 0,
required = 1,
};
public SharedPlugin:__pl_levelsranks =
{
name = "levelsranks",
file = "levelsranks.smx",
required = 1,
};
new ConVar:cv_ServerDNS;
new ConVar:cv_ShowAds;
new ConVar:cv_xpPerRound;
public Plugin:myinfo =
{
name = "GoldMember (DNS Benefits)",
description = "Benefits for having DNS in STEAM Name",
author = "xSLOW + AlQaida",
version = "1.3",
url = "https://steamcommunity.com/id/imslow2k17/"
};
MoveType:GetEntityMoveType(entity)
{
static bool:gotconfig;
static String:datamap[128];
if (!gotconfig)
{
new GameData:gc = GameData.GameData("core.games");
new bool:exists = GameData.GetKeyValue(gc, "m_MoveType", datamap, 32);
CloseHandle(gc);
gc = 0;
if (!exists)
{
strcopy(datamap, 32, "m_MoveType");
}
gotconfig = true;
}
return GetEntProp(entity, 1, datamap, 4, 0);
}
bool:HasDNS(client)
{
new StringlayerName[128];
new String:buffer[128];
ConVar.GetString(cv_ServerDNS, buffer, 32);
GetClientName(client, PlayerName, 32);
if (StrContains(PlayerName, buffer, false) > -1)
{
return 1;
}
return 0;
}
public void:OnPluginStart()
{
cv_ServerDNS = CreateConVar("sm_goldmember_serverdns", "nume.ro", "Server's DNS to get GoldMember", 256, false, 0.0, false, 0.0);
cv_ShowAds = CreateConVar("sm_goldmember_showads", "90.0", "Show messages about goldmember? If yes, enter a float value of how often should these ads be shown, either enter 0.0 to disable this option", 256, false, 0.0, false, 0.0);
cv_xpPerRound = CreateConVar("sm_goldmember_xpperround", "1", "How much xp to give to goldmembers", 256, false, 0.0, false, 0.0);
if (ConVar.FloatValue.get(cv_ShowAds) > 0.0)
{
CreateTimer(ConVar.FloatValue.get(cv_ShowAds) , 11, 0, 1);
}
AutoExecConfig(true, "goldmember", "sourcemod");
return 0;
}
public Action:Timer_Ads(Handle:timer, any:client)
{
new StringNSbuffer[128];
ConVar.GetString(cv_ServerDNS, DNSbuffer, 32);
new i = 1;
while (i <= MaxClients)
{
new var1;
if (IsClientValid(i) && HasDNS(i))
{
PrintToChat(i, "\x01\x0B\x01 \x05» \x08Adauga \x03'%s' \x08la numele tau pentru beneficii \x08(\x10bhop \x08+ \x10extra xp\x0", DNSbuffer);
}
else
{
new var2;
if (IsClientValid(i) && HasDNS(i) == 1)
{
new xp = GetConVarInt(cv_xpPerRound);
LR_ChangeClientValue(i, xp);
PrintToChat(i, "\x01\x0B\x01 \x05» \x08Ai primit extra XP din partea tag-ului [\x07 nume.ro\x08]");
}
}
i++;
}
return 0;
}