Peršokti į turinį
svarcas

del zm klasiu

Recommended Posts





; To enable a module, remove the semi-colon ( in front of its name.
; If it's not here, simply add it its name, one per line.
; You don't need to write the _amxx part or the file extension.
;;;

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; SQL Modules usually need to be enabled manually ;;
;; You can have any number on at a time.  Use      ;;
;;  amx_sql_type in sql.cfg to specify the default ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

;mysql
;sqlite

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Put third party modules below here.              ;;
;; You can just list their names, without the _amxx ;;
;;  or file extension.                              ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;



;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; These modules will be auto-detected and loaded   ;;
;;  as needed.  You do not need to enable them here ;;
;;  unless you have problems.                       ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

fun
engine
fakemeta
;geoip
;sockets
;regex
;nvault
cstrike
csx
hamsandwich

Dalintis šį pranešimą


Nuoroda iki šio pranešimo
Dalintis per kitą puslapį







Nebutu paprasčiau nueit į zp_zombieclasses.ini

ir pvz:

[Classic Zombie]
NAME = Paprastas Zombis
INFO = =Balanced=
MODELS = zombie_source
CLAWMODEL = models/zombie_plague/v_knife_zombie.mdl
HEALTH = 1800
SPEED = 5.00
GRAVITY = 1.20
KNOCKBACK = 1.00

Pakeist į

[Tavo zombio vardas]
NAME = Tavo zombio vardas
INFO = zombio info
MODELS = zombie_source (gali būt tavo skinas)
CLAWMODEL = models/zombie_plague/v_knife_zombie.mdl (gali būt tavo skinas)
HEALTH = 2000 (Gali pakeist)
SPEED = 5.00 (Gali pakeist)
GRAVITY = 1.20 (Gali pakeist)
KNOCKBACK = 1.00 (Gali pakeist)

Arba susikurk .amxx pluginą

Čia tik PVZ (neveiks) Norit kad veiktu atsisiusk http://forums.alliedmods.net/attachment.php?attachmentid=92148&d=1315403922 ir http://forums.alliedmods.net/attachment.php?attachmentid=92360&d=1315720057 :

#include 
#include 
#include 
#include 
#include 

#define PLUGIN "[Plugino pavadinimas"
#define VERSION "1.1"
#define AUTHOR "CheateR"

#define RADIUS 300
#define TASK_COOLDOWN 11111

new g_zclass_doctor
new bool:can_heal[33]
new Spr

new cvar_heal_cooldown
new cvar_heal_mode
new cvar_heal_amount

new const zclass_name[] = {"Zombis"} // Zombio vardas
new const zclass_info[] = {"| G -> Info"} // informacija
new const zclass_model[] = {"zombie_source"} // zombio skinas
new const zclass_clawmodel[] = {"models/zombie_plague/v_knife_zombie.mdl"} // Zombio rankų sinas
const zclass_health = 2500 // Gyvybės
const zclass_speed = 250 // Greitis
const Float:zclass_gravity = 1.0 // Gravitacija
const Float:zclass_knockback = 1.0 // Atšokimas

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

register_clcmd("drop", "use_skill")

cvar_heal_cooldown = register_cvar("zp_healing_cooldown", "40")
cvar_heal_mode = register_cvar("zp_healing_mode", "1") // 0 = zp_healing_amount | 1 = Max Zombie Health
cvar_heal_amount = register_cvar("zp_healing_amount", "2000")
}

public plugin_precache()
{
Spr = precache_model("sprites/zb3/zp_restore_health.spr")
g_zclass_doctor = zp_register_zombie_class(zclass_name, zclass_info, zclass_model, zclass_clawmodel, zclass_health, zclass_speed, zclass_gravity, zclass_knockback)
}

public zp_user_infected_post(id, infector)
{
if (zp_get_user_zombie(id) && zp_get_user_zombie_class(id) == g_zclass_doctor)
{
	can_heal[id] = true	
	client_print(id, print_chat, "[ZP] You are Heal Zombie, Press (G) to Heal for You and for Your Team")
}
}

public use_skill(id)
{
if (is_user_alive(id) && zp_get_user_zombie(id) && zp_get_user_zombie_class(id) == g_zclass_doctor && !zp_get_user_nemesis(id))
{
	if(can_heal[id])
	{
		new Distance
		for (new i = 1; i <= get_maxplayers(); i++)
		{
			if (is_user_alive(i) && zp_get_user_zombie(i))
			{
				Distance = get_entity_distance(i, id)
				if (Distance <= RADIUS) 
				{
					new Float:Origin[3]
					pev(i, pev_origin, Origin)

					Origin[2] = Origin[2] + 20.0

					message_begin(MSG_BROADCAST, SVC_TEMPENTITY)
					write_byte(TE_SPRITE)
					engfunc(EngFunc_WriteCoord, Origin[0])
					engfunc(EngFunc_WriteCoord, Origin[1])
					engfunc(EngFunc_WriteCoord, Origin[2])
					write_short(Spr) 
					write_byte(0) 
					write_byte(200)
					message_end()

					if(get_pcvar_num(cvar_heal_mode) == 0)
					{
						if(get_user_health(i) < zp_get_zombie_maxhealth(i))
						{
							set_user_health(i, get_user_health(i) + get_pcvar_num(cvar_heal_amount))
						}
					} else if(get_pcvar_num(cvar_heal_mode) == 1) {
						set_user_health(id, zp_get_zombie_maxhealth(id))
					}

					client_print(i, print_chat, "[ZP] You have been Healed !!!")
				}
			}
		}

		can_heal[id] = false
		set_task(get_pcvar_float(cvar_heal_cooldown), "reset_cooldown", id+TASK_COOLDOWN)
	} else {
		client_print(id, print_chat, "[ZP] You can't Heal at this time...")
	}
}
}

public reset_cooldown(taskid)
{
new id = taskid - TASK_COOLDOWN
if (is_user_alive(id) && zp_get_user_zombie(id) && zp_get_user_zombie_class(id) == g_zclass_doctor && !zp_get_user_nemesis(id))
{
	can_heal[id] = true
	client_print(id, print_chat, "[ZP] Now. You can't use your skill. Press (G) to Heal for You and for Your Team")
}
}

Jei kažkas neaišku Skype: cheater.lt

Jei padėjau +REP :)

Dalintis šį pranešimą


Nuoroda iki šio pranešimo
Dalintis per kitą puslapį



Komentuoti gali tik prisijungę nariai

Jeigu turite paskyrą, prisijunkite

Sukurti paskyrą

Sukurkite paskyrą mūsų forume

Registruotis

Prisijungti

Turite paskyrą? Prisijunkite

Prisijungti dabar

  • Narių peržiūri šį forumą:   0 nariai

    Nėra registruotų narių peržiūrinčių šį forumą.


  • SuperGames programele
  • SuperGames programele


×