Page 1 of 1

Reikia komandos

Posted: 2014 Aug 03 16:37
by iFreak
Sveiki , tiesiog man kodo , jeigu parašai /admin ar /vip išmestum .txt failą.

Re: Reikia komandos

Posted: 2014 Aug 03 18:37
by NZT
Sveikas,
štai pirkimo meniu: http://amxmodx.lt/download/file.php?id=727
arba toks:

Code: Select all

#include <amxmodx>#include <amxmisc> #define PLUGIN "Privilegijos"#define VERSION "1.0"#define AUTHOR "Amxmodx.lt" new const commands[][] = {    {"/vip", "vip.txt"},    {"/admin", "admin.txt"}} public plugin_init() {    register_plugin(PLUGIN, VERSION, AUTHOR)        register_clcmd("say", "check_say")} public check_say(id) {     static i, message[50]    read_argv(1, message, charsmax(message))        for (i=0; i<sizeof(commands); i++) {                if (equali(message, commands[i][0], strlen(commands[i][0]))) {                        show_motd(id, commands[i][1])            break;        }    }}

Re: Reikia komandos

Posted: 2014 Aug 04 22:43
by iFreak
O jei norėčiau dar vienos , tai man taip rašyt

Code: Select all

new const commands[][] = {    {"/vip", "vip.txt"},    {"/admin", "admin.txt"}    {"/rules", "rules.txt"}

Re: Reikia komandos

Posted: 2014 Aug 05 16:40
by laimiukas3
iFreak wrote:O jei norėčiau dar vienos , tai man taip rašyt

Code: Select all

new const commands[][] = {    {"/vip", "vip.txt"},    {"/admin", "admin.txt"}    {"/rules", "rules.txt"}
taip