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

client_print » AmxModX
| |
 RSS
  • OnLine

    : 4
    : 3
    : -
    : crawl Bot

    ?

    • AMX Mod X
    • up.org.ua


  • : Admin : 16-08-2011, 16:25 : 16619

    client_print

    client_print - .
    ,

    amxmodx.inc:
    /* Sends message to player. Set index to 0 to send text globaly. */
    native client_print(index,type,const message[],any:...);


    :
    client_print ( index, type, const message[], ... )

    • index - id 1 32, 0,
    • type - :
      • print_chat -
      • print_console -
      • print_notify - , ( )
      • print_center -

    • const message[] - format ( ) "text", .
    • ... - ( )


    :
    /* Plugin generated by AMXX-Studio */

    #include <amxmodx>
    #include <amxmisc>
    #include <cstrike>

    #define PLUGIN "Send message to player"
    #define VERSION "1.0"
    #define AUTHOR "Admin"

    public plugin_init() {
        register_plugin(PLUGIN, VERSION, AUTHOR)
        register_clcmd("say /chat","in_chat")
        register_clcmd("say /console","in_console")
        register_clcmd("say /notify","in_notify")
        register_clcmd("say /center","in_center")
    }
    public in_chat (id){
        new name[32]
        get_user_name(id,name,31)
        client_print(id,print_chat,"Hello %s!!!",name)
        
    }
    public in_console (id){
        new name[32]
        get_user_name(id,name,31)
        client_print(id,print_console,"Hello %s!!!",name)    
        
    }
    public in_notify (id){
        new name[32]
        get_user_name(id,name,31)
        client_print(id,print_notify,"Hello %s!!!",name)
        
    }
    public in_center (id){
        new name[32]
        get_user_name(id,name,31)
        client_print(id,print_center,"Hello %s!!!",name)
        
    }


    :
    4 , :
    1. say /chat -
    2. say /console -
    3. say /notify - developer ( )
    4. say /center -

    , :)
    , .
    .
    client_print
    gavrilyuc

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

    : any:...
    .
    - ...
    - , "" .
    Admin

    30.07.2011
    ICQ: 980500
    : 507
    : 333
    : -  58  +

    gavrilyuc, ?
    ...
    --------------------

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

    ColorChat
    gavrilyuc

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

    Admin,
    ColorChat - ...
    " ... "
    ? ?
    ...
    C# ( )

    public void PrintF(string s,params object[] pr)
    {
    // pr -
        string message=string.Format(s,pr);
        Console.WriteLine(message);
    }

    , ( )
    .
    , , - ...
    :
    client_cmd(id,print_console,"%L", TEXT, variable1, varialbe2);
    . .
    inc ColorChat , .
    Admin

    30.07.2011
    ICQ: 980500
    : 507
    : 333
    : -  58  +

    gavrilyuc, ...
    ?
    , ...
    --------------------
    gavrilyuc

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

    ,
    , ( client_print)
    ... .
    ColorChat ...

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

    #include <amxmodx>

    new g_msg_say_text, g_maxplayers

    public plugin_init()
    {
    register_clcmd("say /status", "show_status")

    g_msg_say_text = get_user_msgid("SayText")
    g_maxplayers = get_maxplayers()
    }
    public show_status(id)
    {
    colored_print(id, "health %i armor %i weaponid %i", get_user_health(id), get_user_armor(id), get_user_weapon(id))
    }
    stock colored_print(id, message[], any:...)
    {
    new buffer[512]; vformat(buffer, 511, message, 3)

    if(id)
    {
    if(is_user_connected(id) && !is_user_bot(id))
    {
    message_begin(MSG_ONE, g_msg_say_text, _, id)
    write_byte(id)
    write_string(buffer)
    message_end()
    }
    }
    else
    {
    for(new player = 1; player <= g_maxplayers; player++)
    {
    if(is_user_connected(player) && !is_user_bot(player))
    {
    message_begin(MSG_ONE, g_msg_say_text, _, player)
    write_byte(player)
    write_string(buffer)
    message_end()
    }
    }
    }
    }


    any:... - "" ...

    , , ...
    gavrilyuc

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

    ,
    .
    ?
    Admin

    30.07.2011
    ICQ: 980500
    : 507
    : 333
    : -  58  +

    gavrilyuc, ? . . .
    --------------------

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

    , :

    any: - , (Float: bool: ...).

    ... - " ".
    fakemeta.inc
    native engfunc(type, any:...)


    engine.inc
    native DispatchKeyValue(...)


    , .

    , , .