mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 06:15:37 +03:00
Improving Code
This commit is contained in:
parent
59a1b018ed
commit
5d2b738ec1
@ -422,14 +422,12 @@ stock show_activity_key(const KeyWithoutName[], const KeyWithName[], const ___Ad
|
|||||||
|
|
||||||
stock colored_menus()
|
stock colored_menus()
|
||||||
{
|
{
|
||||||
static const ModNames[][] = { "cstrike", "czero", "dmc", "dod", "tfc", "valve" };
|
new const ModNames[][] = { "cstrike", "czero", "dmc", "dod", "tfc", "valve" };
|
||||||
static const ModsCount = sizeof(ModNames);
|
new ModName[32];
|
||||||
|
|
||||||
static ModName[32], Iterator = 0;
|
get_modname(ModName, charsmax(ModName));
|
||||||
|
|
||||||
get_modname(ModName, 31);
|
for (new Iterator = 0; Iterator < sizeof(ModNames); Iterator++)
|
||||||
|
|
||||||
for (Iterator = 0; Iterator < ModsCount; Iterator++)
|
|
||||||
{
|
{
|
||||||
if (equal(ModName, ModNames[Iterator]))
|
if (equal(ModName, ModNames[Iterator]))
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user