←  Szukam pluginu

AMXX.pl: Support AMX Mod X i SourceMod

»

szukam vipa ffa

  • +
  • -
qqs1925 - zdjęcie qqs1925 11.08.2012

witam poszukuje vipa takiego samego albo o podobnych właściwościach:

2 hp za zabicie + 100 $
5 hp za zabicie w głowe + 350 $

po wpisaniu /vip zostana wyswietlone vipy na zielono,, VIPY ONLINE: ''

od pierwszej rundy
Dostana smolk,he,2xfe, + ct defa
helm + kamizelka


od drugiej rundy
do wyboru
Aka+deagl smolk,he,2xfe,
mra1+deagl smolk,he,2xfe,

dzięki karma bedzie :)
Użytkownik TRAFEK edytował ten post 11.08.2012 17:25
Odpowiedz

  • +
  • -
Andrzejek - zdjęcie Andrzejek 11.08.2012

Łap robiłem na szybko, testowałem i działa wszystko:

/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <hamsandwich>
#include <fakemeta_util>
#include <fun>
#include <colorchat>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "Andzejek"

#define FLAG_VIP ADMIN_LEVEL_H
#define VIPS

#if defined VIPS
new maxplayers
#endif

new zycie_zabicie, kasa_zabicie, zycie_limit;
new rundy;

public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)

RegisterHam(Ham_Spawn, "player", "Pokaz_Rundy", 1);
register_logevent("Koniec_Rundy", 2, "1=Round_End")

zycie_zabicie = register_cvar("vip_killhp", "10");
kasa_zabicie = register_cvar("vip_killcash", "300");
zycie_limit = register_cvar("vip_limithp", "150");

#if defined VIPS
maxplayers = get_maxplayers()
register_clcmd("say /vips", "print_vips", 0);
#endif

}

public Pokaz_Rundy(id)
{
switch (rundy)
{
case 1:
{
Pierwsza_Runda(id)
}
case 2:
{
Druga_Runda(id)
}

}
}

public Pierwsza_Runda(id)
{
if (!is_user_alive(id))
return

static CsTeams: team ; team = cs_get_user_team(id)

if (team == CS_TEAM_T && (get_user_flags(id) & FLAG_VIP))
{
fm_give_item(id, "weapon_hegrenade");
fm_give_item(id, "weapon_flashbang");
fm_give_item(id, "weapon_flashbang");
fm_give_item(id, "weapon_smokegrenade");
fm_give_item(id, "item_assaultsuit")
}
else if (team == CS_TEAM_CT && (get_user_flags(id) & FLAG_VIP))
{
fm_give_item(id, "weapon_hegrenade");
fm_give_item(id, "weapon_flashbang");
fm_give_item(id, "weapon_flashbang");
fm_give_item(id, "weapon_smokegrenade");
fm_give_item(id, "item_assaultsuit")
fm_give_item(id, "item_thighpack");

}
}

public Druga_Runda(id)
{
if (!is_user_alive(id))
return

if (get_user_flags(id) & FLAG_VIP)
{
set_task(1.0, "Menu_Pokaz", id)
}
}

public Menu_Pokaz(id)
{
if(!is_user_alive(id))
return PLUGIN_HANDLED

new menu = menu_create("\wMenu uzbrojenia:" , "Wybor_menu");
menu_additem(menu ,"\wAK47+DEAGLE HE, FB, SG", "1" , 0);
menu_additem(menu ,"\wM4A1+DEAGLE HE, FB, SG", "2" , 0);
menu_setprop(menu , MPROP_EXIT , MEXIT_ALL);
menu_display(id , menu , 0);
return PLUGIN_CONTINUE
}

public Wybor_menu(id, menu, item)
{
if (item == MENU_EXIT)
{
menu_destroy(menu);
return PLUGIN_HANDLED;
}

new data[6], iName[64];
new zaccess, callback;
menu_item_getinfo(menu, item, zaccess, data,5, iName, 63, callback);
new key = str_to_num(data)

switch(key)
{

case 1:
{
give_item(id, "weapon_ak47" );
cs_set_user_bpammo( id, CSW_AK47, 90 );
give_item(id, "weapon_deagle")
cs_set_user_bpammo( id, CSW_DEAGLE, 35 );
fm_give_item(id, "weapon_hegrenade");
fm_give_item(id, "weapon_flashbang");
fm_give_item(id, "weapon_flashbang");
fm_give_item(id, "weapon_smokegrenade");
}
case 2:
{
give_item( id, "weapon_m4a1" );
cs_set_user_bpammo( id, CSW_M4A1, 90 );
give_item(id, "weapon_deagle")
cs_set_user_bpammo( id, CSW_DEAGLE, 35 );
fm_give_item(id, "weapon_hegrenade");
fm_give_item(id, "weapon_flashbang");
fm_give_item(id, "weapon_flashbang");
fm_give_item(id, "weapon_smokegrenade");
}

}
menu_destroy(menu);
return PLUGIN_HANDLED;
}

public Death()
{
new attacker = read_data(1);

new health = get_user_health(attacker)


if (get_user_flags(attacker) & FLAG_VIP){


if(get_pcvar_num(zycie_zabicie)){
fm_set_user_health(attacker, health + get_pcvar_num(zycie_zabicie));
}

new money = cs_get_user_money(attacker)
if(get_pcvar_num(kasa_zabicie) && money < 16000){
cs_set_user_money(attacker, money + get_pcvar_num(kasa_zabicie))
}

if(health > get_pcvar_num(zycie_limit)){

fm_set_user_health(attacker, get_pcvar_num(zycie_limit))

}



}

}

public Koniec_Rundy()
{
rundy ++
}

#if defined VIPS
public print_vips(user)
{
new adminnames[33][32]
new message[256]
new id, count, x, len

for(id = 1 ; id <= maxplayers ; id++)
if(is_user_connected(id))
if(get_user_flags(id) & FLAG_VIP)
get_user_name(id, adminnames[count++], 31)

len = format(message, 255, "^x04Vipy online:^x04 ")
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 ) {
ColorChat(user, GREEN, "%s", message);
len = format(message, 255, "^x04 ")
}
}
ColorChat(user, GREEN, "%s", message);
}
else {
len += format(message[len], 255-len, "Brak vipow online!")

ColorChat(user, GREEN, "%s", message);
}


}
#endif

Użytkownik Andrzejek edytował ten post 11.08.2012 19:00
Odpowiedz

  • +
  • -
QuahodronN - zdjęcie QuahodronN 11.08.2012

cały public pierwsza_runda zamieniłbym na

public Pierwsza_Runda(id)
{
if(is_user_alive(id) && get_user_flags(id) & FLAGA)
{
fm_give_item(id, "weapon_hegrenade");
         fm_give_item(id, "weapon_flashbang");
         fm_give_item(id, "weapon_flashbang");
         fm_give_item(id, "weapon_smokegrenade");
         fm_give_item(id, "item_assaultsuit")

if (get_user_team(id)==2)
{
fm_give_item(id,"item_thighpack")
}
}
}

Ale możesz przeglądnąć listę którą podał fajled
Odpowiedz

  • +
  • -
Andrzejek - zdjęcie Andrzejek 11.08.2012

Też tak można, niech sprawdzi czy działa u niego :P
Odpowiedz

  • +
  • -
qqs1925 - zdjęcie qqs1925 13.08.2012

Dzięki wszystko ładnie działa. !

A mogłbyś dodac ze maksymalnie 120 hp ? Bo jak ma 100 hp to hp nie dodaje
Użytkownik TRAFEK edytował ten post 13.08.2012 09:57
Odpowiedz

  • +
  • -
Andrzejek - zdjęcie Andrzejek 13.08.2012

wpisz w amxx.cfg
vip_limithp "120"
Odpowiedz

  • +
  • -
qqs1925 - zdjęcie qqs1925 13.08.2012

mozessz podac do pobrania sma i amxx?
Użytkownik TRAFEK edytował ten post 13.08.2012 11:02
Odpowiedz

  • +
  • -
Andrzejek - zdjęcie Andrzejek 13.08.2012

2 post, ale masz :

Załączone pliki

  • Załączony plik  vip.sma   6,63 KB   67 Ilość pobrań
Odpowiedz