[ZPXP] Class Human

Descarcari de pluginuri si discutii despre acestea.

Moderators: Moderatori ajutători, Scripteri TheXForce

Post Reply
User avatar
Rainq
Fost administrator
Fost administrator
Posts: 381
Joined: Mon Jan 18, 2021 7:25 am
Status: Citesc forumul TheXForce.RO...!
Detinator Steam: Da
SteamID: mrainq
Gaming experience: Nu spun..
Reputatie: Fost administrator
Nume anterior: Light
Fost detinator zm.thexforce.ro
Fost detinator dr.thexforce.ro
Location: Bucureşti
Has thanked: 2 times
Been thanked: 1 time
Contact:

[ZPXP] Class Human

Post by Rainq »

Descriere: Un plugin care cuprinde mai multe clase de human fara abilitati , e mai usor sa ai un simplu plugin decat 20 ce fac acelasi lucru.
Descarcare:

Code: Select all

#include <amxmodx>
#include <fakemeta>
#include <zombieplague>
#include <zombiexp>

new const hclass_name[] = { "Beginner Soldier" }
new const hclass_info[] = { "" } // description
new const hclass_model[] = { "" } // model
new const hclass_weapons[] = { "" } // weapons
const hclass_health = 230 // health
const hclass_speed = 240 // speed
const Float:hclass_gravity = 0.6 // gravity
const hclass_level = 1 // level required to use

new const hclass2_name[] = { "Terror Soldier" }
new const hclass2_info[] = { "" } // description
new const hclass2_model[] = { "" } // model
new const hclass2_weapons[] = { "" } // weapons
const hclass2_health = 220 // health
const hclass2_speed = 240 // speed
const Float:hclass2_gravity = 1.0 // gravity
const hclass2_level = 5 // level required to use

new const hclass3_name[] = { "Arctic Soldier" }
new const hclass3_info[] = { "" } // description
new const hclass3_model[] = { "" } // model
new const hclass3_weapons[] = { "" } // weapons
const hclass3_health = 230 // health
const hclass3_speed = 240 // speed
const Float:hclass3_gravity = 1.0 // gravity
const hclass3_level = 10 // level required to use

new const hclass4_name[] = { "Elite Soldier" }
new const hclass4_info[] = { "" } // description
new const hclass4_model[] = { "" } // model
new const hclass4_weapons[] = { "" } // weapons
const hclass4_health = 240 // health
const hclass4_speed = 240 // speed
const Float:hclass4_gravity = 1.0 // gravity
const hclass4_level = 15 // level required to use

new const hclass5_name[] = { "GoldNova Soldier" }
new const hclass5_info[] = { "" } // description
new const hclass5_model[] = { "" } // model
new const hclass5_weapons[] = { "" } // weapons
const hclass5_health = 250 // health
const hclass5_speed = 240 // speed
const Float:hclass5_gravity = 1.0 // gravity
const hclass5_level = 20 // level required to use

new const hclass6_name[] = { "Guardian Soldier" }
new const hclass6_info[] = { "" } // description
new const hclass6_model[] = { "" } // model
new const hclass6_weapons[] = { "" } // weapons
const hclass6_health = 260 // health
const hclass6_speed = 240 // speed
const Float:hclass6_gravity = 1.0 // gravity
const hclass6_level = 25 // level required to use

new const hclass7_name[] = { "Destroyer Soldier" }
new const hclass7_info[] = { "" } // description
new const hclass7_model[] = { "" } // model
new const hclass7_weapons[] = { "" } // weapons
const hclass7_health = 270 // health
const hclass7_speed = 240 // speed
const Float:hclass7_gravity = 1.0 // gravity
const hclass7_level = 30 // level required to use

new const hclass8_name[] = { "Champions Soldier" } 
new const hclass8_info[] = { "" } // description
new const hclass8_model[] = { "" } // model
new const hclass8_weapons[] = { "" } // weapons
const hclass8_health = 280 // health
const hclass8_speed = 240 // speed
const Float:hclass8_gravity = 1.0 // gravity
const hclass8_level = 35 // level required to use

new const hclass9_name[] = { "GlobalElite Soldier" }
new const hclass9_info[] = { "" } // description
new const hclass9_model[] = { "" } // model
new const hclass9_weapons[] = { "" } // weapons
const hclass9_health = 290 // health
const hclass9_speed = 240 // speed
const Float:hclass9_gravity = 1.0 // gravity
const hclass9_level = 40 // level required to use

new const hclass10_name[] = { "Army Soldier" }
new const hclass10_info[] = { "" } // description
new const hclass10_model[] = { "" } // model
new const hclass10_weapons[] = { "" } // weapons
const hclass10_health = 300 // health
const hclass10_speed = 240 // speed
const Float:hclass10_gravity = 1.0 // gravity
const hclass10_level = 45 // level required to use

new const hclass11_name[] = { "Lucifer Soldier" }
new const hclass11_info[] = { "" } // description
new const hclass11_model[] = { "" } // model
new const hclass11_weapons[] = { "" } // weapons
const hclass11_health = 300 // health
const hclass11_speed = 240 // speed
const Float:hclass11_gravity = 1.0 // gravity
const hclass11_level = 50 // level required to use

new const hclass12_name[] = { "PoweR Soldier" }
new const hclass12_info[] = { "" } // description
new const hclass12_model[] = { "" } // model
new const hclass12_weapons[] = { "" } // weapons
const hclass12_health = 320 // health
const hclass12_speed = 250 // speed
const Float:hclass12_gravity = 1.0 // gravity
const hclass12_level = 55 // level required to use

new const hclass13_name[] = { "Spawn Soldier" }
new const hclass13_info[] = { "" } // description
new const hclass13_model[] = { "" } // model
new const hclass13_weapons[] = { "" } // weapons
const hclass13_health = 330 // health
const hclass13_speed = 250 // speed
const Float:hclass13_gravity = 1.0 // gravity
const hclass13_level = 60 // level required to use

new const hclass14_name[] = { "NightWolf Soldier" }
new const hclass14_info[] = { "" } // description
new const hclass14_model[] = { "" } // model
new const hclass14_weapons[] = { "" } // weapons
const hclass14_health = 340 // health
const hclass14_speed = 250 // speed
const Float:hclass14_gravity = 1.0 // gravity
const hclass14_level = 65 // level required to use


new const hclass15_name[] = { "Myers Soldier" }
new const hclass15_info[] = { "" } // description
new const hclass15_model[] = { "" } // model
new const hclass15_weapons[] = { "" } // weapons
const hclass15_health = 350 // health
const hclass15_speed = 250 // speed
const Float:hclass15_gravity = 1.0 // gravity
const hclass15_level = 70 // level required to use

new const hclass16_name[] = { "TheBest Soldier" }
new const hclass16_info[] = { "" } // description
new const hclass16_model[] = { "" } // model
new const hclass16_weapons[] = { "" } // weapons
const hclass16_health = 360 // health
const hclass16_speed = 250 // speed
const Float:hclass16_gravity = 1.0 // gravity
const hclass16_level = 75 // level required to use

new const hclass17_name[] = { "Blade Soldier" }
new const hclass17_info[] = { "" } // description
new const hclass17_model[] = { "" } // model
new const hclass17_weapons[] = { "" } // weapons
const hclass17_health = 370 // health
const hclass17_speed = 250 // speed
const Float:hclass17_gravity = 1.0 // gravity
const hclass17_level = 80 // level required to use

new const hclass18_name[] = { "Legendary Soldier" }
new const hclass18_info[] = { "" } // description
new const hclass18_model[] = { "" } // model
new const hclass18_weapons[] = { "" } // weapons
const hclass18_health = 380 // health
const hclass18_speed = 250 // speed
const Float:hclass18_gravity = 1.0 // gravity
const hclass18_level = 85 // level required to use

new const hclass19_name[] = { "MeRcyLeZZ Soldier" }
new const hclass19_info[] = { "" } // description
new const hclass19_model[] = { "" } // model
new const hclass19_weapons[] = { "" } // weapons
const hclass19_health = 390 // health
const hclass19_speed = 250 // speed
const Float:hclass19_gravity = 1.0 // gravity
const hclass19_level = 90 // level required to use

new const hclass20_name[] = { "eXtreme Soldier" }
new const hclass20_info[] = { "" } // description
new const hclass20_model[] = { "" } // model
new const hclass20_weapons[] = { "" } // weapons
const hclass20_health = 420 // health
const hclass20_speed = 270 // speed
const Float:hclass20_gravity = 0.6 // gravity
const hclass20_level = 100 // level required to use

new g_hclassid , g_hclass2id , g_hclass3id, g_hclass4id , g_hclass5id , g_hclass6id , g_hclass7id , g_hclass8id , g_hclass9id, 
g_hclass10id, g_hclass11id , g_hclass12id , g_hclass13id , g_hclass14id, g_hclass15id , g_hclass16id, g_hclass17id, g_hclass18id, g_hclass19id , g_hclass20id

public plugin_precache()
{
	new registerText[32]
	formatex( registerText, sizeof registerText - 1, "[ZPXP] %s human", hclass_name)
	
	register_plugin(registerText, "1.0", "TheXForce")
	
	g_hclassid = zpxp_register_human_class(hclass_name, hclass_info, hclass_model, hclass_weapons, hclass_health, hclass_speed, hclass_gravity, hclass_level)
	g_hclass2id = zpxp_register_human_class(hclass2_name, hclass2_info, hclass2_model, hclass2_weapons, hclass2_health, hclass2_speed, hclass2_gravity, hclass2_level)
	g_hclass3id = zpxp_register_human_class(hclass3_name, hclass3_info, hclass3_model, hclass3_weapons, hclass3_health, hclass3_speed, hclass3_gravity, hclass3_level)
	g_hclass4id = zpxp_register_human_class(hclass4_name, hclass4_info, hclass4_model, hclass4_weapons, hclass4_health, hclass4_speed, hclass4_gravity, hclass4_level)
	g_hclass5id = zpxp_register_human_class(hclass5_name, hclass5_info, hclass5_model, hclass5_weapons, hclass5_health, hclass5_speed, hclass5_gravity, hclass5_level)
	g_hclass6id = zpxp_register_human_class(hclass6_name, hclass6_info, hclass6_model, hclass6_weapons, hclass6_health, hclass6_speed, hclass6_gravity, hclass6_level)
	g_hclass7id = zpxp_register_human_class(hclass7_name, hclass7_info, hclass7_model, hclass7_weapons, hclass7_health, hclass7_speed, hclass7_gravity, hclass7_level)
	g_hclass8id = zpxp_register_human_class(hclass8_name, hclass8_info, hclass8_model, hclass8_weapons, hclass8_health, hclass8_speed, hclass8_gravity, hclass8_level)
	g_hclass9id = zpxp_register_human_class(hclass9_name, hclass9_info, hclass9_model, hclass9_weapons, hclass9_health, hclass9_speed, hclass9_gravity, hclass9_level)
	g_hclass10id = zpxp_register_human_class(hclass10_name, hclass10_info, hclass10_model, hclass10_weapons, hclass10_health, hclass10_speed, hclass10_gravity, hclass10_level)
	g_hclass11id = zpxp_register_human_class(hclass11_name, hclass11_info, hclass11_model, hclass11_weapons, hclass11_health, hclass11_speed, hclass11_gravity, hclass11_level)
	g_hclass12id = zpxp_register_human_class(hclass12_name, hclass12_info, hclass12_model, hclass12_weapons, hclass12_health, hclass12_speed, hclass12_gravity, hclass12_level)
	g_hclass13id = zpxp_register_human_class(hclass13_name, hclass13_info, hclass13_model, hclass13_weapons, hclass13_health, hclass13_speed, hclass13_gravity, hclass13_level)
	g_hclass14id = zpxp_register_human_class(hclass14_name, hclass14_info, hclass14_model, hclass14_weapons, hclass14_health, hclass14_speed, hclass14_gravity, hclass14_level)
	g_hclass15id = zpxp_register_human_class(hclass15_name, hclass15_info, hclass15_model, hclass15_weapons, hclass15_health, hclass15_speed, hclass15_gravity, hclass15_level)
	g_hclass16id = zpxp_register_human_class(hclass16_name, hclass16_info, hclass16_model, hclass16_weapons, hclass16_health, hclass16_speed, hclass16_gravity, hclass16_level)
	g_hclass17id = zpxp_register_human_class(hclass17_name, hclass17_info, hclass17_model, hclass17_weapons, hclass17_health, hclass17_speed, hclass17_gravity, hclass17_level)
	g_hclass18id = zpxp_register_human_class(hclass18_name, hclass18_info, hclass18_model, hclass18_weapons, hclass18_health, hclass18_speed, hclass18_gravity, hclass18_level)
	g_hclass19id = zpxp_register_human_class(hclass19_name, hclass19_info, hclass19_model, hclass19_weapons, hclass19_health, hclass19_speed, hclass19_gravity, hclass19_level)					
	g_hclass20id = zpxp_register_human_class(hclass20_name, hclass20_info, hclass20_model, hclass20_weapons, hclass20_health, hclass20_speed, hclass20_gravity, hclass20_level)

	if(g_hclassid == -1)
	{
		server_print("[ZPXP] You have not properly setup your Zombie XP Mod.");
	}
}

public zp_user_infected_post(id, infector, nemesis)
{
	if (zp_get_user_human_class(id) != g_hclassid) return;
	if (zp_get_user_human_class(id) != g_hclass2id) return;
	if (zp_get_user_human_class(id) != g_hclass3id) return;
	if (zp_get_user_human_class(id) != g_hclass4id) return;
	if (zp_get_user_human_class(id) != g_hclass5id) return;
	if (zp_get_user_human_class(id) != g_hclass6id) return;
	if (zp_get_user_human_class(id) != g_hclass7id) return;
	if (zp_get_user_human_class(id) != g_hclass8id) return;
	if (zp_get_user_human_class(id) != g_hclass9id) return;
	if (zp_get_user_human_class(id) != g_hclass10id) return;
	if (zp_get_user_human_class(id) != g_hclass11id) return;
	if (zp_get_user_human_class(id) != g_hclass12id) return;
	if (zp_get_user_human_class(id) != g_hclass13id) return;
	if (zp_get_user_human_class(id) != g_hclass14id) return;
	if (zp_get_user_human_class(id) != g_hclass15id) return;
	if (zp_get_user_human_class(id) != g_hclass16id) return;
	if (zp_get_user_human_class(id) != g_hclass17id) return;
	if (zp_get_user_human_class(id) != g_hclass18id) return;
	if (zp_get_user_human_class(id) != g_hclass19id) return;
	if (zp_get_user_human_class(id) != g_hclass20id) return;
}

public zp_user_humanized_post(id)
{
	if (zp_get_user_human_class(id) != g_hclassid) return;
	if (zp_get_user_human_class(id) != g_hclass2id) return;
	if (zp_get_user_human_class(id) != g_hclass3id) return;
	if (zp_get_user_human_class(id) != g_hclass4id) return;
	if (zp_get_user_human_class(id) != g_hclass5id) return;
	if (zp_get_user_human_class(id) != g_hclass6id) return;
	if (zp_get_user_human_class(id) != g_hclass7id) return;
	if (zp_get_user_human_class(id) != g_hclass8id) return;
	if (zp_get_user_human_class(id) != g_hclass9id) return;
	if (zp_get_user_human_class(id) != g_hclass10id) return;
	if (zp_get_user_human_class(id) != g_hclass11id) return;
	if (zp_get_user_human_class(id) != g_hclass12id) return;
	if (zp_get_user_human_class(id) != g_hclass13id) return;
	if (zp_get_user_human_class(id) != g_hclass14id) return;
	if (zp_get_user_human_class(id) != g_hclass15id) return;
	if (zp_get_user_human_class(id) != g_hclass16id) return;
	if (zp_get_user_human_class(id) != g_hclass17id) return;
	if (zp_get_user_human_class(id) != g_hclass18id) return;
	if (zp_get_user_human_class(id) != g_hclass19id) return;
	if (zp_get_user_human_class(id) != g_hclass20id) return;

	if (zp_get_user_survivor(id) == 1)
	{
		zp_user_infected_post(id, 0, 0)
	} 
	else 
	{
		zp_round_started_human(id)
	}
}

public zp_round_started_human(id)
{
	if (zp_get_user_human_class(id) != g_hclassid) return;
	if (zp_get_user_human_class(id) != g_hclass2id) return;
	if (zp_get_user_human_class(id) != g_hclass3id) return;
	if (zp_get_user_human_class(id) != g_hclass4id) return;
	if (zp_get_user_human_class(id) != g_hclass5id) return;
	if (zp_get_user_human_class(id) != g_hclass6id) return;
	if (zp_get_user_human_class(id) != g_hclass7id) return;
	if (zp_get_user_human_class(id) != g_hclass8id) return;
	if (zp_get_user_human_class(id) != g_hclass9id) return;
	if (zp_get_user_human_class(id) != g_hclass10id) return;
	if (zp_get_user_human_class(id) != g_hclass11id) return;
	if (zp_get_user_human_class(id) != g_hclass12id) return;
	if (zp_get_user_human_class(id) != g_hclass13id) return;
	if (zp_get_user_human_class(id) != g_hclass14id) return;
	if (zp_get_user_human_class(id) != g_hclass15id) return;
	if (zp_get_user_human_class(id) != g_hclass16id) return;
	if (zp_get_user_human_class(id) != g_hclass17id) return;
	if (zp_get_user_human_class(id) != g_hclass18id) return;
	if (zp_get_user_human_class(id) != g_hclass19id) return;
	if (zp_get_user_human_class(id) != g_hclass20id) return;
}
Nume: ZPXP Class Human
Versiune: -
Link oficial: cspower / thexforce

Instalare:
1. Fisierul zp_classxp_human.sma il puneti in addons/amxmodx/scripting
2. Fisierul zp_classxp_human.amxx il puneti in addons/amxmodx/plugins
3. Intrati in fisierul addons/amxmodx/configs/plugins.ini si adaugati la urma:

Code: Select all

zp_classxp_human.amxx
4. Alti pasi necesari....

Cvar-uri (se adauga in fisierul amxmodx\configs\amxx.cfg): -
Imagini: -
Image
Post Reply

Return to “Pluginuri”