Jump to content
GIGN Forum

Nevar Nobanot Spēlētāju.


Recommended Posts

Nu jā pēc nosaukuma jau vien var saprast kas par problēmu. Banojot caur consoli ar amx_banip niks laiks iemesls viss strādā, bet caur amx_banmenu vai ejot caur amxmodmenu>Ban nestrādā bans, srazu var ienākt atpakaļ. Kur varētu būt vaina?

Meklēju šeit pat forumā, bet nekas tamlīdzīgs itkā nebija.

Paldies jau iepriekš.

Link to comment
Share on other sites

tas ir jaizlabo šādi -

atver scripting direktorīju atrodi failu kur rakstits - admincmd.sma atver atrodi kur rakstīts -

register_concmd("amx_kick", "cmdKick", ADMIN_KICK, "<name or #userid> [reason]")

Tālāk sākas vis kas ir saistīs ar BAN - NODZĒS VISU Līdz - register_concmd("amx_slay", "cmdSlay", ADMIN_SLAY, "<name or #userid>")

Un saglaba un compile

EDIT : aizmirsu piebilst ka tur paradisies jauna mapite - compile un tad no tas iznjem ara to admincmd.amxx un iebaz plugins mape

Edited by wallstreet1
Link to comment
Share on other sites

public plugin_init()
{
    register_plugin("Admin Commands", AMXX_VERSION_STR, "AMXX Dev Team")
    register_dictionary("admincmd.txt")
    register_dictionary("common.txt")
    register_concmd("amx_kick", "cmdKick", ADMIN_KICK, "<name or #userid> [reason]")
    register_concmd("amx_ban", "cmdBan", ADMIN_BAN, "<name or #userid> <minutes> [reason]")
    register_concmd("amx_banip", "cmdBanIP", ADMIN_BAN, "<name or #userid> <minutes> [reason]")
    register_concmd("amx_addban", "cmdAddBan", ADMIN_BAN, "<authid or ip> <minutes> [reason]")
    register_concmd("amx_unban", "cmdUnban", ADMIN_BAN, "<authid or ip>")
    register_concmd("amx_slay", "cmdSlay", ADMIN_SLAY, "<name or #userid>")
    register_concmd("amx_slap", "cmdSlap", ADMIN_SLAY, "<name or #userid> [power]")
    register_concmd("amx_leave", "cmdLeave", ADMIN_KICK, "<tag> [tag] [tag] [tag]")
    register_concmd("amx_pause", "cmdPause", ADMIN_CVAR, "- pause or unpause the game")
    register_concmd("amx_who", "cmdWho", ADMIN_ADMIN, "- displays who is on server")
    register_concmd("amx_cvar", "cmdCvar", ADMIN_CVAR, "<cvar> [value]")
    register_concmd("amx_plugins", "cmdPlugins", ADMIN_ADMIN)
    register_concmd("amx_modules", "cmdModules", ADMIN_ADMIN)
    register_concmd("amx_map", "cmdMap", ADMIN_MAP, "<mapname>")
    register_concmd("amx_cfg", "cmdCfg", ADMIN_CFG, "<filename>")
    register_concmd("amx_nick", "cmdNick", ADMIN_SLAY, "<name or #userid> <new nick>")
    register_clcmd("amx_rcon", "cmdRcon", ADMIN_RCON, "<command line>")
    register_clcmd("pauseAck", "cmdLBack")
}

Tur nesanāk neko nodzēst ja tu domā par šo te.

EDITED: Es zinu kā kompilēt un kur paliek nokompilētie faili tik stulbsj au neesu. Tik nezinu kā šo problēmu atrisināt.

Edited by dumidors
Link to comment
Share on other sites

    register_plugin("Admin Commands", AMXX_VERSION_STR, "AMXX Dev Team")

    register_dictionary("admincmd.txt")
    register_dictionary("common.txt")
    register_dictionary("adminhelp.txt")
    register_concmd("amx_kick", "cmdKick", ADMIN_KICK, "<name or #userid> [reason]")
    register_concmd("amx_slay", "cmdSlay", ADMIN_SLAY, "<name or #userid>")
    register_concmd("amx_slap", "cmdSlap", ADMIN_SLAY, "<name or #userid> [power]")
    register_concmd("amx_leave", "cmdLeave", ADMIN_KICK, "<tag> [tag] [tag] [tag]")
    register_concmd("amx_pause", "cmdPause", ADMIN_CVAR, "- pause or unpause the game")
    register_concmd("amx_who", "cmdWho", ADMIN_ADMIN, "- displays who is on server")
    register_concmd("amx_cvar", "cmdCvar", ADMIN_CVAR, "<cvar> [value]")
    register_concmd("amx_plugins", "cmdPlugins", ADMIN_ADMIN)
    register_concmd("amx_modules", "cmdModules", ADMIN_ADMIN)
    register_concmd("amx_map", "cmdMap", ADMIN_MAP, "<mapname>")
    register_concmd("amx_cfg", "cmdCfg", ADMIN_CFG, "<filename>")
    register_concmd("amx_nick", "cmdNick", ADMIN_SLAY, "<name or #userid> <new nick>")
    register_concmd("amx_last", "cmdLast", ADMIN_BAN, "- list the last few disconnected clients info");
    register_clcmd("amx_rcon", "cmdRcon", ADMIN_RCON, "<command line>")
    register_clcmd("amx_showrcon", "cmdShowRcon", ADMIN_RCON, "<command line>")
    register_clcmd("pauseAck", "cmdLBack")

visam jaizskatas sadi

Link to comment
Share on other sites

bļ***

tev ir amxbans.. jo ja tev nav amx bans tad 100% nekas nejies.

Sry bet sākumā īsti neizlasīju topic 1 postu.. domāju ka tev amxbans ;D

Mana vaina..

Edited by wallstreet1
Link to comment
Share on other sites

public plugin_init()
{
    register_plugin("Admin Commands", AMXX_VERSION_STR, "AMXX Dev Team")
    register_dictionary("admincmd.txt")
    register_dictionary("common.txt")
    register_concmd("amx_kick", "cmdKick", ADMIN_KICK, "<name or #userid> [reason]")
    register_concmd("amx_banip", "cmdBanIP", ADMIN_BAN, "<name or #userid> <minutes> [reason]")
    register_concmd("amx_addban", "cmdAddBan", ADMIN_BAN, "<authid or ip> <minutes> [reason]")
    register_concmd("amx_unban", "cmdUnban", ADMIN_BAN, "<authid or ip>")
    register_concmd("amx_slay", "cmdSlay", ADMIN_SLAY, "<name or #userid>")
    register_concmd("amx_slap", "cmdSlap", ADMIN_SLAY, "<name or #userid> [power]")
    register_concmd("amx_leave", "cmdLeave", ADMIN_KICK, "<tag> [tag] [tag] [tag]")
    register_concmd("amx_pause", "cmdPause", ADMIN_CVAR, "- pause or unpause the game")
    register_concmd("amx_who", "cmdWho", ADMIN_ADMIN, "- displays who is on server")
    register_concmd("amx_cvar", "cmdCvar", ADMIN_CVAR, "<cvar> [value]")
    register_concmd("amx_plugins", "cmdPlugins", ADMIN_ADMIN)
    register_concmd("amx_modules", "cmdModules", ADMIN_ADMIN)
    register_concmd("amx_map", "cmdMap", ADMIN_MAP, "<mapname>")
    register_concmd("amx_cfg", "cmdCfg", ADMIN_CFG, "<filename>")
    register_concmd("amx_nick", "cmdNick", ADMIN_SLAY, "<name or #userid> <new nick>")
    register_clcmd("amx_rcon", "cmdRcon", ADMIN_RCON, "<command line>")
    register_clcmd("pauseAck", "cmdLBack")
}

Pēc manām domām.. šitā vajadzētu strādāt..

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...