SAPE ERROR: Не могу подключиться к серверу: dispenser-01.saperu.net/code.php?user=836f97673aa6aa25a35b5029263ee232&host=amxxmodx.ru&charset=windows-1251&format=serialize, type: file_get_contents

SAPE ERROR: Не могу подключиться к серверу: dispenser-02.saperu.net/code.php?user=836f97673aa6aa25a35b5029263ee232&host=amxxmodx.ru&charset=windows-1251&format=serialize, type: file_get_contents

change_task » AmxModX
| |
 RSS
  • OnLine

    : 3
    : 2
    : -
    : crawl Bot

    ?

    • AMX Mod X
    • up.org.ua


  • : Admin : 4-09-2011, 14:41 : 2625

    change_task

    , change_task , .
    , .

    amxmodx.inc:
    /* Changes the time of a task */
    native change_task(id = 0, Float:newTime=1.0, outside = 0);


    :
    change_task ( id = 0, Float:newTime=1.0, outside = 0 )

    • id = 0 - id
    • Float:newTime=1.0 - ( !)
    • outside = 0 - id


    :
    /* Plugin generated by AMXX-Studio */

    #include <amxmodx>
    #include <amxmisc>

    #define PLUGIN "Chenge task"
    #define VERSION "1.0"
    #define AUTHOR "Admin"

    new Count

    public plugin_init() {
        register_plugin(PLUGIN, VERSION, AUTHOR)
        
        register_concmd("set-task","set")
        register_concmd("chenge-task","task_chenge")
    }
    public set(){
        set_task(1.0,"demo_time",1,_,_,"b")
    }
    public task_chenge(){
        change_task(1,2.0)
    }

    public demo_time(){
        Count++
        server_print("[Demo task run] Counter: %d",Count)
    }


    :
    2 :
    1. set-task - 1
    2. chenge-task - 1.0 2.0
    , 1 .
    , id 1, 1 2 2 .
    .

    , .
    , .
    .
    change_task
    wypukt

    --
    ICQ: --
    : 0
    : 0
    : -  0  +

    , , , 5 , 4, 3...

    , , .