Page 1 of 1

HIDE_MONEY

Posted: 2012 Jul 25 09:27
by nuodas159
Sveiki,
Ar įmanomą padaryti, kad išvis nerodytų pinigų? Nes tai padarius ir darant round restartą, atsirandą pinigai, bet paskiau pradingsta kai baigiasi restartas t.y. keliom sekundėm jis atsiranda ir pradingsta.

Re: HIDE_MONEY

Posted: 2012 Jul 25 11:29
by Erikas

Re: HIDE_MONEY

Posted: 2012 Jul 28 16:16
by aaarnas

Re: HIDE_MONEY

Posted: 2012 Jul 31 08:54
by nuodas159

Code: Select all

public Task_ShowRestart(taskid, id){    if(restart_count > 0)    {                //  r,   g, b,   x,   y,  eff, time        set_hudmessage(200, 0, 0, -1.0, 0.25, 0, 6.0, 0.1, 0.6, 0.7)        show_hudmessage(0, "%L", LANG_SERVER, "RESTART_WILL", restart_count)    }    else if(restart_count == 0)    {        set_hudmessage(200, 0, 0, -1.0, 0.25, 1, 6.0, 6.0, 0.1, 1.5)        show_hudmessage(0, "%L", LANG_SERVER, "RESTART", "RESTART")        restarting = true        server_cmd("sv_restart 1")        message_begin(MSG_ONE, msg_hideweapon, _, taskid)        write_byte(HIDE_MONEY)        message_end()        remove_task(taskid)    }    restart_count--}
Crashina taip padarius :/

Code: Select all

  MSG_ONE or MSG_ONE_UNRELIABLE with no target entity

Re: HIDE_MONEY

Posted: 2012 Aug 02 14:01
by aaarnas
Ten kur taskid turi būti žaidėjo ID, kuriam šitas pakeitimas daromas.
Ten ne užduoties ID koks? Pagal error grąžina 0 man atrodo tenais.
Be to, nesurado didelio skirtumo, bet naudok MSG_ONE_UNRELIABLE

Re: HIDE_MONEY

Posted: 2012 Aug 02 18:41
by nuodas159
aaarnas wrote:Ten kur taskid turi būti žaidėjo ID, kuriam šitas pakeitimas daromas.
Ten ne užduoties ID koks? Pagal error grąžina 0 man atrodo tenais.
Be to, nesurado didelio skirtumo, bet naudok MSG_ONE_UNRELIABLE
Na nežinau kažkodėl neveikia.

Code: Select all

        if(pev(id,pev_flags) & FL_CLIENT)        {            message_begin(MSG_ONE_UNRELIABLE, msg_hideweapon, _, id)            write_byte(HIDE_MONEY)            message_end()        }

Re: HIDE_MONEY

Posted: 2012 Aug 09 11:16
by aaarnas
Kam tas fl_client? Bent iškviečiama ta vieta?