←  Dyskusje/Pomysły/Pytania

AMXX.pl: Support AMX Mod X i SourceMod

»

Zombie Plague 5.0
jak zrobić klasę premium zombie plague 5.0.5

  • +
  • -
Grzegorz93 - zdjęcie Grzegorz93 23.02.2012

Tak jak w temacie, jak zrobić klasę premium w Zombie Plague 5.0.5 ?

Mam już coś takiego i działa, ale jak nie mam flagi "t" to nie mogę wybrać żadnej klasy..


#include <amxmisc>
#include <amxmodx>
#include <zp50_class_human>


// Classic Human Attributes
new const humanclass1_name[] = "Classic Human"
new const humanclass1_info[] = "=Balanced="
new const humanclass1_models[][] = { "arctic" , "guerilla" , "leet" , "terror" , "gign" , "gsg9" , "sas" , "urban" }
const humanclass1_health = 100
const Float:humanclass1_speed = 1.0
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])
}

public zp_fw_class_human_select_pre(id,cid)
{
if(!(get_user_flags(id) & ADMIN_LEVEL_H))
{
return ZP_CLASS_NOT_AVAILABLE
}
return ZP_CLASS_AVAILABLE
}

Załączone pliki

Odpowiedz

  • +
  • -
Grzegorz93 - zdjęcie Grzegorz93 25.02.2012

refresh
Odpowiedz

  • +
  • -
Hiroshima - zdjęcie Hiroshima 25.02.2012

Automatyczna wiadomość


Ten temat został przeniesiony z forum:
AMX Mod X > Pytania
do
Mody > Inne mody > Pytania

Odpowiedz

  • +
  • -
Grzegorz93 - zdjęcie Grzegorz93 26.02.2012

refresh
Odpowiedz

  • +
  • -
Grzegorz93 - zdjęcie Grzegorz93 27.02.2012

refresh
Odpowiedz

  • +
  • -
Grzegorz93 - zdjęcie Grzegorz93 29.02.2012

refresh
Odpowiedz