Skocz do zawartości

  • Zaloguj korzystając z Facebooka Zaloguj korzystając z Twittera Zaloguj przez Steam Zaloguj poprzez Google      Logowanie »   
  • Rejestracja

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

Pytanie jak przerobic.


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

#1 Lyons

    Wszechpomocny

  • Zbanowany

Reputacja: 25
Życzliwy

  • Postów:375
  • GG:
  • Imię:Dawid
  • Lokalizacja:Częstochowa
Offline

Napisano 11.06.2010 14:03

Witam, chciałbym przerobić to :
#include <amxmodx>
#include <hamsandwich>
#include <engine>
#include <zombieplague>
#include <fun>
#include <fakemeta_util>

new cvar_knife_dmg, cvar_m3_dmg
new cvar_deagle_dmg, g_itemid, cvar_health, cvar_armor
new cvar_red, cvar_green, cvar_blue

new bool:g_bHasKitDamage[33], g_maxplayers, g_msgSayText

new const v_m3_model[] = "models/v_m3_released.mdl"
new const p_m3_model[] = "models/p_m3_released.mdl"

public plugin_init()
{
register_plugin("Damage Kit" , "1.3b", "lucas_7_94")
register_cvar ("zp_extra_damage", "1.3b", FCVAR_SERVER)
RegisterHam(Ham_TakeDamage, "player", "fw_TakeDamage")
register_event("HLTV", "event_round_start", "a", "1=0", "2=0")
register_event("CurWeapon", "event_CurWeapon", "be", "1=1")
g_itemid = zp_register_extra_item("Kit De Damage", 50, ZP_TEAM_HUMAN)
cvar_m3_dmg = register_cvar ("zp_m3_damage", "6.0")
cvar_knife_dmg = register_cvar ("zp_knife_damage", "4.0")
cvar_deagle_dmg = register_cvar ("zp_deagle_damage", "6.0")
cvar_health = register_cvar ("zp_kit_health", "400")
cvar_armor = register_cvar ("zp_kit_armor", "500")
cvar_red = register_cvar ("zp_kit_glow_R", "000")
cvar_green = register_cvar ("zp_kit_glow_G", "255")
cvar_blue = register_cvar ("zp_kit_glow_B", "255")
g_maxplayers = get_maxplayers()
g_msgSayText = get_user_msgid("SayText")
}

public plugin_precache()
{
precache_model(v_m3_model)
precache_model(p_m3_model)
}

public event_round_start()
{
for(new id = 1; id <= g_maxplayers; id++)
g_bHasKitDamage[id] = false
}

public zp_user_infected_post(infected, infector)
{
if (g_bHasKitDamage[infected])
{
g_bHasKitDamage[infected] = false
}
}

public fw_player_killed(victim, attacker, shouldgib)
{
if(g_bHasKitDamage[victim])
{
KitDamage(victim, "^x04[Kit Damage] You do not have the kit Damage!")
g_bHasKitDamage[victim] = false
}
}

public zp_extra_item_selected(player, itemid)
{
if (itemid == g_itemid)
{
if(g_bHasKitDamage[player])
{
KitDamage(player, "^x04[Zombie Plague] You've got the Damage Kit")
zp_set_user_ammo_packs(player, zp_get_user_ammo_packs(player) + 50)

return;
}
else
{
g_bHasKitDamage[player] = true
fm_set_user_health(player, get_user_health(player) + get_pcvar_num(cvar_health));
fm_set_user_armor(player, get_user_armor(player) + get_pcvar_num(cvar_armor));
fm_set_rendering(player, kRenderFxGlowShell, (cvar_red), (cvar_green), (cvar_blue), kRenderNormal, 16);
fm_strip_user_weapons(player)
give_item(player, "weapon_knife")
give_item(player, "weapon_deagle")
give_item(player, "weapon_m3")
KitDamage(player, "^x04[Zombie Plague] You purchased a kit Damage!!")
}
}
}

public event_CurWeapon(id)
{
new weapid = read_data(2)

if(!is_user_alive(id))
return;

if(g_bHasKitDamage[id] && weapid == CSW_M3)
{
entity_set_string(id, EV_SZ_viewmodel, v_m3_model)
entity_set_string(id, EV_SZ_weaponmodel, p_m3_model)
}
}

public fw_TakeDamage(victim, inflictor, attacker, Float:damage, damage_type)
{
if(!(1 <= attacker <= g_maxplayers))
return HAM_IGNORED;

if(get_user_weapon(attacker) != CSW_M3)
if(get_user_weapon(attacker) != CSW_DEAGLE)
if(get_user_weapon(attacker) != CSW_KNIFE)
return HAM_IGNORED;

if (get_user_weapon(attacker) && g_bHasKitDamage[attacker])
{
SetHamParamFloat(4, damage * get_pcvar_float(cvar_m3_dmg))
SetHamParamFloat(4, damage * get_pcvar_float(cvar_deagle_dmg))
SetHamParamFloat(4, damage * get_pcvar_float(cvar_knife_dmg))
}

return HAM_IGNORED;
}

KitDamage(target, const message[], any:...)
{
static buffer[512], i, argscount
argscount = numargs()

// Send to everyone
if (!target)
{
static player
for (player = 1; player <= g_maxplayers; player++)
{
// Not connected
if (!is_user_connected(player))
continue;

static changed[5], changedcount;
changedcount = 0

for (i = 2; i < argscount; i++)
{
if (getarg(i) == LANG_PLAYER)
{
setarg(i, 0, player)
changed[changedcount] = i
changedcount++
}
}

vformat(buffer, sizeof buffer - 1, message, 3)

message_begin(MSG_ONE, g_msgSayText, _, player)
write_byte(player)
write_string(buffer)
message_end()

for (i = 0; i < changedcount; i++)
setarg(changed[i], 0, LANG_PLAYER)
}
}
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()
}
}

na:
nazwa: Lowca
koszt: 45 ammo packow
wszystkie granaty
pelna amunicja ale z przeladowaniem
i zeby bylo z aura

11 czerwiec 2010 - 14:03:
DAM KILKA + ^^

#2 grankee

    Godlike

  • Support Team

Reputacja: 507
Wszechwiedzący

  • Postów:1500
  • Lokalizacja:Radom
Offline

Napisano 11.06.2010 15:51

Potrzebny nagłówek zombieplague.inc
  • +
  • -
  • 0

#3 Lyons

    Wszechpomocny

  • Autor tematu
  • Zbanowany

Reputacja: 25
Życzliwy

  • Postów:375
  • GG:
  • Imię:Dawid
  • Lokalizacja:Częstochowa
Offline

Napisano 11.06.2010 15:59

; ------------------------------------
; Zombie Plague 4.3 Customization File
; ------------------------------------
; Any changes you make here will be
; automatically loaded at map start

; Note: No error parsing is done for this.
; Make sure you don't mistype anything.

[Access Flags]
ENABLE/DISABLE MOD = l
ADMIN MENU = d
START MODE INFECTION = d
START MODE NEMESIS = d
START MODE SURVIVOR = d
START MODE SWARM = d
START MODE MULTI = d
START MODE PLAGUE = d
MAKE ZOMBIE = d
MAKE HUMAN = d
MAKE NEMESIS = d
MAKE SURVIVOR = d
RESPAWN PLAYERS = d
ADMIN MODELS = d

[Player Models] (randomly chosen if more than one)
HUMAN = arctic , guerilla , leet , terror , gign , gsg9 , sas , urban
NEMESIS = zombie_source
SURVIVOR = leet , sas
ADMIN ZOMBIE = zombie_source
ADMIN HUMAN = vip

; If you don't want people using altered player models, enable the following.
; 1 = Bounds Check (model's geometry must fit in the same bbox)
; 2 = CRC Check (file on client must exactly match server's file)
FORCE CONSISTENCY = 0

; By default, zombie models are class specific. You can edit them separately in your zp_zombieclasses.ini
; If, however, you want all zombies to use the same models regardless of class, you can enable this
; setting and add your global zombie models to the "ZOMBIE" line.
SAME MODELS FOR ALL = 0
ZOMBIE = zombie_source

[Weapon Models]
V_KNIFE HUMAN = models/v_knife.mdl
V_KNIFE NEMESIS = models/zombie_plague/v_knife_zombie.mdl
V_M249 SURVIVOR = models/v_m249.mdl
GRENADE INFECT = models/zombie_plague/v_grenade_infect.mdl
GRENADE FIRE = models/zombie_plague/v_grenade_fire.mdl
GRENADE FROST = models/zombie_plague/v_grenade_frost.mdl
GRENADE FLARE = models/zombie_plague/v_grenade_flare.mdl
V_KNIFE ADMIN HUMAN = models/v_knife.mdl
V_KNIFE ADMIN ZOMBIE = models/zombie_plague/v_knife_zombie.mdl

[Grenade Sprites]
TRAIL = sprites/laserbeam.spr
RING = sprites/shockwave.spr
FIRE = sprites/flame.spr
SMOKE = sprites/black_smoke3.spr
GLASS = models/glassgibs.mdl

[Sounds] (randomly chosen if more than one)
WIN ZOMBIES = ambience/the_horror1.wav , ambience/the_horror3.wav , ambience/the_horror4.wav
WIN HUMANS = zombie_plague/win_humans1.wav , zombie_plague/win_humans2.wav
WIN NO ONE = ambience/3dmstart.wav
ZOMBIE INFECT = zombie_plague/zombie_infec1.wav , zombie_plague/zombie_infec2.wav , zombie_plague/zombie_infec3.wav , scientist/c1a0_sci_catscream.wav , scientist/scream01.wav
ZOMBIE PAIN = zombie_plague/zombie_pain1.wav , zombie_plague/zombie_pain2.wav , zombie_plague/zombie_pain3.wav , zombie_plague/zombie_pain4.wav , zombie_plague/zombie_pain5.wav
NEMESIS PAIN = zombie_plague/nemesis_pain1.wav , zombie_plague/nemesis_pain2.wav , zombie_plague/nemesis_pain3.wav
ZOMBIE DIE = zombie_plague/zombie_die1.wav , zombie_plague/zombie_die2.wav , zombie_plague/zombie_die3.wav , zombie_plague/zombie_die4.wav , zombie_plague/zombie_die5.wav
ZOMBIE FALL = zombie_plague/zombie_fall1.wav
ZOMBIE MISS SLASH = weapons/knife_slash1.wav , weapons/knife_slash2.wav
ZOMBIE MISS WALL = weapons/knife_hitwall1.wav
ZOMBIE HIT NORMAL = weapons/knife_hit1.wav , weapons/knife_hit2.wav , weapons/knife_hit3.wav , weapons/knife_hit4.wav
ZOMBIE HIT STAB = weapons/knife_stab.wav
ZOMBIE IDLE = nihilanth/nil_now_die.wav , nihilanth/nil_slaves.wav , nihilanth/nil_alone.wav , zombie_plague/zombie_brains1.wav , zombie_plague/zombie_brains2.wav
ZOMBIE IDLE LAST = nihilanth/nil_thelast.wav
ZOMBIE MADNESS = zombie_plague/zombie_madness1.wav
ROUND NEMESIS = zombie_plague/nemesis1.wav , zombie_plague/nemesis2.wav
ROUND SURVIVOR = zombie_plague/survivor1.wav , zombie_plague/survivor2.wav
ROUND SWARM = ambience/the_horror2.wav
ROUND MULTI = ambience/the_horror2.wav
ROUND PLAGUE = zombie_plague/nemesis1.wav , zombie_plague/survivor1.wav
GRENADE INFECT EXPLODE = zombie_plague/grenade_infect.wav
GRENADE INFECT PLAYER = scientist/scream20.wav , scientist/scream22.wav , scientist/scream05.wav
GRENADE FIRE EXPLODE = zombie_plague/grenade_explode.wav
GRENADE FIRE PLAYER = zombie_plague/zombie_burn3.wav , zombie_plague/zombie_burn4.wav , zombie_plague/zombie_burn5.wav , zombie_plague/zombie_burn6.wav , zombie_plague/zombie_burn7.wav
GRENADE FROST EXPLODE = warcraft3/frostnova.wav
GRENADE FROST PLAYER = warcraft3/impalehit.wav
GRENADE FROST BREAK = warcraft3/impalelaunch1.wav
GRENADE FLARE = items/nvg_on.wav
ANTIDOTE = items/smallmedkit1.wav
THUNDER = zombie_plague/thunder1.wav , zombie_plague/thunder2.wav

[Ambience Sounds] (randomly chosen if more than one) (only .wav and .mp3 formats supported) (duration is in seconds)
INFECTION ENABLE = 0
INFECTION SOUNDS = zombie_plague/ambience.wav
INFECTION DURATIONS = 17
NEMESIS ENABLE = 0
NEMESIS SOUNDS = zombie_plague/ambience.wav
NEMESIS DURATIONS = 17
SURVIVOR ENABLE = 0
SURVIVOR SOUNDS = zombie_plague/ambience.wav
SURVIVOR DURATIONS = 17
SWARM ENABLE = 0
SWARM SOUNDS = zombie_plague/ambience.wav
SWARM DURATIONS = 17
PLAGUE ENABLE = 0
PLAGUE SOUNDS = zombie_plague/ambience.wav
PLAGUE DURATIONS = 17

[Buy Menu Weapons]
PRIMARY = weapon_galil , weapon_famas , weapon_m4a1 , weapon_ak47 , weapon_sg552 , weapon_aug , weapon_scout , weapon_m3 , weapon_xm1014 , weapon_tmp , weapon_mac10 , weapon_ump45 , weapon_mp5navy , weapon_p90
SECONDARY = weapon_glock18 , weapon_usp , weapon_p228 , weapon_deagle , weapon_fiveseven , weapon_elite
ADDITIONAL ITEMS = weapon_hegrenade , weapon_flashbang , weapon_smokegrenade

[Extra Items: Weapons and their costs]
NAMES = Napalm Nade , Frost Nade , Flare , AWP Magnum Sniper , M249 Para Machinegun , SG550 Auto-Sniper , G3SG1 Auto-Sniper
ITEMS = weapon_hegrenade , weapon_flashbang , weapon_smokegrenade , weapon_awp , weapon_m249 , weapon_sg550 , weapon_g3sg1
COSTS = 6 , 6 , 6 , 8 , 10 , 12 , 12

[Hard Coded Items Costs]
NIGHT VISION = 15
ANTIDOTE = 15
ZOMBIE MADNESS = 17
INFECTION BOMB = 20

[Weather Effects]
RAIN = 0
SNOW = 0
FOG = 0
FOG DENSITY = 0.0018
FOG COLOR = 128 128 128

[Custom Skies] (randomly chosen if more than one)
ENABLE = 1
SKY NAMES = space

[Lightning Lights Cycle]
LIGHTS = ijklmnonmlkjihgfedcb , klmlkjihgfedcbaabcdedcb , bcdefedcijklmlkjihgfedcb

[Zombie Decals] (for bloodstains/footsteps)
DECALS = 99 , 107 , 108 , 184 , 185 , 186 , 187 , 188 , 189

[Knockback Power for Weapons] (use -1.0 to disable knockback power for the weapon)
P228 = 2.4
SCOUT = 6.5
XM1014 = 8.0
MAC10 = 2.3
AUG = 5.0
ELITE = 2.4
FIVESEVEN = 2.0
UMP45 = 2.4
SG550 = 5.3
GALIL = 5.5
FAMAS = 5.5
USP = 2.2
GLOCK18 = 2.0
AWP = 10.0
MP5NAVY = 2.5
M249 = 5.2
M3 = 8.0
M4A1 = 5.0
TMP = 2.4
G3SG1 = 6.5
DEAGLE = 5.3
SG552 = 5.0
AK47 = 6.0
P90 = 2.0

[Objective Entities] (and anything that would affect gameplay that needs to be removed)
CLASSNAMES = func_bomb_target , info_bomb_target , info_vip_start , func_vip_safetyzone , func_escapezone , hostage_entity , monster_scientist , func_hostage_rescue , info_hostage_rescue , env_fog , env_rain , env_snow , item_longjump , func_vehicle

[SVC_BAD Prevention] (if you experience *many* SVC_BAD kicks, try one of the following)
; A. Increase the delay between model changes here (in 0.1 increments until the kicks are gone)
MODELCHANGE DELAY = 0.2
; B. If you still get recurring kicks, try enabling this setting: (experimental!)
HANDLE MODELS ON SEPARATE ENT = 0

; If you want your models to have accurate hitboxes, try enabling this.
; Note: make sure your models don't have messed up hitboxes, otherwise
; this setting might cause your server insane cpu usage and lag!
SET MODELINDEX OFFSET = 0


nie wiem po co ale masz ^^

#4 ^^^Deed

    Zaawansowany

  • Użytkownik

Reputacja: 15
Początkujący

  • Postów:90
  • Steam:steam
  • Lokalizacja:LondYn
Offline

Napisano 12.06.2010 18:11

Po
#include <zombieplague>
Czytaj trochę.
  • +
  • -
  • 0
80.72.37.13:27060 - Diablo Mod jakiego nigdy nie widziałeś!




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

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