Jump to content
×
×
  • Create New...

Send Player EP Command


Recommended Posts

opend and search cmd.cpp

Kod:
ACMD(do_block_chat_list);

add under

Kod:
ACMD(do_ep_ver);

search

Kod:
{ "block_chat_list",do_block_chat_list, 0, POS_DEAD, GM_PLAYER },

add under

Kod:
{ "ep_g",do_ep_ver, 0, POS_DEAD, GM_IMPLEMENTOR },


open cmd_gm.cpp
add most under end page

Kod:
ACMD (do_ep_ver)
{
    char arg1[256], arg2[256];
    long cnsvalue;
    const char*  Name;
    two_arguments(argument, arg1, sizeof(arg1), arg2, sizeof(arg2));
    if (!*arg1 || !*arg2)
    {
        ch->ChatPacket(CHAT_TYPE_INFO, "/ep_g oyuncu ep");
        return;
    }
    Name = arg1;
    cnsvalue = atoi(arg2);
    LPCHARACTER tch = CHARACTER_MANAGER::instance().FindPC(Name);
    if(!tch)
    {
        ch->ChatPacket(CHAT_TYPE_INFO, "Oyuncu %s bulunamadi.",Name);
        return;
    }
    std::auto_ptr<SQLMsg> msg(DBManager::instance().DirectQuery("UPDATE account.account SET coins = coins + '%ld' WHERE id = '%d'",cnsvalue,tch->GetAID()));
    tch->ChatPacket(CHAT_TYPE_INFO, "Administrator %s hesabiniza %ld ep yukledi.",ch->GetName(),cnsvalue);
    ch->ChatPacket(CHAT_TYPE_INFO, "%ld ep yukledin, bu hesaba; %s.",cnsvalue,tch->GetName());
}

in game
ex;
/ep_g ZacqooLeaven 1881 veya ep_g ZacqooLeaven 1938

command & name & value

7b5ylW.thumb.png.a7b4b9610ad77846673d870

 

  • Love 2
Link to comment
Share on other sites

  • Premium

Was bringt das ?

Ger:

Du kannst coins ingame vergeben

~~ Mein System ~~

Prozessor: Intel® Core™ i7-4790K
Mailboard: Gigabyte GA-Z97X-Gaming 3
Arbeitsspeicher: G.Skill 8GB KIT PC3-17000 DDR3-2133 CL10 Sniper
Festplatte/n: 512GB SSD / 1TB HDD
Grafikkarten: 2x Gigabyte Radeon HD 6970 OC

Kühlung: EKWB Wasserkühlung

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.