Tentei compilar a .sma do zclasses40 que editei, ela da um que não sei arrumar erro.
Error : error 025: function heading differs from prototype
Alguem pode me ajudar, Agradeço!
.SMA do zp_zclasses40 :
Quem ajudar ganha meu REP++
Error : error 025: function heading differs from prototype
Alguem pode me ajudar, Agradeço!
.SMA do zp_zclasses40 :
SMA zclasses40 :
/*================================================================================
-----------------------------------
-*- [ZP] Default Zombie Classes -*-
-----------------------------------
~~~~~~~~~~~~~~~
- Description -
~~~~~~~~~~~~~~~
This plugin adds the default zombie classes to Zombie Plague.
Feel free to modify their attributes to your liking.
Note: If zombie classes are disabled, the first registered class
will be used for all players (by default, Classic Zombie).
================================================================================*/
#include < amxmodx >
#include < fakemeta >
#include < zombieplague >
/*================================================================================
[Plugin Customization]
=================================================================================*/
// Classic Zombie Attributes
new const zclass1_name[] = { "Zombie Classico" }
new const zclass1_info[] = { "[Balanceado]" }
new const zclass1_model[] = { "zombie_source" }
new const zclass1_clawmodel[] = { "v_knife_zombie.mdl" }
const zclass1_health = 1800
const zclass1_speed = 230
const Float:zclass1_gravity = 1.0
const Float:zclass1_knockback = 1.0
// Raptor Zombie Attributes
new const zclass2_name[] = { "Zombie Rapido" }
new const zclass2_info[] = { "[Velocidade]" }
new const zclass2_model[] = { "zombie_source" }
new const zclass2_clawmodel[] = { "v_knife_zombie.mdl" }
const zclass2_health = 2200
const zclass2_speed = 270
const Float:zclass2_gravity = 1.0
const Float:zclass2_knockback = 1.5
// Poison Zombie Attributes
new const zclass3_name[] = { "Zombie Leve" }
new const zclass3_info[] = { "[Gravidade]" }
new const zclass3_model[] = { "zombie_leve" }
new const zclass3_clawmodel[] = { "v_knife_zombie.mdl" }
const zclass3_health = 3000
const zclass3_speed = 250
const Float:zclass3_gravity = 0.4
const Float:zclass3_knockback = 1.5
// Big Zombie Attributes
new const zclass4_name[] = { "Zombie Tanker" }
new const zclass4_info[] = { "[FULL HP]" }
new const zclass4_model[] = { "zombie_Tanker" }
new const zclass4_clawmodel[] = { "v_knife_FULL.mdl" }
const zclass4_health = 4500
const zclass4_speed = 250
const Float:zclass4_gravity = 1.0
const Float:zclass4_knockback = 1.0
// Leech Zombie Attributes
new const zclass5_name[] = { "Zombie Leech" }
new const zclass5_info[] = { "[Ganancioso]" }
new const zclass5_model[] = { "zombie_source" }
new const zclass5_clawmodel[] = { "v_knife_zombie.mdl" }
const zclass5_health = 2000
const zclass5_speed = 230
const Float:zclass5_gravity = 0.7
const Float:zclass5_knockback = 1.25
const zclass5_infect_reward = 200 // extra hp for infections
/*============================================================================*/
// Class Bools
new bool:g_leech[33]
// Class IDs
new g_zclass_leech
// Zombie Classes must be registered on plugin_precache
public plugin_precache()
{
register_plugin("[ZP] Default Zombie Classes", "4.3", "MeRcyLeZZ")
// Register all classes
zp_register_zombie_class(zclass1_name, zclass1_info, zclass1_model, zclass1_clawmodel, zclass1_health, zclass1_speed, zclass1_gravity, zclass1_knockback)
zp_register_zombie_class(zclass2_name, zclass2_info, zclass2_model, zclass2_clawmodel, zclass2_health, zclass2_speed, zclass2_gravity, zclass2_knockback)
zp_register_zombie_class(zclass3_name, zclass3_info, zclass3_model, zclass3_clawmodel, zclass3_health, zclass3_speed, zclass3_gravity, zclass3_knockback)
zp_register_zombie_class(zclass4_name, zclass4_info, zclass4_model, zclass4_clawmodel, zclass4_health, zclass4_speed, zclass4_gravity, zclass4_knockback)
g_zclass_leech = zp_register_zombie_class(zclass5_name, zclass5_info, zclass5_model, zclass5_clawmodel, zclass5_health, zclass5_speed, zclass5_gravity, zclass5_knockback)
}
// Player Disconnected forward
public client_disconnect(id)
{
g_leech[id] = false
}
// User Spawned forward
public zp_user_spawned_post(id)
{
g_leech[id] = false
}
// User Humanized forward
public zp_user_humanized_post(id, survivor, sniper)
{
g_leech[id] = false
}
// User Infected forward
public zp_user_infected_post(id, infector, nemesis, assassin)
{
if (zp_get_user_zombie_class(id) != g_zclass_leech || nemesis || assassin)
{
g_leech[id] = false
return;
}
g_leech[id] = true
}
// User Killed forward
public zp_user_killed_post(victim, attacker)
{
g_leech[victim] = false
if (!g_leech[attacker])
return;
set_pev(attacker, pev_health, float(pev(attacker, pev_health) + zclass5_infect_reward))
}
-----------------------------------
-*- [ZP] Default Zombie Classes -*-
-----------------------------------
~~~~~~~~~~~~~~~
- Description -
~~~~~~~~~~~~~~~
This plugin adds the default zombie classes to Zombie Plague.
Feel free to modify their attributes to your liking.
Note: If zombie classes are disabled, the first registered class
will be used for all players (by default, Classic Zombie).
================================================================================*/
#include < amxmodx >
#include < fakemeta >
#include < zombieplague >
/*================================================================================
[Plugin Customization]
=================================================================================*/
// Classic Zombie Attributes
new const zclass1_name[] = { "Zombie Classico" }
new const zclass1_info[] = { "[Balanceado]" }
new const zclass1_model[] = { "zombie_source" }
new const zclass1_clawmodel[] = { "v_knife_zombie.mdl" }
const zclass1_health = 1800
const zclass1_speed = 230
const Float:zclass1_gravity = 1.0
const Float:zclass1_knockback = 1.0
// Raptor Zombie Attributes
new const zclass2_name[] = { "Zombie Rapido" }
new const zclass2_info[] = { "[Velocidade]" }
new const zclass2_model[] = { "zombie_source" }
new const zclass2_clawmodel[] = { "v_knife_zombie.mdl" }
const zclass2_health = 2200
const zclass2_speed = 270
const Float:zclass2_gravity = 1.0
const Float:zclass2_knockback = 1.5
// Poison Zombie Attributes
new const zclass3_name[] = { "Zombie Leve" }
new const zclass3_info[] = { "[Gravidade]" }
new const zclass3_model[] = { "zombie_leve" }
new const zclass3_clawmodel[] = { "v_knife_zombie.mdl" }
const zclass3_health = 3000
const zclass3_speed = 250
const Float:zclass3_gravity = 0.4
const Float:zclass3_knockback = 1.5
// Big Zombie Attributes
new const zclass4_name[] = { "Zombie Tanker" }
new const zclass4_info[] = { "[FULL HP]" }
new const zclass4_model[] = { "zombie_Tanker" }
new const zclass4_clawmodel[] = { "v_knife_FULL.mdl" }
const zclass4_health = 4500
const zclass4_speed = 250
const Float:zclass4_gravity = 1.0
const Float:zclass4_knockback = 1.0
// Leech Zombie Attributes
new const zclass5_name[] = { "Zombie Leech" }
new const zclass5_info[] = { "[Ganancioso]" }
new const zclass5_model[] = { "zombie_source" }
new const zclass5_clawmodel[] = { "v_knife_zombie.mdl" }
const zclass5_health = 2000
const zclass5_speed = 230
const Float:zclass5_gravity = 0.7
const Float:zclass5_knockback = 1.25
const zclass5_infect_reward = 200 // extra hp for infections
/*============================================================================*/
// Class Bools
new bool:g_leech[33]
// Class IDs
new g_zclass_leech
// Zombie Classes must be registered on plugin_precache
public plugin_precache()
{
register_plugin("[ZP] Default Zombie Classes", "4.3", "MeRcyLeZZ")
// Register all classes
zp_register_zombie_class(zclass1_name, zclass1_info, zclass1_model, zclass1_clawmodel, zclass1_health, zclass1_speed, zclass1_gravity, zclass1_knockback)
zp_register_zombie_class(zclass2_name, zclass2_info, zclass2_model, zclass2_clawmodel, zclass2_health, zclass2_speed, zclass2_gravity, zclass2_knockback)
zp_register_zombie_class(zclass3_name, zclass3_info, zclass3_model, zclass3_clawmodel, zclass3_health, zclass3_speed, zclass3_gravity, zclass3_knockback)
zp_register_zombie_class(zclass4_name, zclass4_info, zclass4_model, zclass4_clawmodel, zclass4_health, zclass4_speed, zclass4_gravity, zclass4_knockback)
g_zclass_leech = zp_register_zombie_class(zclass5_name, zclass5_info, zclass5_model, zclass5_clawmodel, zclass5_health, zclass5_speed, zclass5_gravity, zclass5_knockback)
}
// Player Disconnected forward
public client_disconnect(id)
{
g_leech[id] = false
}
// User Spawned forward
public zp_user_spawned_post(id)
{
g_leech[id] = false
}
// User Humanized forward
public zp_user_humanized_post(id, survivor, sniper)
{
g_leech[id] = false
}
// User Infected forward
public zp_user_infected_post(id, infector, nemesis, assassin)
{
if (zp_get_user_zombie_class(id) != g_zclass_leech || nemesis || assassin)
{
g_leech[id] = false
return;
}
g_leech[id] = true
}
// User Killed forward
public zp_user_killed_post(victim, attacker)
{
g_leech[victim] = false
if (!g_leech[attacker])
return;
set_pev(attacker, pev_health, float(pev(attacker, pev_health) + zclass5_infect_reward))
}
Quem ajudar ganha meu REP++