PADEKITT !!!!!!!

Forumas skirtas spręsti problemas iškilusias su CS 1.6 serveriais.
User avatar
artiom555
Jau po truputį tampa savu
Posts: 112
Joined: 2014 Apr 23 21:55
Skype: artem.sharkovic
Contact:

PADEKITT !!!!!!!

Post by artiom555 »

Sveiki , gal kas nors galit padet paredagot plugina?
Cia CSDM vip man reikia kad vipas po respawn gautu tik 1 granata Hegranata o ne fb ir sg.

Va sma failas http://www.failai.lt/ttienyikpuw9/vipmeniu.sma.htm
:(

User avatar
laimiukas3
Moderatorius
Posts: 4569
Joined: 2012 Aug 03 01:12
Skype: laimiukas3
Location: Vilnius
Contact:

Re: PADEKITT !!!!!!!

Post by laimiukas3 »

pamegink :D

Code: Select all

#include <amxmodx>#include <amxmisc>#include <cstrike>#include <fun>#include <hamsandwich> #define Keysrod (1<<0) | (1<<1) | (1<<2) | (1<<9)#define DAMAGE_RECIEVED static const COLOR[] = "^x03"static const CONTACT[] = "Skype" new bool:g_vipmenunew bool:g_grenades new mpdnew mkbnew mhb new health_addnew health_add_hsnew health_max new nKillernew nKiller_hpnew nHp_addnew nHp_max new AWP_Activenew Menu_Active new bool:HasC4[33]//new bool:HasFLASHBANG[33]new bool:HasHEGRENADE[33]//new bool:HasSMOKEGRENADE[33] new round = 1new MsgSayTextnew maxplayersnew g_HudSync_Damage #if defined DAMAGE_RECIEVED    new g_HudSync_Damage2#endif public plugin_init(){    register_plugin("VIP", "2.06", "Godlike.lt")    register_cvar("amx_contactinfo", CONTACT, FCVAR_SERVER)     mpd = register_cvar("amx_vip_mpd", "3")    mkb = register_cvar("amx_vip_mkb", "100")    mhb = register_cvar("amx_vip_mhb", "200")     health_add  = register_cvar("amx_vip_hp", "5")    health_add_hs   = register_cvar("amx_vip_hp_hs", "10")    health_max  = register_cvar("amx_vip_hp_max", "100")     AWP_Active  = register_cvar("amx_vip_awp_active", "1")    Menu_Active = register_cvar("amx_vip_menu_active", "1")     register_event("Damage", "on_damage", "b", "2!0", "3=0", "4!0")    register_event("Damage", "Damage", "b")    register_event("DeathMsg", "death_msg", "a")    register_event("DeathMsg", "hook_death", "a", "1>0")     register_event("CurWeapon", "Cur_Weapon", "be", "1=1")     //register_logevent("logevent_Round_Start", 2, "1=Round_Start")    // event'as (ivykis) - round'o pradzia kai atsispawn'ina zaidejas per kuri yra parodomas meniu    RegisterHam(Ham_Spawn, "player", "logevent_Round_Start", 1)    register_menucmd(register_menuid("rod"), Keysrod, "Pressedrod")     register_clcmd("awp", "HandleCmd")    register_clcmd("sg550", "HandleCmd")    register_clcmd("g3sg1", "HandleCmd")     register_clcmd("say /noriuvip", "ShowMotd")    register_clcmd("say", "handle_say")     new mapname[32]    get_mapname(mapname, 31)     if (equali(mapname, "cs_", 3) || equali(mapname, "de_", 3) || equali(mapname, "knas_", 3) || equali(mapname, "mini_", 3) || equali(mapname, "surf_", 3))    {        g_vipmenu = false        g_grenades = true    }     if (equali(mapname, "35hp_", 3) || equali(mapname, "aim_", 3) || equali(mapname, "awp_", 3))    {        g_vipmenu = false        g_grenades = false    }     else if (equali(mapname, "aim_", 3) || equali(mapname, "fy_", 3))    {        g_vipmenu = false        g_grenades = true    }     MsgSayText = get_user_msgid("SayText")    maxplayers = get_maxplayers()     g_HudSync_Damage = CreateHudSyncObj()     #if defined DAMAGE_RECIEVED    g_HudSync_Damage2 = CreateHudSyncObj()    #endif} public on_damage(id){    new attacker = get_user_attacker(id)     #if defined DAMAGE_RECIEVED    if (is_user_connected(id) && is_user_connected(attacker))     if (get_user_flags(attacker) & ADMIN_LEVEL_H)    {        new damage = read_data(2)         set_hudmessage(255, 0, 0, 0.45, 0.50, 2, 0.1, 3.0, 0.1, 0.1, -1)        ShowSyncHudMsg(id, g_HudSync_Damage2, "%i^n", damage)     #else    if (is_user_connected(attacker) && if(get_user_flags(attacker) & ADMIN_LEVEL_H))    {        new damage = read_data(2)    #endif        set_hudmessage(0, 100, 200, -1.0, 0.55, 2, 0.1, 3.0, 0.02, 0.02, -1)        ShowSyncHudMsg(attacker, g_HudSync_Damage, "%i^n", damage)    }} public Damage(id){    new weapon, hitpoint, attacker = get_user_attacker(id, weapon, hitpoint)     if(attacker <= maxplayers && is_user_alive(attacker) && attacker != id)     if(get_user_flags(attacker) & ADMIN_LEVEL_H)    {        new money = read_data(2) * get_pcvar_num(mpd)         if (hitpoint == 1)            money += get_pcvar_num(mhb)         cs_set_user_money(attacker, cs_get_user_money(attacker) + money)    }} public death_msg(){    if (read_data(1) <= maxplayers && read_data(1) && read_data(1) != read_data(2))        cs_set_user_money(read_data(1), cs_get_user_money(read_data(1)) + get_pcvar_num(mkb) - 300)} public hook_death(){    nKiller = read_data(1)     if ((read_data(3) == 1) && (read_data(5) == 0))    {        nHp_add = get_pcvar_num(health_add_hs)    }     else        nHp_add = get_pcvar_num(health_add)     nHp_max = get_pcvar_num(health_max)     if(!(get_user_flags(nKiller) & ADMIN_LEVEL_H))        return     nKiller_hp = get_user_health(nKiller)    nKiller_hp += nHp_add     if(nKiller_hp > nHp_max)        nKiller_hp = nHp_max     set_user_health(nKiller, nKiller_hp)     message_begin(MSG_ONE, get_user_msgid("ScreenFade"), {0,0,0}, nKiller)    write_short(1<<10)    write_short(1<<10)    write_short(0x0000)    write_byte(0)    write_byte(0)    write_byte(200)    write_byte(75)    message_end()} public logevent_Round_Start(){    round++     new players[32], player, pnum    get_players(players, pnum, "a")     for(new i = 0; i < pnum; i++)    {        player = players[i]         if(get_user_flags(player) & ADMIN_LEVEL_H)        {            give_item(player, "item_kevlar")            give_item(player, "item_assaultsuit")             if (g_grenades)            {                give_item(player, "weapon_hegrenade")            }             give_item(player, "item_thighpack")             if(!get_pcvar_num(Menu_Active))                return PLUGIN_CONTINUE             if (g_vipmenu)            {                if (round > 3)                    Showrod(player)            }        }    }     return PLUGIN_HANDLED} public Showrod(id){    if (g_vipmenu)    {        show_menu(id, Keysrod, "yVIP Guns ^nr1. wM4A1&Deagle ^nr2. wAK47&Deagle ^nr2. wFamas&Deagle ^n^nr0. yIseiti ^n", -1, "rod")    }     return PLUGIN_CONTINUE} public Pressedrod(id, key){    switch(key)    {        case 0:        {            if (user_has_weapon(id, CSW_C4) && get_user_team(id) == 1)                HasC4[id] = true             else                HasC4[id] = false              if (user_has_weapon(id, CSW_HEGRENADE))                HasHEGRENADE[id] = true             else                HasHEGRENADE[id] = false             strip_user_weapons(id)             give_item(id, "weapon_m4a1")            give_item(id, "ammo_556nato")            give_item(id, "ammo_556nato")            give_item(id, "ammo_556nato")            give_item(id, "weapon_deagle")            give_item(id, "ammo_50ae")            give_item(id, "ammo_50ae")            give_item(id, "ammo_50ae")            give_item(id, "ammo_50ae")            give_item(id, "ammo_50ae")            give_item(id, "weapon_knife")            give_item(id, "item_thighpack")             if (HasC4[id])            {                give_item(id, "weapon_c4")                cs_set_user_plant(id)            }             if (HasHEGRENADE[id])            {                give_item(id, "weapon_hegrenade")            }        }         case 1:        {            if (user_has_weapon(id, CSW_C4) && get_user_team(id) == 1)                HasC4[id] = true             else                HasC4[id] = false             if (user_has_weapon(id, CSW_HEGRENADE))                HasHEGRENADE[id] = true             else                HasHEGRENADE[id] = false             strip_user_weapons(id)             give_item(id, "weapon_ak47")            give_item(id, "ammo_762nato")            give_item(id, "ammo_762nato")            give_item(id, "ammo_762nato")            give_item(id, "weapon_deagle")            give_item(id, "ammo_50ae")            give_item(id, "ammo_50ae")            give_item(id, "ammo_50ae")            give_item(id, "ammo_50ae")            give_item(id, "ammo_50ae")            give_item(id, "weapon_knife")             if (HasC4[id])            {                give_item(id, "weapon_c4")                cs_set_user_plant(id)            }             if (HasHEGRENADE[id])            {                give_item(id, "weapon_hegrenade")            }        }        case 2:        {            if (user_has_weapon(id, CSW_C4) && get_user_team(id) == 1)                HasC4[id] = true             else                HasC4[id] = false             if (user_has_weapon(id, CSW_HEGRENADE))                HasHEGRENADE[id] = true             else                HasHEGRENADE[id] = false             strip_user_weapons(id)             give_item(id, "weapon_famas")            give_item(id, "ammo_556nato")            give_item(id, "ammo_556nato")            give_item(id, "ammo_556nato")            give_item(id, "weapon_deagle")            give_item(id, "ammo_50ae")            give_item(id, "ammo_50ae")            give_item(id, "ammo_50ae")            give_item(id, "ammo_50ae")            give_item(id, "ammo_50ae")            give_item(id, "weapon_knife")             if (HasC4[id])            {                give_item(id, "weapon_c4")                cs_set_user_plant(id)            }             if (HasHEGRENADE[id])            {                give_item(id, "weapon_hegrenade")            }        }          case 9:        {                   }    }     return PLUGIN_CONTINUE} public HandleCmd(id){    if (!get_pcvar_num(AWP_Active))        return PLUGIN_CONTINUE     if(get_user_flags(id) & ADMIN_LEVEL_H)        return PLUGIN_CONTINUE     client_print(id, print_center, "* Sniperiniai ginklai tik VIP'ams *")    return PLUGIN_HANDLED} public Cur_Weapon(id){    if (!get_pcvar_num(AWP_Active))        return PLUGIN_CONTINUE     new WeaponID = read_data(2)     new mapname[32]    get_mapname(mapname, 31)     if (equali(mapname, "awp_", 3))        return PLUGIN_CONTINUE     else    {        if (WeaponID == CSW_AWP || WeaponID == CSW_SG550 || WeaponID == CSW_G3SG1)        {            if (!(get_user_flags(id) & ADMIN_LEVEL_H))            {                client_print(id, print_center, "* Sniperiniai ginklai tik VIP'ams *")                client_cmd(id, "drop")            }        }    }     return PLUGIN_HANDLED} public ShowMotd(id){    show_motd(id, "vip.txt")} public handle_say(id){    new said[192]    read_args(said, 192)     if (contain(said, "/vip") != -1)        set_task(0.1, "print_adminlist", id)     return PLUGIN_CONTINUE} public print_adminlist(user){    new adminnames[33][32]    new message[256]    new contactinfo[256], contact[112]    new id, count, x, len     for(id = 1; id <= maxplayers; id++)        if(is_user_connected(id))            if(get_user_flags(id) & ADMIN_LEVEL_H)                get_user_name(id, adminnames[count++], 31)     len = format(message, 255, "%s Prisijunge VIP'ai: ", COLOR)     if(count > 0)    {        for(x = 0; x < count; x++)        {            len += format(message[len], 255-len, "%s%s ", adminnames[x], x < (count - 1) ? ", " : "")             if(len > 96)            {                print_message(user, message)                len = format(message, 255, "%s ", COLOR)            }        }         print_message(user, message)    }     else    {        len += format(message[len], 255-len, "Nera prisijungusiu VIP'u.")        print_message(user, message)    }     get_cvar_string("amx_contactinfo", contact, 63)     if(contact[0])    {        format(contactinfo, 111, "%s Contact Server Admin -- %s", COLOR, contact)        print_message(user, contactinfo)    }} public client_authorized(id){    set_task(35.0, "PrintText", id)} public PrintText(id){    new message[256]    format(message, 255, "^x04[VIP]^x01 Rasyk:^x03 /noriuvip^x01 kad pamatytum VIP statusa.")    print_message(id, message)     return PLUGIN_CONTINUE} print_message(id, msg[]){    message_begin(MSG_ONE, MsgSayText, {0,0,0}, id)    write_byte(id)    write_string(msg)    message_end()} public client_connect(id){new name[32]get_user_info(id, "name", name, 31)if(get_user_flags(id) & ADMIN_LEVEL_H) {set_hudmessage(200, 0, 0, 0.05, 0.65, 2, 0.02, 30.0, 0.03, 0.3, 5)show_hudmessage(0, "Special VIP %s prisijunge!",name)}}/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE*{\ rtf1\ ansi\ deff0{\ fonttbl{\ f0\ fnil Tahoma;}}n\ viewkind4\ uc1\ pard\ lang1063\ f0\ fs16 n\ par }*/
Image
Image
Image

User avatar
artiom555
Jau po truputį tampa savu
Posts: 112
Joined: 2014 Apr 23 21:55
Skype: artem.sharkovic
Contact:

Re: PADEKITT !!!!!!!

Post by artiom555 »

Image


Nesinori complitint gali gal sma imest? :wink:

User avatar
laimiukas3
Moderatorius
Posts: 4569
Joined: 2012 Aug 03 01:12
Skype: laimiukas3
Location: Vilnius
Contact:

Re: PADEKITT !!!!!!!

Post by laimiukas3 »

taigi raso done gal tik biski warningu yra :D
Image
Image
Image

User avatar
artiom555
Jau po truputį tampa savu
Posts: 112
Joined: 2014 Apr 23 21:55
Skype: artem.sharkovic
Contact:

Re: PADEKITT !!!!!!!

Post by artiom555 »

Gali gal dar 1 coda padet paredagot )))?
Man reikia kad tik vipai su flagais "bit" gautu kas respawn po 100 arrmor

SMA.
http://www.failai.lt/y0gzmz9ba9l4/zp_armor_free.sma.htm

Ir jei galima be Warring :D

User avatar
laimiukas3
Moderatorius
Posts: 4569
Joined: 2012 Aug 03 01:12
Skype: laimiukas3
Location: Vilnius
Contact:

Re: PADEKITT !!!!!!!

Post by laimiukas3 »

nzn ar veiks :D

Code: Select all

#include <amxmodx>#include <amxmisc>#include <fun>#include <zombieplague> #define ACCESS ADMIN_LEVEL_H  #define PLUGIN "[ZP] Armor Free"#define VERSION "0.2"#define AUTHOR "tii"  //pcvarnew armor_value public plugin_init() {       register_plugin(PLUGIN, VERSION, AUTHOR)       register_event("ResetHUD", "playerSpawn", "be")        armor_value = register_cvar("zp_armor", "100") } public playerSpawn(id){       set_task(2.0, "shield", id)} public shield(id){       if(is_user_alive(id) && !zp_get_user_zombie(id))       {       if (get_user_flags(id) & ACCESS)       set_user_armor(id,get_pcvar_num(armor_value))       zp_colored_print(id, "^x04[ZP]^x01 You Now Have Armor")}   // Colored Print (zp_colored_print)stock zp_colored_print(target, const message[], any:...){    static g_msgSayText, maxplayers;    if ( !g_msgSayText )        g_msgSayText = get_user_msgid("SayText")            if ( !maxplayers )        maxplayers = get_maxplayers();        static buffer[512], i, argscount;    argscount = numargs();        // Send to everyone    if (!target)    {        static player;        for (player = 1; player <= maxplayers; player++)        {            // Not connected            if (!is_user_connected(player))                continue;                        // Remember changed arguments            static changed[5], changedcount; // [5] = max LANG_PLAYER occurencies            changedcount = 0;                        // Replace LANG_PLAYER with player id            for (i = 2; i < argscount; i++)            {                if (getarg(i) == LANG_PLAYER)                {                    setarg(i, 0, player);                    changed[changedcount] = i;                    changedcount++;                }            }                        // Format message for player            vformat(buffer, sizeof buffer - 1, message, 3);                        // Send it            message_begin(MSG_ONE_UNRELIABLE, g_msgSayText, _, player);            write_byte(player);            write_string(buffer);            message_end();                        // Replace back player id's with LANG_PLAYER            for (i = 0; i < changedcount; i++)                setarg(changed[i], 0, LANG_PLAYER);        }    }        // Send to specific target    else    {        // Format message for player        vformat(buffer, sizeof buffer - 1, message, 3);                // Send it        message_begin(MSG_ONE, g_msgSayText, _, target);        write_byte(target);        write_string(buffer);        message_end();    }}
arba :D

Code: Select all

#include <amxmodx>#include <amxmisc>#include <fun>#include <zombieplague> #define PLUGIN "[ZP] Armor Free"#define VERSION "0.2"#define AUTHOR "tii"  //pcvarnew armor_value public plugin_init() {       register_plugin(PLUGIN, VERSION, AUTHOR)       register_event("ResetHUD", "playerSpawn", "be")        armor_value = register_cvar("zp_armor", "100") } public playerSpawn(id){       set_task(2.0, "shield", id)} public shield(id){       if(is_user_alive(id) && !zp_get_user_zombie(id) && is_user_admin(id))       set_user_armor(id,get_pcvar_num(armor_value))       zp_colored_print(id, "^x04[ZP]^x01 You Now Have Armor")}   // Colored Print (zp_colored_print)stock zp_colored_print(target, const message[], any:...){    static g_msgSayText, maxplayers;    if ( !g_msgSayText )        g_msgSayText = get_user_msgid("SayText")            if ( !maxplayers )        maxplayers = get_maxplayers();        static buffer[512], i, argscount;    argscount = numargs();        // Send to everyone    if (!target)    {        static player;        for (player = 1; player <= maxplayers; player++)        {            // Not connected            if (!is_user_connected(player))                continue;                        // Remember changed arguments            static changed[5], changedcount; // [5] = max LANG_PLAYER occurencies            changedcount = 0;                        // Replace LANG_PLAYER with player id            for (i = 2; i < argscount; i++)            {                if (getarg(i) == LANG_PLAYER)                {                    setarg(i, 0, player);                    changed[changedcount] = i;                    changedcount++;                }            }                        // Format message for player            vformat(buffer, sizeof buffer - 1, message, 3);                        // Send it            message_begin(MSG_ONE_UNRELIABLE, g_msgSayText, _, player);            write_byte(player);            write_string(buffer);            message_end();                        // Replace back player id's with LANG_PLAYER            for (i = 0; i < changedcount; i++)                setarg(changed[i], 0, LANG_PLAYER);        }    }        // Send to specific target    else    {        // Format message for player        vformat(buffer, sizeof buffer - 1, message, 3);                // Send it        message_begin(MSG_ONE, g_msgSayText, _, target);        write_byte(target);        write_string(buffer);        message_end();    }}
gal kažkas tokio turetu buti :D if(!(get_user_flags(id) & ADMIN_LEVEL_H))
Image
Image
Image

User avatar
artiom555
Jau po truputį tampa savu
Posts: 112
Joined: 2014 Apr 23 21:55
Skype: artem.sharkovic
Contact:

Re: PADEKITT !!!!!!!

Post by artiom555 »

Tas vip sma kur davei neveikia nu vip pac veikia bet granatas duoda ne tik kai respawn o dar uz nuzudima zmogaus ir cia tik 1 kart suveike tas vip :D o dbr is vis ne complitina :DD
SMA.

http://www.failai.lt/zzmdzm74e5ek/csdmvip.sma.htm

User avatar
laimiukas3
Moderatorius
Posts: 4569
Joined: 2012 Aug 03 01:12
Skype: laimiukas3
Location: Vilnius
Contact:

Re: PADEKITT !!!!!!!

Post by laimiukas3 »

artiom555 wrote:Tas vip sma kur davei neveikia nu vip pac veikia bet granatas duoda ne tik kai respawn o dar uz nuzudima zmogaus ir cia tik 1 kart suveike tas vip :D o dbr is vis ne complitina :DD
SMA.

http://www.failai.lt/zzmdzm74e5ek/csdmvip.sma.htm
jei viena karta sukompiliavo turi ir kitus kartus tai padaryti :D
Image
Image
Image

User avatar
artiom555
Jau po truputį tampa savu
Posts: 112
Joined: 2014 Apr 23 21:55
Skype: artem.sharkovic
Contact:

Re: PADEKITT !!!!!!!

Post by artiom555 »

Uz arrmor dekui :happy2:

-- 2014 Bal 24 15:20 --

Nekomplitina rimtai :))) ten as buwau kita complitines te sita sma kur davei tai supajniojau o tavo sita cod ne complitina..( :(

User avatar
laimiukas3
Moderatorius
Posts: 4569
Joined: 2012 Aug 03 01:12
Skype: laimiukas3
Location: Vilnius
Contact:

Re: PADEKITT !!!!!!!

Post by laimiukas3 »

artiom555 wrote:Uz arrmor dekui :happy2:

-- 2014 Bal 24 15:20 --

Nekomplitina rimtai :))) ten as buwau kita complitines te sita sma kur davei tai supajniojau o tavo sita cod ne complitina..( :(
kuri nekomplina ta pirma csdm vip ?:D http://www.amxmodx.org/webcompiler.cgi nzn man cia kompiliuoja :)
Image
Image
Image

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 2 guests