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

set_user_origin » AmxModX
| |
 RSS
  • OnLine

    : 2
    : 1
    : -
    : crawl Bot

    ?

    • AMX Mod X
    • up.org.ua


  • : Admin : 8-09-2011, 18:47 : 5283

    set_user_origin

    Jump /check /gocheck .
    , get_user_origin, set_user_origin

    fun.inc
    /* Move player to origin. */
    native set_user_origin(index, const origin[3]);


    :
    set_user_origin ( index, origin[3] )

    • index - id
    • origin[3] -


    :
    /* Plugin generated by AMXX-Studio */

    #include <amxmodx>
    #include <amxmisc>
    #include <fun>

    #define PLUGIN "Get user orign and set"
    #define VERSION "1.0"
    #define AUTHOR "Admin"

    new g_origin[3]

    public plugin_init() {
        register_plugin(PLUGIN, VERSION, AUTHOR)
        register_clcmd("say /save","save")
        register_clcmd("say /load","load")
    }
    public save(id){

        get_user_origin(id,g_origin,0)
        client_print(id,print_chat,"Save:X %d, Y %d, Z %d",g_origin[0],g_origin[1],g_origin[2])
    }
    public load(id){

        if(g_origin[0] != 0 ){
            
            set_user_origin(id,g_origin)
            client_print(id,print_chat,"Load:X %d, Y %d, Z %d",g_origin[0],g_origin[1],g_origin[2])
        }
        
    }


    :
    2 :
    • say /save -
    • say /load - .


    , , , . . , g_origin[id][3], . , .
    , .
    .
    set_user_origin
    LEXASOFT

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

    get_user_origin(id,g_origin,3) . ?
    ksv

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

    x z .
    SUMY

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

    ?
    Nikitamitt

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

    : SUMY
    ?

    new OldLocation[3], NewLocation[3];
    get_user_origin(iTarget, OldLocation);
    get_user_origin(id, NewLocation, 3);
    NewLocation[0] += ((NewLocation[0] - OldLocation[0] > 0) ? -20 : 20); //
    NewLocation[1] += ((NewLocation[1] - OldLocation[1] > 0) ? -20 : 20); //
    NewLocation[2] += ((NewLocation[2] - OldLocation[2] > 0) ? -40 : 40); //

    50

    , , .