Raised This Month: $ Target: $400
 0% 

Parachute 1.3 (KRoTaL)


Post New Thread Reply   
 
Thread Tools Display Modes
ANTICHRISTUS
kingdom of weird stuff
Join Date: Jun 2010
Location: My kingdom is not in thi
Old 09-29-2013 , 14:05   Re: Parachute 1.3 (KRoTaL)
Reply With Quote #211

you just forgot to put the .amxx file in the plugins folder, and don't forget to put the parachute model in the models folder too.
__________________
ANTICHRISTUS is offline
jeremyfreitas
Member
Join Date: Sep 2013
Old 10-01-2013 , 15:04   Re: Parachute 1.3 (KRoTaL)
Reply With Quote #212

Hello, by chance can edit me plugin stops for alone for vips and admins?
jeremyfreitas is offline
ANTICHRISTUS
kingdom of weird stuff
Join Date: Jun 2010
Location: My kingdom is not in thi
Old 10-01-2013 , 18:03   Re: Parachute 1.3 (KRoTaL)
Reply With Quote #213

edit the flag with their common one.
__________________
ANTICHRISTUS is offline
jeremyfreitas
Member
Join Date: Sep 2013
Old 10-02-2013 , 14:17   Re: Parachute 1.3 (KRoTaL)
Reply With Quote #214

But the problem is that I do not know you make it! Vocês cannot help?
jeremyfreitas is offline
jeremyfreitas
Member
Join Date: Sep 2013
Old 10-02-2013 , 14:35   Re: Parachute 1.3 (KRoTaL)
Reply With Quote #215

But the problem is that I do not know you make it! You do not can help?

Last edited by jeremyfreitas; 10-02-2013 at 14:35.
jeremyfreitas is offline
sami_spt
Veteran Member
Join Date: Sep 2012
Location: I<3 pussy cats
Old 10-02-2013 , 14:41   Re: Parachute 1.3 (KRoTaL)
Reply With Quote #216

admin with flag 'b' can have parachute only
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <engine>
#include <fun>

#define PLUGIN "Parachute"
#define VERSION "1.0"
#define AUTHOR "KRoT@L/JTP10181/Blizzard"

new pFallSpeed,pDetach;
new 
para_ent[33];

public 
plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
pFallSpeed register_cvar("parachute_fallspeed""100");
    
pDetach register_cvar("parachute_detach""1");
}

public 
plugin_precache()
{
    
precache_model("models/parachute.mdl")
}

public 
client_PreThink(id)
{
    if( !
is_user_aliveid ) )
        return;
        
    if( !
has_flagid"b" ) )
        return;

    new 
Float:fallspeed get_pcvar_float(pFallSpeed) * -1.0
    
new Float:frame

    
new button get_user_button(id)
    new 
oldbutton get_user_oldbutton(id)
    new 
flags get_entity_flags(id)

    if (
para_ent[id] > && (flags FL_ONGROUND)) {

        if (
get_pcvar_num(pDetach)) {

            if (
get_user_gravity(id) == 0.1set_user_gravity(id1.0)

            if (
entity_get_int(para_ent[id],EV_INT_sequence) != 2) {
                
entity_set_int(para_ent[id], EV_INT_sequence2)
                
entity_set_int(para_ent[id], EV_INT_gaitsequence1)
                
entity_set_float(para_ent[id], EV_FL_frame0.0)
                
entity_set_float(para_ent[id], EV_FL_fuser10.0)
                
entity_set_float(para_ent[id], EV_FL_animtime0.0)
                
entity_set_float(para_ent[id], EV_FL_framerate0.0)
                return
            }

            
frame entity_get_float(para_ent[id],EV_FL_fuser1) + 2.0
            entity_set_float
(para_ent[id],EV_FL_fuser1,frame)
            
entity_set_float(para_ent[id],EV_FL_frame,frame)

            if (
frame 254.0) {
                
remove_entity(para_ent[id])
                
para_ent[id] = 0
            
}
        }
        else {
            
remove_entity(para_ent[id])
            
set_user_gravity(id1.0)
            
para_ent[id] = 0
        
}

    }
    
    if (
button IN_USE
    {
        
        new 
Float:velocity[3]
        
entity_get_vector(idEV_VEC_velocityvelocity)

        if (
velocity[2] < 0.0) {

            if(
para_ent[id] <= 0) {
                
para_ent[id] = create_entity("info_target")
                if(
para_ent[id] > 0) {
                    
entity_set_string(para_ent[id],EV_SZ_classname,"parachute")
                    
entity_set_edict(para_ent[id], EV_ENT_aimentid)
                    
entity_set_edict(para_ent[id], EV_ENT_ownerid)
                    
entity_set_int(para_ent[id], EV_INT_movetypeMOVETYPE_FOLLOW)
                    
entity_set_model(para_ent[id], "models/parachute.mdl")
                    
entity_set_int(para_ent[id], EV_INT_sequence0)
                    
entity_set_int(para_ent[id], EV_INT_gaitsequence1)
                    
entity_set_float(para_ent[id], EV_FL_frame0.0)
                    
entity_set_float(para_ent[id], EV_FL_fuser10.0)
                }
            }

            if (
para_ent[id] > 0) {

                
entity_set_int(idEV_INT_sequence3)
                
entity_set_int(idEV_INT_gaitsequence1)
                
entity_set_float(idEV_FL_frame1.0)
                
entity_set_float(idEV_FL_framerate1.0)
                
set_user_gravity(id0.1)

                
velocity[2] = (velocity[2] + 40.0 fallspeed) ? velocity[2] + 40.0 fallspeed
                entity_set_vector
(idEV_VEC_velocityvelocity)

                if (
entity_get_int(para_ent[id],EV_INT_sequence) == 0) {

                    
frame entity_get_float(para_ent[id],EV_FL_fuser1) + 1.0
                    entity_set_float
(para_ent[id],EV_FL_fuser1,frame)
                    
entity_set_float(para_ent[id],EV_FL_frame,frame)

                    if (
frame 100.0) {
                        
entity_set_float(para_ent[id], EV_FL_animtime0.0)
                        
entity_set_float(para_ent[id], EV_FL_framerate0.4)
                        
entity_set_int(para_ent[id], EV_INT_sequence1)
                        
entity_set_int(para_ent[id], EV_INT_gaitsequence1)
                        
entity_set_float(para_ent[id], EV_FL_frame0.0)
                        
entity_set_float(para_ent[id], EV_FL_fuser10.0)
                    }
                }
            }
        }
        else if (
para_ent[id] > 0) {
            
remove_entity(para_ent[id])
            
set_user_gravity(id1.0)
            
para_ent[id] = 0
        
}
    }
    else if ((
oldbutton IN_USE) && para_ent[id] > ) {
        
remove_entity(para_ent[id])
        
set_user_gravity(id1.0)
        
para_ent[id] = 0
    
}


Last edited by sami_spt; 10-02-2013 at 14:42.
sami_spt is offline
jeremyfreitas
Member
Join Date: Sep 2013
Old 10-03-2013 , 18:13   Re: Parachute 1.3 (KRoTaL)
Reply With Quote #217

Thank YOU!! ;)
jeremyfreitas is offline
vedant007
Member
Join Date: Jul 2013
Old 11-15-2013 , 03:36   Re: Parachute 1.3 (KRoTaL)
Reply With Quote #218

Quote:
Originally Posted by Arkshine View Post
Jtp,

Can you add please this :

- parachute_free <1|0> ; Free Parachute is given to each round on all players.
- parachute_sound <1|0> ; Give the possibility of adding a custom sound when one falls with the parachute (I don't know what is the best way to add a sound easily (define ? file ? cetera) ; also I attach an example)


Thanks in advance
I can make that !! I am going to make that credits - Arkshine
vedant007 is offline
Send a message via Skype™ to vedant007
dextro89
Junior Member
Join Date: Jan 2014
Old 01-26-2014 , 13:04   Re: Parachute 1.3 (KRoTaL)
Reply With Quote #219

Hello, first sorry for my english: P
does anyone know how to change the Parachute model?
I own ready but do not know how to get it on my server.

can anyone help?

Council Maps: 94.250.201.7:27015

Last edited by dextro89; 01-26-2014 at 13:04.
dextro89 is offline
ANTICHRISTUS
kingdom of weird stuff
Join Date: Jun 2010
Location: My kingdom is not in thi
Old 01-26-2014 , 17:22   Re: Parachute 1.3 (KRoTaL)
Reply With Quote #220

  • edit the model's name in the .sma
  • or just read previous posts.
__________________
ANTICHRISTUS is offline
Reply


Thread Tools
Display Modes

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 09:08.


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