Page 2 of 4
Re: Compatible Plugins List
Posted: 13 May 2017, 17:27
by Raheem
Change this line:
Code: Select all
if (get_pcvar_num(cvar_give_all) == 1 || g_bGiveParachute[playerIndex])
To:
Code: Select all
if ((get_pcvar_num(cvar_give_all) == 1 || g_bGiveParachute[playerIndex]) && (get_member(playerIndex, m_iTeam) == TEAM_CT))
And you done...
Re: Compatible Plugins List
Posted: 13 May 2017, 17:35
by johnnysins2000
Raheem wrote: ↑7 years ago
Change this line:
Code: Select all
if (get_pcvar_num(cvar_give_all) == 1 || g_bGiveParachute[playerIndex])
To:
Code: Select all
if (get_pcvar_num(cvar_give_all) == 1 || g_bGiveParachute[playerIndex] && get_member(playerIndex, m_iTeam) == TEAM_CT)
And you done...
Simple Solution . Thnx Raheem Crizmbolo try this And test it
Re: Compatible Plugins List
Posted: 13 May 2017, 17:37
by johnnysins2000
Code: Select all
#include <zombie_escape>
// Variables
new bool:g_bGiveParachute[33];
// Cvars
new cvar_fall_speed, cvar_give_all;
public plugin_init()
{
register_plugin("[ReAPI/ZE] Parachute", "1.1", "ReHLDS Team/Raheem");
RegisterHookChain(RG_PM_AirMove, "PM_AirMove", false);
// Cvars
cvar_fall_speed = register_cvar("ze_fall_speed", "90");
cvar_give_all = register_cvar("ze_give_all_parachute", "1");
}
public plugin_natives()
{
register_native("ze_give_user_parachute", "native_ze_give_user_parachute", 1)
register_native("ze_remove_user_parachute", "native_ze_remove_user_parachute", 1)
}
public PM_AirMove(const playerIndex)
{
if (get_pcvar_num(cvar_give_all) == 1 || g_bGiveParachute[playerIndex] && get_member(playerIndex, m_iTeam) == TEAM_CT)
{
if (!(get_entvar(playerIndex, var_button) & IN_USE)
|| get_entvar(playerIndex, var_waterlevel) > 0) {
return;
}
new Float:flVelocity[3];
get_entvar(playerIndex, var_velocity, flVelocity);
if (flVelocity[2] < 0.0)
{
flVelocity[2] = (flVelocity[2] + 40.0 < -100.0) ? flVelocity[2] + 40.0 : -get_pcvar_float(cvar_fall_speed);
set_entvar(playerIndex, var_sequence, ACT_WALK);
set_entvar(playerIndex, var_gaitsequence, ACT_IDLE);
set_pmove(pm_velocity, flVelocity);
set_movevar(mv_gravity, 80.0);
}
}
}
public native_ze_give_user_parachute(id)
{
g_bGiveParachute[id] = true
}
public native_ze_remove_user_parachute(id)
{
g_bGiveParachute[id] = false
}
Try this
Re: Compatible Plugins List
Posted: 13 May 2017, 19:45
by czirimbolo
it worked, thanks guys
Re: Compatible Plugins List
Posted: 16 May 2017, 06:52
by johnnysins2000
Also add Low Gravity In Supply Box as well
Re: Compatible Plugins List
Posted: 23 Jun 2017, 14:13
by Spir0x
i can't put a model for this parachute plugin :/ update sma please.
Re: Compatible Plugins List
Posted: 23 Jun 2017, 22:23
by Raheem
The authors not make it with model but anyway i'll do one for you.
Re: Compatible Plugins List
Posted: 01 Jul 2017, 19:38
by th3_king
i have proplem with parachute ... when i jump it give me high gravity ... please fix it thanks !
Re: Compatible Plugins List
Posted: 02 Jul 2017, 04:57
by johnnysins2000
Th3 King wrote: ↑6 years ago
i have proplem with parachute ... when i jump it give me high gravity ... please fix it thanks !
Which Parachute Plugin are u using?
The 1 posted In this Forum ?
Re: Compatible Plugins List
Posted: 03 Jul 2017, 01:02
by th3_king
Yes
Re: Compatible Plugins List
Posted: 03 Jul 2017, 07:57
by johnnysins2000
:p I will add it soon no worries
Re: Compatible Plugins List
Posted: 03 Jul 2017, 12:10
by Raheem
Re: Compatible Plugins List
Posted: 03 Jul 2017, 13:33
by johnnysins2000
na... with this u can't even jump .... and this plugin again caused that zombie invincible bug so i advise everyone not to use it !
Re: Compatible Plugins List
Posted: 03 Jul 2017, 13:41
by Raheem
I forget to remove line i was test with, Removed test now..
Re: Compatible Plugins List
Posted: 03 Jul 2017, 16:09
by johnnysins2000
Raheem wrote: ↑6 years ago
I forget to remove line i was test with, Removed test now..
This code is supposed to show parachute model ?
Re: Compatible Plugins List
Posted: 03 Jul 2017, 16:14
by Spir0x
No xD i have opened his code now there's not a model line.
jhonny why i can't download Zombie Escape VIP system link down?
Re: Compatible Plugins List
Posted: 03 Jul 2017, 18:36
by johnnysins2000
Spir0x wrote: ↑6 years ago
No xD i have opened his code now there's not a model line.
jhonny why i can't download Zombie Escape VIP system link down?
IDK
Raheem uploaded The Rar file
I have Updated The Code of VIP system (not posted here)
With Flag E and F
Flag E = For Damage Increaser
Flag F = No Recoil (Maybe Bad)
Maybe I should add No fall Damage Instead Of No Recoil ?
Re: Compatible Plugins List
Posted: 03 Jul 2017, 18:54
by Spir0x
where posted :v i'll use the flag E
jhonny make a parachute with model bro
Re: Compatible Plugins List
Posted: 03 Jul 2017, 19:29
by Raheem
johnnysins2000 wrote: ↑6 years ago
This code is supposed to show parachute model ?
No, It does not support models for now. I'll add it this because this parachute is not made by me i just added some natives & cvars this parachute is using ReAPI so it's recommended.
Spir0x wrote: ↑6 years ago
No xD i have opened his code now there's not a model line.
jhonny why i can't download Zombie Escape VIP system link down?
Not down but check your connection, Our links is on our host so if it's down the website should be down also.
Re: Compatible Plugins List
Posted: 03 Jul 2017, 19:32
by Spir0x
Okey bro :/