←  Problemy

AMXX.pl: Support AMX Mod X i SourceMod

»

Problem

  • +
  • -
Remik - zdjęcie Remik 22.03.2019

Witam mam mały problem z powodem własnego bana bo nie trybi jak chce wpisac a w consoli mam to pomoże jakaś osoba dam +1 

 

Server tried to send invalid command:"messagemode amx_custom

Odpowiedz

  • +
  • -
Remik - zdjęcie Remik 22.03.2019

#include <amxmodx>

#define PLUGIN "Say, Say_Team jako Messagemode"
#define VERSION "1.0"
#define AUTHOR "oeN."

enum MESSAGEMODE
{
    ADD_POINTS
}
new g_iMessagemode[33];

public plugin_init()
{
    register_clcmd("say", "cmdSayChat");
    register_clcmd("say_team", "cmdSayChat");
}

public Menu(id)
{
    new menu = menu_create("Menu", "MenuHandler");
    menu_additem(menu, "Add Points");
    menu_display(id, menu);
}

public MenuHandler(id, menu, item)
{
    if(item == MENU_EXIT)
{
        menu_destroy(menu);
        return PLUGIN_HANDLED;
    }

    g_iMessagemode[id] = ADD_POINTS;
    client_print(id, print_center, "Wpisz na chat ilosc punktow.");

    menu_destroy(menu);
    return PLUGIN_CONTINUE;
}

public AddPoints(id, message[])
{
    new points = str_to_num(message);
    
    g_iPoints
[id] += points;
}

public cmdSayChat(id)
{
    if(!is_user_connected(id)) return PLUGIN_CONTINUE;

    new message[192];
    read_args(message, 191);
    remove_quotes(message);
    
    
switch(g_iMessagemode[id])
    {
        case ADD_POINTS: AddPoints(id, message);
    }
    
    
return PLUGIN_HANDLED;
}

 

to bedzie działać???

Odpowiedz

  • +
  • -
Remik - zdjęcie Remik 22.03.2019

Do zamknięcia rozwiązane 

 

 

Odpowiedz