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

get_user_time » AmxModX
| |
 RSS
  • OnLine

    : 7
    : 6
    : -
    : crawl Bot

    ?

    • AMX Mod X
    • up.org.ua


  • : Admin : 28-11-2011, 01:16 : 3905

    get_user_time

    get_user_time , .
    . .
    .

    amxxmodx.inc:
    /* Returns player playing time in seconds. 
    * If flag is set then result is without connection time. */
    native get_user_time(index, flag = 0);


    :
    get_user_time ( index, [ flag ] )

    • index - id
    • [ flag ] - 1 0, .


    :
    Native

    :
    /* Plugin generated by AMXX-Studio */

    #include <amxmodx>
    #include <amxmisc>

    #define PLUGIN "[amxmodx.inc] get_user_time"
    #define VERSION "1.0"
    #define AUTHOR "Admin"

    public plugin_init() {

        register_plugin(PLUGIN, VERSION, AUTHOR)

        register_clcmd("say /my_time","my_time_on_server")
    }
    public my_time_on_server(id){
        
        new my_time = get_user_time(id)

        client_print(id,print_chat,"My time in server: %d sec",my_time)
        
    }


    :
    , say /my_time, , .
    , , 0.
    .
    , .
    .
    get_user_time