Discord sunucumuz açılmıştır, hepinizi bekleriz

https://discord.gg/43gGDQe6tS

Zombie Server Karakter Hp'si yükseltme ?

Oyunda karşılaştığınız hatalar , oyun hakkında genel bilgiler

Moderatör: Moderatörler


Konu Sahibi
crayz
Mesajlar: 93
Kayıt: Sal Şub 21, 2017 12:53 am

Zombie Server Karakter Hp'si yükseltme ?

Mesaj gönderen crayz »

zombi serverda zombiler human karakterine tek dokonuşta zombi yapıyor bunu 3 yada 4 dokunuşta zombi yapabilmesi için humanın healthini nasıl yükseltirim..sma içindeki health kısmından rakamı yükselttim değişen bişey olmadı yardım pls..

Kod: Tümünü seç

/*================================================================================
	
	----------------------------------
	-*- [ZP] Class: Human: Classic -*-
	----------------------------------
	
	This plugin is part of Zombie Plague Mod and is distributed under the
	terms of the GNU General Public License. Check ZP_ReadMe.txt for details.
	
================================================================================*/

#include <amxmodx>
#include <zp50_class_humann>

// Classic Human Attributes
new const humanclass1_name[] = "Yuri"
new const humanclass1_info[] = "= Ayarli ="
new const humanclass1_models[][] = { "cso_yuri" }
const humanclass1_health = 200
const Float:humanclass1_speed = 1.15
const Float:humanclass1_gravity = 0.7

new g_HumanClassID

public plugin_precache()
{
	register_plugin("[ZP] Class: Human: Classic", ZP_VERSION_STRING, "ZP Dev Team")
	
	g_HumanClassID = zp_class_human_register(humanclass1_name, humanclass1_info, humanclass1_health, humanclass1_speed, humanclass1_gravity)
	new index
	for (index = 0; index < sizeof humanclass1_models; index++)
		zp_class_human_register_model(g_HumanClassID, humanclass1_models[index])
}

#if defined _cs_ham_bots_api_included
  #endinput
#endif
#define _cs_ham_bots_api_included

#if AMXX_VERSION_NUM >= 175
	#pragma reqlib cs_ham_bots_api
	#if !defined AMXMODX_NOAUTOLOAD
		#pragma loadlib cs_ham_bots_api
	#endif
#else
	#pragma library cs_ham_bots_api
#endif

/**
 * Hooks the virtual table for CZ Bots entity class.
 * An example would be: RegisterHamBots(Ham_TakeDamage, "player_hurt");
 * Look at the Ham enum for parameter lists.
 *
 * @param function		The function to hook.
 * @param callback		The forward to call.
 * @param post			Whether or not to forward this in post.
 * @return 				Returns a handle to the forward.  Use EnableHamForwardBots/DisableHamForwardBots to toggle the forward on or off.
 */
native RegisterHamBots(Ham:function, const Callback[], Post=0);

/**
 * Stops a ham forward from triggering for CZ Bots.
 * Use the return value from RegisterHamBots as the parameter here!
 *
 * @param fwd			The forward to stop.
 */
native DisableHamForwardBots(fwd);

/**
 * Starts a ham forward back up for CZ Bots.
 * Use the return value from RegisterHamBots as the parameter here!
 *
 * @param fwd			The forward to re-enable.
 */
native EnableHamForwardBots(fwd);

Link:
Linklerini gizle
Linki Kopyala

TheAsTeRiX
Mesajlar: 718
Kayıt: Cmt Oca 14, 2017 5:30 pm
Konum: Makedonya
Clan İsmi: Skull Gaming

Zombie Server Karakter Hp'si yükseltme ?

Mesaj gönderen TheAsTeRiX »

crayz yazdı:zombi serverda zombiler human karakterine tek dokonuşta zombi yapıyor bunu 3 yada 4 dokunuşta zombi yapabilmesi için humanın healthini nasıl yükseltirim..sma içindeki health kısmından rakamı yükselttim değişen bişey olmadı yardım pls..

Kod: Tümünü seç

/*================================================================================
	
	----------------------------------
	-*- [ZP] Class: Human: Classic -*-
	----------------------------------
	
	This plugin is part of Zombie Plague Mod and is distributed under the
	terms of the GNU General Public License. Check ZP_ReadMe.txt for details.
	
================================================================================*/

#include <amxmodx>
#include <zp50_class_humann>

// Classic Human Attributes
new const humanclass1_name[] = "Yuri"
new const humanclass1_info[] = "= Ayarli ="
new const humanclass1_models[][] = { "cso_yuri" }
const humanclass1_health = 200
const Float:humanclass1_speed = 1.15
const Float:humanclass1_gravity = 0.7

new g_HumanClassID

public plugin_precache()
{
	register_plugin("[ZP] Class: Human: Classic", ZP_VERSION_STRING, "ZP Dev Team")
	
	g_HumanClassID = zp_class_human_register(humanclass1_name, humanclass1_info, humanclass1_health, humanclass1_speed, humanclass1_gravity)
	new index
	for (index = 0; index < sizeof humanclass1_models; index++)
		zp_class_human_register_model(g_HumanClassID, humanclass1_models[index])
}

#if defined _cs_ham_bots_api_included
  #endinput
#endif
#define _cs_ham_bots_api_included

#if AMXX_VERSION_NUM >= 175
	#pragma reqlib cs_ham_bots_api
	#if !defined AMXMODX_NOAUTOLOAD
		#pragma loadlib cs_ham_bots_api
	#endif
#else
	#pragma library cs_ham_bots_api
#endif

/**
 * Hooks the virtual table for CZ Bots entity class.
 * An example would be: RegisterHamBots(Ham_TakeDamage, "player_hurt");
 * Look at the Ham enum for parameter lists.
 *
 * @param function		The function to hook.
 * @param callback		The forward to call.
 * @param post			Whether or not to forward this in post.
 * @return 				Returns a handle to the forward.  Use EnableHamForwardBots/DisableHamForwardBots to toggle the forward on or off.
 */
native RegisterHamBots(Ham:function, const Callback[], Post=0);

/**
 * Stops a ham forward from triggering for CZ Bots.
 * Use the return value from RegisterHamBots as the parameter here!
 *
 * @param fwd			The forward to stop.
 */
native DisableHamForwardBots(fwd);

/**
 * Starts a ham forward back up for CZ Bots.
 * Use the return value from RegisterHamBots as the parameter here!
 *
 * @param fwd			The forward to re-enable.
 */
native EnableHamForwardBots(fwd);
İstersen 90K HP yap,yine tek yemesini engelleyemezsin.Armor vermek zorundasın.

Link:
Linklerini gizle
Linki Kopyala
Cevapla