Raised This Month: $ Target: $400
 0% 

Subplugin Submission [T] List of Modified + Requested Plugins


Post New Thread Reply   
 
Thread Tools Display Modes
Brian_Chino77
Senior Member
Join Date: Mar 2014
Location: dunno
Old 09-18-2014 , 18:57   Re: [ZP] List of Modified + Requested Plugin (13/9/2014)
Reply With Quote #171

@zmd94 Do you a model chinese vampire(zombie) that jumping around?
Brian_Chino77 is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 09-18-2014 , 20:10   Re: [ZP] List of Modified + Requested Plugin (13/9/2014)
Reply With Quote #172

Sorry Brian_Chino77, I don't have it.
zmd94 is offline
plazma
Senior Member
Join Date: Oct 2013
Old 09-18-2014 , 20:45   Re: [ZP] List of Modified + Requested Plugin (13/9/2014)
Reply With Quote #173

How to make this, Played on map and players can buy the Items MultiJump, when it is finished 10 min can't buy it understand? thanks (in maps is 30 min or 40 min but my example for items is 10 min)

PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <zombieplague.inc>

new const g_item_name[] = { "Multijump (+1)" };
const 
g_item_cost 5;
new 
g_maxJumps 0// maximum amount of jumps in mid air. If set to 0 then it is infinitely

/*============================================================================*/

new jumpnum[33] = 0;
new 
bool:dojump[33] = false;
new 
g_itemid_multijump;
new 
g_multijumps[33] = 0;

public 
plugin_init()
{
    
register_plugin("[ZP] Extra Item: Multijump""1.0""pharse");
    
    
g_itemid_multijump zp_register_extra_item(g_item_nameg_item_costZP_TEAM_HUMAN);
    
    
register_forward(FM_PlayerPreThink"FW_PlayerPreThink");
    
register_forward(FM_PlayerPostThink"FW_PlayerPostThink");
    
    
register_event("HLTV""EVENT_round_start""a""1=0""2=0");
}

public 
FW_PlayerPreThink(id)
{
    if(!
is_user_alive(id) || zp_get_user_zombie(id) || !g_multijumps[id]) return PLUGIN_CONTINUE
    
new nbut pev(id,pev_button);
    new 
obut pev(id,pev_oldbuttons);
    if((
nbut IN_JUMP) && !(pev(id,pev_flags) & FL_ONGROUND) && !(obut IN_JUMP))
    {
        if(
jumpnum[id] < g_multijumps[id])
        {
            
dojump[id] = true;
            
jumpnum[id]++;
            return 
PLUGIN_CONTINUE
        
}
    }
    if((
nbut IN_JUMP) && (pev(id,pev_flags) & FL_ONGROUND))
    {
        
jumpnum[id] = 0;
        return 
PLUGIN_CONTINUE
    
}
    return 
PLUGIN_CONTINUE
}

public 
FW_PlayerPostThink(id)
{
    if(!
is_user_alive(id) || zp_get_user_zombie(id) || !g_multijumps[id]) return PLUGIN_CONTINUE
    
if(dojump[id] == true)
    {
        new 
Float:velocity[3];
        
pev(id,pev_velocity,velocity);
        
velocity[2] = random_float(265.0,285.0);
        
set_pev(id,pev_velocity,velocity)
        
dojump[id] = false
        
return PLUGIN_CONTINUE
    
}
    return 
PLUGIN_CONTINUE
}    

// Player buys our upgrade, add one multijump
public zp_extra_item_selected(playeritemid)
{
    if (
itemid == g_itemid_multijump){
        if (
g_multijumps[player] < g_maxJumps || !g_maxJumps){
            
g_multijumps[player]++;
            if (
g_maxJumps)
                
client_print(playerprint_center"Now you can jump %d / %d times in mid air."g_multijumps[player], g_maxJumps);
            else
                
client_print(playerprint_center"Now you can jump %d times in mid air."g_multijumps[player]);
        }
        else
            
client_print(playerprint_center"You can't jump more than %d times in mid air!"g_maxJumps);
    }
}

// Reset multijump for all players on newround
public EVENT_round_start()
{
    for (new 
idid <= 32id++) g_multijumps[id] = false;

__________________
Free Palestine ♥

Last edited by plazma; 09-18-2014 at 20:53.
plazma is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 09-18-2014 , 22:53   Re: [ZP] List of Modified + Requested Plugin (13/9/2014)
Reply With Quote #174

Sorry plazma, I'm not sure how to do it. ;)

By the way, for sure we will need this code:
Code:
if(get_gametime() < get_pcvar_float(cvar_time_limit))
zmd94 is offline
Kiske
Veteran Member
Join Date: May 2009
Old 09-19-2014 , 02:34   Re: [ZP] List of Modified + Requested Plugin (13/9/2014)
Reply With Quote #175

Quote:
Originally Posted by Brian_Chino77 View Post
Okay , i found some 'TUT' but it in espagnol Here
I speak spanish and this 'tutorials' are shit.
Only 8-10 links are good tutorials.

The rest are things like: copy it from here, paste it there.
__________________

Kiske is offline
Send a message via Skype™ to Kiske
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 09-19-2014 , 02:37   Re: [ZP] List of Modified + Requested Plugin (13/9/2014)
Reply With Quote #176

Thank you for the explanation, Kiske. Good to know it from someone who speaks Spanish. ;)
zmd94 is offline
Brian_Chino77
Senior Member
Join Date: Mar 2014
Location: dunno
Old 09-19-2014 , 08:43   Re: [ZP] List of Modified + Requested Plugin (13/9/2014)
Reply With Quote #177

Whoa , i'm just knowing that O_o . But some of it is useful, and @Kiske I Like your ZP UqZ
Brian_Chino77 is offline
Old 09-19-2014, 12:48
plazma
This message has been deleted by plazma.
plazma
Senior Member
Join Date: Oct 2013
Old 09-19-2014 , 13:13   Re: [ZP] List of Modified + Requested Plugin (13/9/2014)
Reply With Quote #178

Quote:
Originally Posted by zmd94 View Post
Sorry plazma, I'm not sure how to do it. ;)

By the way, for sure we will need this code:
Code:
if(get_gametime() < get_pcvar_float(cvar_time_limit))
Not work on me? can u make in this script MultiJump please...

ex: "[ZP] The time to buy this items has expired!"

Thanks.
__________________
Free Palestine ♥
plazma is offline
plazma
Senior Member
Join Date: Oct 2013
Old 09-21-2014 , 20:39   Re: [ZP] List of Modified + Requested Plugin (13/9/2014)
Reply With Quote #179

up up
__________________
Free Palestine ♥
plazma is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 09-22-2014 , 07:53   Re: [ZP] List of Modified + Requested Plugin (13/9/2014)
Reply With Quote #180

Plazma, I'll will try to help again. Maybe, I have found the way to do it. ;)

Last edited by zmd94; 09-22-2014 at 07:53.
zmd94 is offline
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 14:57.


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