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_timeleft » AmxModX
| |
 RSS
  • OnLine

    : 7
    : 6
    : -
    : crawl Bot

    ?

    • AMX Mod X
    • up.org.ua


  • : Admin : 16-08-2011, 17:07 : 3645

    get_timeleft

    get_timeleft - , , .

    amxmodx.inc:
    /* Returns time remaining on map in seconds. */
    native get_timeleft();


    :
    get_timeleft ( )


    :

    #include <amxmodx>
    #include <amxmisc>

    #define PLUGIN "Get time left"
    #define VERSION "1.0"
    #define AUTHOR "Admin"


    public plugin_init() {
        register_plugin(PLUGIN, VERSION, AUTHOR)
        
        register_clcmd("say /time-left","map_timeleft")
    }
    public map_timeleft(id){
        
        new MapTime = get_timeleft()
        
        client_print(id,print_center,"Time left is: %d:%02d",(MapTime / 60), (MapTime % 60))

    }


    :
    amxmodx , t timeleft,
    say /time-left
    .
    , :), .

    %d:%02d",(MapTime / 60), (MapTime % 60).
    :
    , .
    , .
    .
    get_timeleft