Skocz do zawartości

Witamy w Nieoficjalnym polskim support'cie AMX Mod X

Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
  • Rozpoczynaj nowe tematy i odpowiedaj na inne
  • Zapisz się do tematów i for, aby otrzymywać automatyczne uaktualnienia
  • Dodawaj wydarzenia do kalendarza społecznościowego
  • Stwórz swój własny profil i zdobywaj nowych znajomych
  • Zdobywaj nowe doświadczenia

Dołączona grafika Dołączona grafika

Guest Message by DevFuse
 

Zdjęcie
Nowy Plugin

VIP pluginVIP plugin

Nowy Plugin

  • Zamknięty Temat jest zamknięty
3 odpowiedzi w tym temacie

#1 borq171

    Początkujący

  • Użytkownik

Reputacja: 0
Nowy

  • Postów:11
  • Lokalizacja:Limanowa
Offline

Napisano 03.08.2011 15:07

Witam. Chciałbym prosić jakiegoś doświadczonego w tym uzytkownika i zrobienie pluginu VIP :

*Gracz posiadajcy VIP'a dostaje darmowego deagla,granaty(he,smoke,flash), kevlar + helm
*Za kazde zabojstwo dostaje 10hp a za kazdego HeadShoot'a - 15hp.
*Za kazde zabojstwo dostaje 500$ a za kazdego HeadShoot'a - 800$.

proszę o pomoc, będę bardzo wdzieczny. Oczywiscie +.

Użytkownik borq171 edytował ten post 03.08.2011 15:07

  • +
  • -
  • 0

#2 Hiroshima

    Godlike

  • Przyjaciel

Reputacja: 1 327
Godlike

  • Postów:4 984
  • Steam:steam
  • Imię:Michał
  • Lokalizacja:Málaga
Offline

Napisano 03.08.2011 15:10

Automatyczna wiadomość


Ten temat został przeniesiony z forum:
AMX Mod X -> Szukam pluginu
do
Scripting -> Pluginy

  • +
  • -
  • 0

#3 ;((

    Super Hero

  • Użytkownik

Reputacja: 347
Wszechpomocny

  • Postów:1 157
  • Lokalizacja:Aha
Offline

Napisano 03.08.2011 15:34

Proszę bardzo niżej. Cvary to:

money_per_damage 3 // tutaj chyba ile kasy za 1 dmg ( 0 - off)
money_kill_bonus 500 // kasa za kill
money_hs_bonus 800 // kasa za HS
amx_vip_hp 10 // hp za kill
amx_vip_hp_hs 15 // hp za hs
amx_vip_max_hp 100 // ile vip moze miec max hp (ustawione na 100)

podane wartosci sa domyslne

/* Plugin generated by AMXX-Studio */

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

#define PLUGIN "VIP"
#define VERSION "1.0"
#define AUTHOR "DAMIANq"

new mpd, mkb, mhb
new maxplayers
new health_add
new health_hs_add
new health_max
new nKiller
new nKiller_hp
new nHp_add
new nHp_max

public plugin_init() {
	register_plugin(PLUGIN, VERSION, AUTHOR)
	
	mpd = register_cvar("money_per_damage","3")
	mkb = register_cvar("money_kill_bonus","500")
	mhb = register_cvar("money_hs_bonus","800")
	health_add = register_cvar("amx_vip_hp", "10")
	health_hs_add = register_cvar("amx_vip_hp_hs", "15")
	health_max = register_cvar("amx_vip_max_hp", "100")

	register_event("Damage","Damage","b")
	register_event("DeathMsg","death_msg","a")
	register_logevent("logevent_Round_Start", 2, "1=Round_Start");
	register_event("DeathMsg", "hook_death", "a", "1>0")
	RegisterHam(Ham_Spawn, "player", "fwHamPlayerSpawnPost", 1);
}

public fwHamPlayerSpawnPost(id)
{
	if(is_user_alive(id) && get_user_flags(id) & ADMIN_LEVEL_H)
	{
		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,"ammo_50ae")
		give_item(id,"ammo_50ae")
		give_item(id, "weapon_hegrenade")
		give_item(id, "weapon_flashbang")
		give_item(id, "weapon_flashbang")
		give_item(id, "weapon_smokegrenade")
		give_item(id, "item_assaultsuit")
	}
}
	
	
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()
{
   // Killer id
   nKiller = read_data(1)
   
   if ( (read_data(3) == 1) && (read_data(5) == 0) )
   {
      nHp_add = get_pcvar_num (health_hs_add)
   }
   else
      nHp_add = get_pcvar_num (health_add)
   nHp_max = get_pcvar_num (health_max)
   // Updating Killer HP
   if(!(get_user_flags(nKiller) & ADMIN_LEVEL_H))
   return;

   nKiller_hp = get_user_health(nKiller)
   nKiller_hp += nHp_add
   // Maximum HP check
   if (nKiller_hp > nHp_max) nKiller_hp = nHp_max
   set_user_health(nKiller, nKiller_hp)
   // Hud message "Healed +15/+30 hp"
   set_hudmessage(0, 255, 0, -1.0, 0.15, 0, 1.0, 1.0, 0.1, 0.1, -1)
   show_hudmessage(nKiller, "Healed +%d hp", nHp_add)
   // Screen fading
   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()
 
}

  • +
  • -
  • 1

#4 borq171

    Początkujący

  • Autor tematu
  • Użytkownik

Reputacja: 0
Nowy

  • Postów:11
  • Lokalizacja:Limanowa
Offline

Napisano 03.08.2011 17:19

Wielkie dzięki :) Oczywiscie +. Teraz to wykorzystam, jakby co sie odezwe :P

Użytkownik borq171 edytował ten post 03.08.2011 17:19

  • +
  • -
  • 0





Również z jednym lub większą ilością słów kluczowych: Nowy Plugin

Użytkownicy przeglądający ten temat: 0

0 użytkowników, 0 gości, 0 anonimowych