←  Problemy

AMXX.pl: Support AMX Mod X i SourceMod

»

Zombie Plague 5.0
Klasa do zm plague 5.0.8

  • +
  • -
Kogut - zdjęcie Kogut 12.01.2013

Mam błąd przy kompilowaniu klasy ,a dokladnie chodzi o to ze dodalem tej klasie 20 armora ale nei wiem jak to trzeba zarejestrować
Kod

/*================================================================================

----------------------------------
-*- [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_human>
#include <fun>

// Classic Human Attributes
new const humanclass1_name[] = "Sprinter"
new const humanclass1_info[] = "Speed++"
new const humanclass1_models[][] = { "arctic" , "guerilla" , "leet" , "terror" , "gign" , "gsg9" , "sas" , "urban" }
const humanclass1_health = 100
const Float:humanclass1_speed = 1.20
const Float:humanclass1_gravity = 1.0

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])
}


{
cs_set_user_armor(id,20)

}


Odpowiedz

Gość_21977_* 15.01.2013

Automatyczna wiadomość


Ten temat został przeniesiony z forum

Scripting AMXXProblemy

do

ModyZombieProblemy
Odpowiedz