19.12.2015, 22:13
The last list element must not have a comma on it (last character).
pawn Код:
enum AdminInfo {
AdminLevel,
AdminLevelDesc[64]
};
new AdminFlagDescription[][AdminInfo] =
{
{0, "Nothing"},
{1, "Something"},
{2, "Moderator"},
{3, "Trial Moderator"},
{4, "Moderator"},
{5, "Administrator"},
{6, "Refund Admin"},
{7, "Head Admin"},
{8, "Lead Admin"},
{9, "Co-Founder"},
{10, "Founder"}
};
enum EAdminCmds {
ECmdName[32],
ECmdNewbLevel,
AdminLevel,
ECmdMinConnectTime,
ECmdMaxConnectTime,
ECmdMinLevel
};
new admincmds[][EAdminCmds] = {
{"goto", 2, 1,0, 0, 0},
{"gethere", 2, 1,0, 0, 0},
{"destroyplayercar", 2, 7,0, 0, 0},
{"createplayercar", 2, 7,0, 0, 0},
{"checkip", 2, 1,0, 0, 0},
{"ahide", 2, 3,0, 0, 0},
{"kick", 2, 1,0, 0, 0},
{"ban", 2, 1,0, 0, 0},
{"unban", 2, 1,0, 0, 0},
{"poke", 2, 1,0, 0, 0},
{"makeadmin", 2, 7,0, 0, 0},
{"a", 2, 1,0, 0, 0},
{"setadmintitle", 2, 5,0, 0, 0},
{"id", 2, 2,0, 0, 0},
{"aduty", 2, 1,0, 0, 0},
{"getcar", 2, 1,0, 0, 0},
{"gotov", 2, 1,0, 0, 0},
{"respawnv", 2, 1,0, 0, 0},
{"freeze", 2, 1,0, 0, 0},
{"setskin", 2, 1,0, 0, 0},
{"restartserver", 2, 7,0, 0, 0},
{"check", 2, 1,0, 0, 0},
{"setworld", 2, 1,0, 0, 0},
{"gotols", 2, 1,0, 0, 0},
{"agivelicense", 2, 5,0, 0, 0}
};