Item Giver

Categoria cu cereri de pluginuri si nu numai.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Forum rules
Accesează link-ul pentru a putea vedea regulile forumului

Daca doriti sa vi se modifice un plugin, va rugam postati aici .
Post Reply
KoaLLa xD
Membru, skill +1
Membru, skill +1
Posts: 429
Joined: 14 Jan 2011, 14:08
Detinator Steam: Da
Has thanked: 48 times
Been thanked: 13 times

15 Jul 2012, 20:08

Salut extream

Am si eu nevoie de un plugin care sa dea la inceputul fiecare runde :

-Un He
-2 Flash
-Un Smoke

*Doar LA Ct !

Multumesc !
...
RoyalServer
User avatar
tre3fla
Membru eXtream
Membru eXtream
Posts: 5317
Joined: 27 May 2012, 11:15
Detinator Steam: Da
CS Status: Allah Akbar !
Detinator server CS: Nu
SteamID: /id/tre3fla_xxx
Has thanked: 14 times
Been thanked: 129 times

16 Jul 2012, 01:24

| Afiseaza codul
#include <amxmodx>
#include <cstrike>
#include <engine>
#include <fun>

#define VERSION "0.0.2"

#define MAX_PLAYERS    32


public plugin_init()
{
    register_plugin("Nade Giver", VERSION, "ConnorMcLeod")

    new iEnt = create_entity("info_target")
    entity_set_string(iEnt, EV_SZ_classname, "nade_giver")

    register_think("nade_giver", "task_give_nades")
}

public task_give_nades(iEnt)
{
    static id

    if( ++id > MAX_PLAYERS )
    {
        id = 1
    }

    if( is_user_alive(id) )
    {
        give_item(id, "weapon_hegrenade")
        give_item(id, "weapon_smokegrenade")
        give_item(id, "weapon_flashbang")
        cs_set_user_bpammo(id, CSW_FLASHBANG, 2)
    }

}


Incearca asta, l-am gasit pe Allied Modders...
Post Reply

Return to “Cereri”

  • Information