Jump to content

[zDark] Simple Bind


LondoN eXtream

Recommended Posts

Descriere: Simple Blind [se face ecranul alb]

Autor: dK^aLeX aka x Alecs x

Versiune: 1.0

Download:

#include <amxmodx>
#include <amxmisc>

static const PLUGIN[] = "Simple Blind"
static const VERSION[] = "1.0"
static const AUTHOR[] = " x Alecs x"


public plugin_init()
{
    register_plugin(PLUGIN, VERSION, AUTHOR)
    
    register_concmd("amx_blind", "blind_cmd", ADMIN_KICK, "<name> Blind Player>")
    register_concmd("amx_unblind", "unblind_cmd", ADMIN_KICK, "<name> Unblind Player>")
}

public blind_cmd(id, level, cid)
{
    if(!cmd_access(id, level, cid, 1))
    {
        client_print(id, print_console, "[BLIND] Nu ai acces la aceasta comanda!")
        return;
    }
    
    message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("ScreenFade"), _, id)
    write_short((1<<3) | (1<<8) | (1<<10))
    write_short((1<<3) | (1<<8) | (1<<10))
    write_short((1<<0) | (1<<2))
    write_byte(255)
    write_byte(255)
    write_byte(255)
    write_byte(255)
    message_end()
}

public unblind_cmd(id, level, cid)
{
    if(!cmd_access(id, level, cid, 1))
    {
        client_print(id, print_chat, "[BLIND] Nu ai acces la aceasta comanda!")
        return;
    }
    
    message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("ScreenFade"), _, id)
    write_short(1<<2)
    write_short(0)
    write_short(0)
    write_byte(0)
    write_byte(0)
    write_byte(0)
    write_byte(0)
    message_end()
}

Edit: Schimbati: Bind > Blind

Edited by dK^aL3X
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...