Tātad ja Tavam serverim līdz pašai pietrūks tikai viena lieta - saīsinātas Admina komandas, tad šī pamācība ir domāta Tev. Atveram sava servera "scropting"mapi(piemēram C:PUB serverisaddonsamxmodxscripting)
Tālāk atveram piemēram admincmd.sma dailu un atrodam rindas
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, " [reason]")
register_concmd("amx_ban", "cmdBan", ADMIN_BAN, " [reason]")
register_concmd("amx_banip", "cmdBanIP", ADMIN_BAN, " [reason]")
register_concmd("amx_addban", "cmdAddBan", ADMIN_BAN, " [reason]")
register_concmd("amx_unban", "cmdUnban", ADMIN_BAN, "")
register_concmd("amx_slay", "cmdSlay", ADMIN_SLAY, "")
register_concmd("amx_slap", "cmdSlap", ADMIN_SLAY, " [power]")
register_concmd("amx_leave", "cmdLeave", ADMIN_KICK, " [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, " [value]")
register_concmd("amx_plugins", "cmdPlugins", ADMIN_ADMIN)
register_concmd("amx_modules", "cmdModules", ADMIN_ADMIN)
register_concmd("amx_map", "cmdMap", ADMIN_MAP, "")
register_concmd("amx_cfg", "cmdCfg", ADMIN_CFG, "")
register_concmd("amx_nick", "cmdNick", ADMIN_SLAY, " ")
register_clcmd("amx_rcon", "cmdRcon", ADMIN_RCON, "")
register_clcmd("amx_showrcon", "cmdShowRcon", ADMIN_RCON, "") Un saīsinam uz :
register_plugin("Admin Commands", AMXX_VERSION_STR, "AMXX Dev Team")
register_dictionary("admincmd.txt")
register_dictionary("common.txt")
register_concmd("xkick", "cmdKick", ADMIN_KICK, " [reason]")
register_concmd("xban", "cmdBan", ADMIN_BAN, " [reason]")
register_concmd("amx_banipxxxx", "cmdBanIP", ADMIN_BAN, " [reason]")
register_concmd("xaddban", "cmdAddBan", ADMIN_BAN, " [reason]")
register_concmd("xunban", "cmdUnban", ADMIN_BAN, "")
register_concmd("xslay", "cmdSlay", ADMIN_SLAY, "")
register_concmd("xslap", "cmdSlap", ADMIN_SLAY, " [power]")
register_concmd("xleave", "cmdLeave", ADMIN_KICK, " [tag] [tag] [tag]")
register_concmd("xpause", "cmdPause", ADMIN_CVAR, "- pause or unpause the game")
register_concmd("xwho", "cmdWho", ADMIN_ADMIN, "- displays who is on server")
register_concmd("xcvar", "cmdCvar", ADMIN_CVAR, " [value]")
register_concmd("xplugins", "cmdPlugins", ADMIN_ADMIN)
register_concmd("xmodules", "cmdModules", ADMIN_ADMIN)
register_concmd("xmap", "cmdMap", ADMIN_MAP, "")
register_concmd("xcfg", "cmdCfg", ADMIN_CFG, "")
register_concmd("xnick", "cmdNick", ADMIN_SLAY, " ")
register_clcmd("xrcon", "cmdRcon", ADMIN_RCON, "")
register_clcmd("xshowrcon", "cmdShowRcon", ADMIN_RCON, "") Veram dailu ciet un saglabājam izmaiņas. Tālāk atrodam tajā pašā mapē "compile.exe", atveram to.
'
Tagad šī aplikācija visus .sma failus pārveidos pa .amxx.
Kad viss būs pārveidots, tev konsolē parādīsies "Press Enter to exit...".... nekas cits neatliks kā vien spiest Enter
Tālāk pārveidotos .amxx dailus vajag mest plugins mapē(C:PUB serveriscstrikeaddonsamxmodxplugins)
Kopējot tos iekšā Tev piedāvais vai aizvietot vecos ar šiem. Droši spiežam YES(YES TO ALL).
Faili, kuros drīkst kaut ko mainīt ir :
*admincmd.sma
*adminchat.sma
*adminvote.sma
*adminhelp.sma
*gandrīz jebkuru pluginu
Apsveicu, Tev komandas ir saīsinātas uz x
Piezīme - ja pēkšņi visiem Adminiem serverī parāda "You Have No acces to that command", tad zini, esi pārveidojis pa daudz failus....
Pamācību veidoja: casadelli