Useless Stuffs, Spam ... etc
-
Templaso
- Senior Member
- Posts: 119
- Joined: 5 years ago
- Location: Bucharest
-
Contact:
-
Quote
-
0
login to like this post
#51
Post
by Templaso » 4 years ago
Raheem wrote: ↑4 years ago
Try and use final released compiler:
/*
Version 1.1:
What is News ?
1- Added Lonjump Plugin To Nemsesis Zombies
2- The Nemesis round now is in the last round
3- Fixed Bugs & Some Problems
And Special thanks to Jack Gameplay
*/
#include <zombie_escape>
new MaxRounds
new RoundCount
native give_longjump(id)
new const v_model[] = "models/zombie_escape/Nemesis_Claws.mdl"
new const g_szNemsisModel[] = "Nemesis_Zombie"
public plugin_init()
{
register_plugin("[ZE] Nemsis round", "1.1", "Kaya Gaming")
register_event("TextMsg", "new_map_or_restart", "a", "2&#Game_C", "2&#Game_w")
MaxRounds = get_cvar_pointer("mp_maxrounds")
}
public plugin_precache()
{
new szModelPath[32]
precache_model(v_model)
formatex(szModelPath, charsmax(szModelPath), "models/player/%s/%s.mdl", g_szNemsisModel, g_szNemsisModel)
precache_model(szModelPath)
}
public ze_roundend()
{
RoundCount++
}
public new_map_or_restart()
{
RoundCount = 0
}
public ze_zombie_appear(id)
{
if(get_pcvar_num(MaxRounds) - RoundCount == 1)
{
set_task(0.1, "models", id)
claws_model(id)
messages(id)
give_longjump(id)
}
}
public ze_user_infected_pre(iVictim, iInfector, iDamage)
{
if(get_pcvar_num(MaxRounds) - RoundCount != 1)
return 0;
new g_attacker = read_data(1);
new g_victim = read_data(2);
if(g_victim != g_attacker && ze_is_user_zombie(g_attacker))
{
set_task(0.01, "kill_no_infect", g_victim)
}
return 1;
}
public kill_no_infect(id)
{
user_silentkill(id)
}
public models(id)
{
if(ze_is_user_zombie(id) && get_pcvar_num(MaxRounds) - RoundCount == 1)
{
rg_reset_user_model(id)
rg_set_user_model(id, g_szNemsisModel)
}
}
public messages(id)
{
PlaySound(id, "zombie_escape/nemesis_fantasy_scream.wav")
}
public claws_model(id)
{
if(get_pcvar_num(MaxRounds) - RoundCount == 1 && get_user_weapon(id) == CSW_KNIFE && ze_is_user_zombie(id))
{
rg_give_item(id, "weapon_knife")
set_pev(id, pev_viewmodel2, v_model)
set_pev(id, pev_weaponmodel2, "")
}
}
This forward
ze_user_infected_pre()
should be defined in your includes as:
forward ze_user_infected_pre(iVictim, iInfector, iDamage);
good but this still: nemesis_round.sma(54) : error 025: function heading differs from prototype
-
Raheem
- Mod Developer
- Posts: 2214
- Joined: 7 years ago
-
Contact:
-
Quote
-
0
login to like this post
#52
Post
by Raheem » 4 years ago
Change:
public ze_zombie_appear(id)
To:
public ze_zombie_appear()
Approved tag removed from this plugin.. I never test or compiled it even.
He who fails to plan is planning to fail
-
Raheem
- Mod Developer
- Posts: 2214
- Joined: 7 years ago
-
Contact:
-
Quote
-
0
login to like this post
#53
Post
by Raheem » 4 years ago
Final code:
/*
Version 1.1:
What is News ?
1- Added Lonjump Plugin To Nemsesis Zombies
2- The Nemesis round now is in the last round
3- Fixed Bugs & Some Problems
And Special thanks to Jack Gameplay
*/
#include <zombie_escape>
new MaxRounds
new RoundCount
native give_longjump(id)
new const v_model[] = "models/zombie_escape/Nemesis_Claws.mdl"
new const g_szNemsisModel[] = "Nemesis_Zombie"
public plugin_init()
{
register_plugin("[ZE] Nemsis round", "1.1", "Kaya Gaming")
register_event("TextMsg", "new_map_or_restart", "a", "2&#Game_C", "2&#Game_w")
MaxRounds = get_cvar_pointer("mp_maxrounds")
}
public plugin_precache()
{
new szModelPath[32]
precache_model(v_model)
formatex(szModelPath, charsmax(szModelPath), "models/player/%s/%s.mdl", g_szNemsisModel, g_szNemsisModel)
precache_model(szModelPath)
}
public ze_roundend()
{
RoundCount++
}
public new_map_or_restart()
{
RoundCount = 0
}
public ze_user_infected(iVictim, iInfector)
{
if(get_pcvar_num(MaxRounds) - RoundCount == 1)
{
set_task(0.1, "models", iVictim)
claws_model(iVictim)
messages(iVictim)
give_longjump(iVictim)
}
}
public ze_user_infected_pre(iVictim, iInfector, iDamage)
{
if(get_pcvar_num(MaxRounds) - RoundCount != 1)
return 0;
new g_attacker = read_data(1);
new g_victim = read_data(2);
if(g_victim != g_attacker && ze_is_user_zombie(g_attacker))
{
set_task(0.01, "kill_no_infect", g_victim)
}
return 1;
}
public kill_no_infect(id)
{
user_silentkill(id)
}
public models(id)
{
if(ze_is_user_zombie(id) && get_pcvar_num(MaxRounds) - RoundCount == 1)
{
rg_reset_user_model(id)
rg_set_user_model(id, g_szNemsisModel)
}
}
public messages(id)
{
PlaySound(id, "zombie_escape/nemesis_fantasy_scream.wav")
}
public claws_model(id)
{
if(get_pcvar_num(MaxRounds) - RoundCount == 1 && get_user_weapon(id) == CSW_KNIFE && ze_is_user_zombie(id))
{
rg_give_item(id, "weapon_knife")
set_pev(id, pev_viewmodel2, v_model)
set_pev(id, pev_weaponmodel2, "")
}
}
He who fails to plan is planning to fail
-
Templaso
- Senior Member
- Posts: 119
- Joined: 5 years ago
- Location: Bucharest
-
Contact:
-
Quote
-
0
login to like this post
#54
Post
by Templaso » 4 years ago
ze_nemesis_round.sma(51): error 017: undefined symbol "id"
ze_nemesis_round.sma(52): error 017: undefined symbol "id"
ze_nemesis_round.sma(53): error 017: undefined symbol "id"
ze_nemesis_round.sma(54): error 017: undefined symbol "id"
-
Raheem
- Mod Developer
- Posts: 2214
- Joined: 7 years ago
-
Contact:
-
Quote
-
0
login to like this post
#55
Post
by Raheem » 4 years ago
He who fails to plan is planning to fail
-
Templaso
- Senior Member
- Posts: 119
- Joined: 5 years ago
- Location: Bucharest
-
Contact:
-
Quote
-
0
login to like this post
#56
Post
by Templaso » 4 years ago
Now is fixed
-
Raheem
- Mod Developer
- Posts: 2214
- Joined: 7 years ago
-
Contact:
-
Quote
-
0
login to like this post
#58
Post
by Raheem » 4 years ago
Not working problem after problem so will be trashed:
He who fails to plan is planning to fail
-
Muhammet20
- Veteran Member
- Posts: 408
- Joined: 5 years ago
-
Contact:
-
Quote
-
0
login to like this post
#59
Post
by Muhammet20 » 4 years ago
Raheem wrote: ↑4 years ago
Not working problem after problem so will be trashed:
idk why this happened but i know that iam failed
-
Raheem
- Mod Developer
- Posts: 2214
- Joined: 7 years ago
-
Contact:
-
Quote
-
0
login to like this post
#60
Post
by Raheem » 4 years ago
Sorry trashed.
He who fails to plan is planning to fail
Create an account or sign in to join the discussion
You need to be a member in order to post a reply
Create an account
Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute
Register
Sign in
Users browsing this forum: No registered users and 2 guests