Raised This Month: $32 Target: $400
 8% 

Request] Plugin Jump + Speed + go forward


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DarthMan
Veteran Member
Join Date: Aug 2011
Old 02-23-2017 , 14:05   Request] Plugin Jump + Speed + go forward
Reply With Quote #1

Hello. I am trying to find a plugin which one server does and that is the FM (Feckin-Mad) Fun server. When you right click on mouse2 key or whatever is binded to use the special skill, basically (in HL for weapons), u will gain a lot of speed and also be able to jump if you look up in the sky. Thanks!

Last edited by DarthMan; 02-23-2017 at 14:19.
DarthMan is offline
DarthMan
Veteran Member
Join Date: Aug 2011
Old 02-23-2017 , 15:47   Re: Request] Plugin Jump + Speed + go forward
Reply With Quote #2

Someone else made the plugin for me, so the topic can be closed
DarthMan is offline
pizzahut
Senior Member
Join Date: Oct 2004
Old 02-23-2017 , 15:52   Re: Request] Plugin Jump + Speed + go forward
Reply With Quote #3

Here's the plugin I made for DarthMan:

Code:
#include <amxmodx> #include <engine> #define MAX_PLAYERS 32 public plugin_init() {     register_plugin("speed boost", "1", "pizzahut")     set_task(0.2, "give_boost", _, _, _, "b") // repeat task endlessly } public give_boost(task_id) {     new players[MAX_PLAYERS], num     get_players(players, num, "ach") // alive, no bots, no hltv     new id     for(new index; index < MAX_PLAYERS; index++)     {         id = players[index]         if (get_user_button(id) & IN_ATTACK2)         {             new Float:velo[3], Float:aim[3]             get_user_velocity(id, velo)             VelocityByAim(id, 800, aim)             velo[0] += aim[0]             velo[1] += aim[1]             velo[2] += aim[2]             set_user_velocity(id, velo)         }     } }
pizzahut is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 02-23-2017 , 17:28   Re: Request] Plugin Jump + Speed + go forward
Reply With Quote #4

You can use without a task and a loop, try this:

PHP Code:
#include <amxmodx>
#include <hamsandwich>
#include <engine>

const m_pPlayer 41

new const AllWeapons[][] = 
{
    
"weapon_p228"
    
"weapon_elite"
    
"weapon_fiveseven"
    
"weapon_ump45",
    
"weapon_mac10",
    
"weapon_p90",
    
"weapon_scout",
    
"weapon_galil"
    
"weapon_famas"
    
"weapon_usp"
    
"weapon_glock18"
    
"weapon_awp"
    
"weapon_aug",
    
"weapon_g3sg1",
    
"weapon_sg552",
    
"weapon_sg550",
    
"weapon_mp5navy"
    
"weapon_m249",
    
"weapon_xm1014",
    
"weapon_m3"
    
"weapon_m4a1",
    
"weapon_tmp"
    
"weapon_deagle"
    
"weapon_ak47",
    
"weapon_knife",
    
"weapon_shield",
    
"weapon_hegrenade",
    
"weapon_flashbang",
    
"weapon_smokegrenade",
    
"weapon_c4"
}

public 
plugin_init()
{
    
register_plugin("speed boost""1""pizzahut")

    for(new 
isizeof AllWeaponsi++)
         
RegisterHam(Ham_Weapon_SecondaryAttackAllWeapons[i], "Ham_WeaponSecondaryAttack_Post"1)
}

public 
Ham_WeaponSecondaryAttack_Post(ent)
{
    new 
id get_pdata_cbase(entm_pPlayer4)
    if (
get_user_button(id) & IN_ATTACK2)
    {
         new 
Float:fVelocity[3
         
velocity_by_aim(id800fVelocity
         
set_pev(idpev_velocityfVelocity
         
set_user_velocity(idfVelocity)
    }

__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo

Last edited by EFFx; 02-23-2017 at 19:16.
EFFx is offline
DarthMan
Veteran Member
Join Date: Aug 2011
Old 02-23-2017 , 17:51   Re: Request] Plugin Jump + Speed + go forward
Reply With Quote #5

Thanks man, you rock

Last edited by DarthMan; 02-24-2017 at 03:48.
DarthMan is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 02-23-2017 , 18:08   Re: Request] Plugin Jump + Speed + go forward
Reply With Quote #6

I recommend you use mine.

PHP Code:
public give_boost(task_id
task_id is not needed

PHP Code:
for(new indexindex MAX_PLAYERSindex++) 
This doesn't makes sense. MAX_PLAYERS is not needed. If you're using MAX_PLAYERS, you're looping 32 indexes, so the get_players will make nothing. Should be like this:

PHP Code:
for(new indexindex numindex++) 
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo

Last edited by EFFx; 02-23-2017 at 18:10.
EFFx is offline
DarthMan
Veteran Member
Join Date: Aug 2011
Old 02-23-2017 , 18:27   Re: Request] Plugin Jump + Speed + go forward
Reply With Quote #7

Quote:
Originally Posted by EFFx View Post
I recommend you use mine.

PHP Code:
public give_boost(task_id
task_id is not needed

PHP Code:
for(new indexindex MAX_PLAYERSindex++) 
This doesn't makes sense. MAX_PLAYERS is not needed. If you're using MAX_PLAYERS, you're looping 32 indexes, so the get_players will make nothing. Should be like this:

PHP Code:
for(new indexindex numindex++) 
Yes, I am using your version and I removed that. Check my PM, please.
DarthMan is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 02-23-2017 , 19:10   Re: Request] Plugin Jump + Speed + go forward
Reply With Quote #8

Try the new code.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx 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 12:26.


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