Jump to content

LuK.ZEW #

Membru
  • Posts

    3,317
  • Joined

  • Last visited

  • Days Won

    9

Posts posted by LuK.ZEW #

  1. Va rog si va avertizez in acelasi timp sa aveti grija cu acest mic "escroc" , nici varsta de buletin nu are si se gandeste numai la prostii , numai la cum sa fraiereasca pe altii

    Oare acest om vorbeste sa fie spus? Eu unul nu prea cred. Nu are rost sa stau sa-mi pierd timpul explicandu-ti de ce nu vreau sa te vad cu grad pe comunitatea rangfort . Bafta xD

     

    #Contra.

    • Like 1
  2. 
    

    #include <amxmodx>

     

    new const TAG[] = "[TAG]";

     

    new bool:vip_free, g_msg_saytext;

     

    public plugin_init()

    {

    register_plugin("Free VIP Giver", "2.0", "cyby")

    check_time()

    set_task(60.0, "check_time", _, _, _, "b")

    set_task(1.0, "hud_mess", _, _, _, "b")

     

    g_msg_saytext = get_user_msgid("SayText");

    }

     

    public check_time()

    {

    static preluare_ora[3], ora;

    get_time("%H", preluare_ora, 2)

    ora = str_to_num(preluare_ora)

    if(21 >= ora || ora < 11)

    {

    if(!vip_free)

    color(0, ".v%s.g Eventul.e Free VIP.g a fost activat!", TAG)

    vip_free = true

    server_cmd("amx_default_access ^"t^"")

    }

    else

    {

    if(vip_free)

    color(0, ".v%s.g Eventul.e Free VIP.g a fost dezactivat!", TAG)

    vip_free = false

    server_cmd("amx_default_access ^"z^"")

    }

    server_cmd("amx_reloadadmins")

    }

     

    public hud_mess()

    {

    if(vip_free)

    {

    set_hudmessage(random(256), random(256), random(256), 0.00, 0.17, 1, 1.0, 1.0, 0.1, 0.1)

    show_hudmessage(0, "Event V.I.P Free !")

    }

    }

     

    stock color(const id, const input[], any:...)

    {

    new count = 1, players[32]

    static msg[191]

    vformat(msg, 190, input, 3)

     

    replace_all(msg, 190, ".v", "^4")

    replace_all(msg, 190, ".g", "^1")

    replace_all(msg, 190, ".e", "^3")

     

    if(id) players[0] = id; else get_players(players, count, "ch")

    {

    for(new i = 0; i < count; i++)

    {

    if(is_user_connected(players))

    {

    message_begin(MSG_ONE_UNRELIABLE, g_msg_saytext, _, players)

    write_byte(players);

    write_string(msg);

    message_end();

    }

    }

    }

    }

    Editezi ora , dupa bunul plac :

    if(21 >= ora || ora < 11)
  3. #include < amxmodx >

    #include < amxmisc >

    #include < cstrike >

    #include < fun >

     

    public plugin_init ( )

    register_event ( "DeathMsg", "abc", "a" );

     

    public abc ( )

    {

    new i = read_data ( 1 );

    new j = read_data ( 2 );

     

    if ( i == j || !is_user_alive ( i ) )

    return PLUGIN_HANDLED;

     

    set_user_health ( i, get_user_health ( i ) + 10 );

    set_user_armor ( i, get_user_armor ( i ) + 15 );

    cs_set_user_money ( i, cs_get_user_money ( i ) + 300 );

     

    chat_color(0,"!t[Kill Reward] HP: 15 | AP: 15 | 300 $" );

     

    return PLUGIN_HANDLED;

    }

     

    stock chat_color(const id, const input[], any:...)

    {

    new count = 1, players[32]

    static msg[320]

    vformat(msg, 190, input, 3)

    replace_all(msg, 190, "!g", "^4")

    replace_all(msg, 190, "!n", "^1")

    replace_all(msg, 190, "!t", "^3")

    replace_all(msg, 190, "!t2", "^0")

    if (id) players[0] = id; else get_players(players, count, "ch")

    {

    for (new i = 0; i < count; i++)

    {

    if (is_user_connected(players))

    {

    message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players)

    write_byte(players)

    write_string(msg)

    message_end()

    }

    }

    }

    }

×
×
  • Create New...