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

    : 2
    : 1
    : -
    : crawl Bot

    ?

    • AMX Mod X
    • up.org.ua


  • : Admin : 23-08-2011, 00:35 : 6138

    get_playersnum

    get_playersnum - / .
    , .
    .

    amxmodx.inc:
    /* Returns number of players put in server. 
    * If flag is set then also connecting are counted. */
    native get_playersnum(flag=0);


    :
    get_playersnum ( [ flag ] )

    ( 0), 1 - , .

    :

    /* Plugin generated by AMXX-Studio */

    #include <amxmodx>
    #include <amxmisc>

    #define PLUGIN "Get Players Num"
    #define VERSION "1.0"
    #define AUTHOR "Admin"

    public plugin_init() {
        register_plugin(PLUGIN, VERSION, AUTHOR)
        
        register_clcmd("say /online","players_online")
    }
    public players_online(id){
        
        new players
        players = get_playersnum()
        
        set_hudmessage(0, 255, 0, 0.05, 0.62, 0, 6.0, 12.0)
        show_hudmessage(id, "Players online: %d",players)
        
        
    }

    :
    get_playersnum, :
    / ?!

    say /online, players_online.
    players, / .
    , /, , ( , , ) +1 , 1 .

    , , id //HLTV get_players

    , , .
    , .
    .
    get_playersnum