←  Prośby o kompilacje pluginów / Problemy z kompilacją

AMXX.pl: Support AMX Mod X i SourceMod

»

[ROZWIĄZANE] Proszę o skompilowanie + pomoc.

Locked

  • +
  • -
Mati1341's Photo Mati1341 20.09.2012

Witam Proszę o skompilowanie tego vipa na hidenseek. i dodać w sma. Proszę jeszczę żeby usunąc model vipa, i zostawic all bez modelu dzięki . lecąąąąąą ++++++++

#include <amxmodx>
#include <cstrike>
#include <fun>
#include <hamsandwich>
#define PLUGIN "Hns Vip"
#define VERSION "1.0"
#define AUTHOR "speedkill"
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)
health_add = register_cvar("amx_vip_hp", "10")
health_hs_add = register_cvar("amx_vip_hp_hs", "20")
health_max = register_cvar("amx_vip_max_hp", "100")
register_event("DeathMsg", "death", "a", "1>0")
RegisterHam(Ham_Spawn, "player", "abc", 1)
}
public plugin_precache() {
precache_model("models/player/hnsvip/hnsvip.mdl")
}
public abc(id)
{
if(is_user_alive(id) && get_user_flags(id) & ADMIN_LEVEL_H)
{

give_item(id, "weapon_smokegrenade")
give_item(id, "weapon_flashbang")
give_item(id, "weapon_hegrenade")
model(id)
}
}
public death()
{
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)
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)

}
public model(id) {
new CsTeams:userTeam = cs_get_user_team(id)
if (userTeam == CS_TEAM_T) {
cs_set_user_model(id, "hnsvip")
}
else if(userTeam == CS_TEAM_CT) {
cs_set_user_model(id, "hnsvip")
}
else {
cs_reset_user_model(id)
}
}

(28.09.2012 21:02):
Kod w postach (np. źródło pluginu) umieszczaj w odpowiednich tagach (code/php/spoiler itp), a powyżej 200 linijek tylko w załączniku lub na wklejce.

Edited by benio101, 28.09.2012 21:02.
Dodanie znacznika SMA
Quote

  • +
  • -
Maniek974's Photo Maniek974 20.09.2012

Trzymaj

Attached Files

Quote

  • +
  • -
Mati1341's Photo Mati1341 20.09.2012

bardzo Ci dziękuje :). Leci plusik.



/temat do zamknięcia.
Quote

Gość_21977_* 28.09.2012

Wiadomość wygenerowana automatycznie


Ten temat został zamknięty przez moderatora.

Powód: Pomoc udzielona

Jeśli się z tym nie zgadzasz, Posted Image raportuj ten post, a moderator lub administrator rozpatrzy go ponownie.


Z pozdrowieniami,
Zespół AMXX.PL
Quote
Locked