Raised This Month: $51 Target: $400
 12% 

Help / Support I help me! Parachute?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
nbdns
Junior Member
Join Date: Mar 2012
Old 03-31-2012 , 22:42   I help me! Parachute?
Reply With Quote #1

- I add [ZP] Sub-Plugin: Parachute 1.2
- It's don't working?
- I need plugin parachute only for human! help me.
- Thanks.
nbdns is offline
Y060N
BANNED
Join Date: Dec 2011
Location: www.equilibriumcs.com
Old 04-01-2012 , 02:47   Re: I help me! Parachute?
Reply With Quote #2

PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>
#include <zp50_core>

new const paramodel[] = "models/spadochron.mdl"

new bool:has_parachute[33], para_ent[33];

public 
plugin_init()
{
    
register_plugin("[ZP] Sub-Plugin: Parachute""1.2""Random1, 93()|29!/<")

    
register_forward(FM_PlayerPreThink"fw_PreThink")
    
RegisterHam(Ham_Spawn"player""fw_PlayerSpawn_Post"1)
    
RegisterHam(Ham_Killed"player""fw_PlayerKilled")
}

public 
plugin_precache()
{
    
engfunc(EngFunc_PrecacheModelparamodel)
}

public 
client_connect(id)
    
parachute_reset(id1)

public 
client_disconnect(id)
    
parachute_reset(id)

parachute_reset(idkeep 0)
{
    if(
para_ent[id] > && pev_valid(para_ent[id]))
    {
        
engfunc(EngFunc_RemoveEntitypara_ent[id]);
        
para_ent[id] = 0
    
}
    
    if (!
keep)
        
has_parachute[id] = false
    
else
        
has_parachute[id] = true
}

public 
fw_PlayerKilled(victim)
    
parachute_reset(victim)

public 
fw_PlayerSpawn_Post(id)
{
    if (!
is_user_alive(id))
        return;
    
    
parachute_reset(id1)
    return;
}

public 
fw_PreThink(id)
{
    
//Parachute model animation information
    //0 - deploy - 84 frames
    //1 - idle - 39 frames
    //2 - detach - 29 frames
    
    
if (!is_user_alive(id) || !has_parachute[id] || zp_core_is_zombie(id))
        return;
    
    new 
Float:fallingspeed 75.0 * -1.0;
    new 
Float:frame;
    
    new 
button pev(idpev_button);
    new 
oldbutton pev(idpev_oldbuttons);
    new 
flags pev(idpev_flags);
    
    if (
para_ent[id] > && (flags FL_ONGROUND))
    {
        
parachute_reset(id1)
        return;
    }
    
    if (
button IN_USE)
    {
        new 
Float:velocity[3];
        
pev(idpev_velocityvelocity);
        
        if (
velocity[2] < 0.0)
        {
            if(
para_ent[id] <= 0)
            {
                
para_ent[id] = engfunc(EngFunc_CreateNamedEntityengfunc(EngFunc_AllocString"info_target"));
                
                if(
para_ent[id] > 0)
                {
                    
set_pev(para_ent[id],pev_classname,"parachute");
                    
set_pev(para_ent[id], pev_aimentid)
                    
set_pev(para_ent[id], pev_ownerid);
                    
set_pev(para_ent[id], pev_movetypeMOVETYPE_FOLLOW);
                    if (!
zp_core_is_zombie(id))
                        
engfunc(EngFunc_SetModelpara_ent[id], paramodel);
                    
set_pev(para_ent[id], pev_sequence0);
                    
set_pev(para_ent[id], pev_gaitsequence1);
                    
set_pev(para_ent[id], pev_frame0.0);
                    
set_pev(para_ent[id], pev_fuser10.0);
                }
            }
            
            if (
para_ent[id] > 0)
            {
                
set_pev(idpev_sequence3)
                
set_pev(idpev_gaitsequence1)
                
set_pev(idpev_frame1.0)
                
set_pev(idpev_framerate1.0)

                
velocity[2] = (velocity[2] + 40.0 fallingspeed)? velocity[2] + 40.0 fallingspeed
                set_pev
(idpev_velocityvelocity)

                if (
pev(para_ent[id],pev_sequence)== 0)
                {

                    
pev(para_ent[id],pev_fuser1frame);
                    
frame += 1.0;
                    
set_pev(para_ent[id],pev_fuser1,frame);
                    
set_pev(para_ent[id],pev_frame,frame);

                    if (
frame 100.0)
                    {
                        
set_pev(para_ent[id], pev_animtime0.0);
                        
set_pev(para_ent[id], pev_framerate0.4);
                        
set_pev(para_ent[id], pev_sequence1);
                        
set_pev(para_ent[id], pev_gaitsequence1);
                        
set_pev(para_ent[id], pev_frame0.0);
                        
set_pev(para_ent[id], pev_fuser10.0);
                    }
                }
            }
        }
        else if (
para_ent[id] > 0)
            
parachute_reset(id1)
    }
    else if ((
oldbutton IN_USE) && para_ent[id] > 0)
        
parachute_reset(id1)
}

public 
zp_fw_core_infect_post(id)
{
    
parachute_reset(id0)
}

public 
zp_fw_core_cure_post(id)
{
    
parachute_reset(id,1)

Try this, for ZP 5.0
Y060N is offline
Posable
Senior Member
Join Date: Mar 2012
Old 04-01-2012 , 06:43   Re: I help me! Parachute?
Reply With Quote #3

Try This One i had it before

CLICK here

and dont forgot the main cvars for humans have parachute


do cvar

zp_parachute_humans "1"

others giving by default mean 0
__________________


Server Zm Back To Work 1000+ FPS Tickets

Posable is offline
Send a message via Skype™ to Posable
nbdns
Junior Member
Join Date: Mar 2012
Old 04-01-2012 , 07:46   Re: I help me! Parachute?
Reply With Quote #4

Thanks Y060N
nbdns is offline
nbdns
Junior Member
Join Date: Mar 2012
Old 04-01-2012 , 07:47   Re: I help me! Parachute?
Reply With Quote #5

- Thanks, i with test.
nbdns is offline
H.RED.ZONE
Veteran Member
Join Date: Sep 2011
Location: Serbia, Belgrade
Old 04-01-2012 , 08:04   Re: I help me! Parachute?
Reply With Quote #6

You are forgeting about gravity bugs.
__________________
H.RED.ZONE is offline
Posable
Senior Member
Join Date: Mar 2012
Old 04-01-2012 , 08:09   Re: I help me! Parachute?
Reply With Quote #7

This One ?

I forgot It really can you Give hem the right one ?
__________________


Server Zm Back To Work 1000+ FPS Tickets

Posable is offline
Send a message via Skype™ to Posable
nbdns
Junior Member
Join Date: Mar 2012
Old 04-01-2012 , 08:18   Re: I help me! Parachute?
Reply With Quote #8

Quote:
Originally Posted by Y060N View Post
PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>
#include <zp50_core>

new const paramodel[] = "models/spadochron.mdl"

new bool:has_parachute[33], para_ent[33];

public 
plugin_init()
{
    
register_plugin("[ZP] Sub-Plugin: Parachute""1.2""Random1, 93()|29!/<")

    
register_forward(FM_PlayerPreThink"fw_PreThink")
    
RegisterHam(Ham_Spawn"player""fw_PlayerSpawn_Post"1)
    
RegisterHam(Ham_Killed"player""fw_PlayerKilled")
}

public 
plugin_precache()
{
    
engfunc(EngFunc_PrecacheModelparamodel)
}

public 
client_connect(id)
    
parachute_reset(id1)

public 
client_disconnect(id)
    
parachute_reset(id)

parachute_reset(idkeep 0)
{
    if(
para_ent[id] > && pev_valid(para_ent[id]))
    {
        
engfunc(EngFunc_RemoveEntitypara_ent[id]);
        
para_ent[id] = 0
    
}
    
    if (!
keep)
        
has_parachute[id] = false
    
else
        
has_parachute[id] = true
}

public 
fw_PlayerKilled(victim)
    
parachute_reset(victim)

public 
fw_PlayerSpawn_Post(id)
{
    if (!
is_user_alive(id))
        return;
    
    
parachute_reset(id1)
    return;
}

public 
fw_PreThink(id)
{
    
//Parachute model animation information
    //0 - deploy - 84 frames
    //1 - idle - 39 frames
    //2 - detach - 29 frames
    
    
if (!is_user_alive(id) || !has_parachute[id] || zp_core_is_zombie(id))
        return;
    
    new 
Float:fallingspeed 75.0 * -1.0;
    new 
Float:frame;
    
    new 
button pev(idpev_button);
    new 
oldbutton pev(idpev_oldbuttons);
    new 
flags pev(idpev_flags);
    
    if (
para_ent[id] > && (flags FL_ONGROUND))
    {
        
parachute_reset(id1)
        return;
    }
    
    if (
button IN_USE)
    {
        new 
Float:velocity[3];
        
pev(idpev_velocityvelocity);
        
        if (
velocity[2] < 0.0)
        {
            if(
para_ent[id] <= 0)
            {
                
para_ent[id] = engfunc(EngFunc_CreateNamedEntityengfunc(EngFunc_AllocString"info_target"));
                
                if(
para_ent[id] > 0)
                {
                    
set_pev(para_ent[id],pev_classname,"parachute");
                    
set_pev(para_ent[id], pev_aimentid)
                    
set_pev(para_ent[id], pev_ownerid);
                    
set_pev(para_ent[id], pev_movetypeMOVETYPE_FOLLOW);
                    if (!
zp_core_is_zombie(id))
                        
engfunc(EngFunc_SetModelpara_ent[id], paramodel);
                    
set_pev(para_ent[id], pev_sequence0);
                    
set_pev(para_ent[id], pev_gaitsequence1);
                    
set_pev(para_ent[id], pev_frame0.0);
                    
set_pev(para_ent[id], pev_fuser10.0);
                }
            }
            
            if (
para_ent[id] > 0)
            {
                
set_pev(idpev_sequence3)
                
set_pev(idpev_gaitsequence1)
                
set_pev(idpev_frame1.0)
                
set_pev(idpev_framerate1.0)

                
velocity[2] = (velocity[2] + 40.0 fallingspeed)? velocity[2] + 40.0 fallingspeed
                set_pev
(idpev_velocityvelocity)

                if (
pev(para_ent[id],pev_sequence)== 0)
                {

                    
pev(para_ent[id],pev_fuser1frame);
                    
frame += 1.0;
                    
set_pev(para_ent[id],pev_fuser1,frame);
                    
set_pev(para_ent[id],pev_frame,frame);

                    if (
frame 100.0)
                    {
                        
set_pev(para_ent[id], pev_animtime0.0);
                        
set_pev(para_ent[id], pev_framerate0.4);
                        
set_pev(para_ent[id], pev_sequence1);
                        
set_pev(para_ent[id], pev_gaitsequence1);
                        
set_pev(para_ent[id], pev_frame0.0);
                        
set_pev(para_ent[id], pev_fuser10.0);
                    }
                }
            }
        }
        else if (
para_ent[id] > 0)
            
parachute_reset(id1)
    }
    else if ((
oldbutton IN_USE) && para_ent[id] > 0)
        
parachute_reset(id1)
}

public 
zp_fw_core_infect_post(id)
{
    
parachute_reset(id0)
}

public 
zp_fw_core_cure_post(id)
{
    
parachute_reset(id,1)

Try this, for ZP 5.0

Quote:
Originally Posted by Posable View Post
This One ?

I forgot It really can you Give hem the right one ?
- @Y060N: Coder use great! but when flying, it lag? how to fix? Thanks.
- @Posable: Plugin for CS 1.6?
nbdns is offline
H.RED.ZONE
Veteran Member
Join Date: Sep 2011
Location: Serbia, Belgrade
Old 04-01-2012 , 08:18   Re: I help me! Parachute?
Reply With Quote #9

Nope thats for source look at http://forums.alliedmods.net/showpos...8&postcount=47
__________________
H.RED.ZONE is offline
Posable
Senior Member
Join Date: Mar 2012
Old 04-01-2012 , 08:20   Re: I help me! Parachute?
Reply With Quote #10

yee Im sory about source plugin :p
__________________


Server Zm Back To Work 1000+ FPS Tickets

Posable is offline
Send a message via Skype™ to Posable
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:29.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode