Raised This Month: $ Target: $400
 0% 

Superjump


Post New Thread Reply   
 
Thread Tools Display Modes
terrum
AlliedModders Donor
Join Date: Apr 2006
Location: United Kingdom
Old 04-29-2006 , 11:51  
Reply With Quote #11

How can you jump more than once?
__________________
Thanks,
Terrum.


terrum is offline
Send a message via AIM to terrum Send a message via MSN to terrum Send a message via Skype™ to terrum
Willmaker
Senior Member
Join Date: Dec 2004
Location: Sydney, Australia
Old 04-29-2006 , 12:14  
Reply With Quote #12

Quote:
Originally Posted by terrum
How can you jump more than once?
This plugin only allows you to jump higher.

You might be looking for this.
__________________
GargStudios.net - Australian SvenCoop/Ent Server with Time Based Rewards
Willmaker is offline
Send a message via ICQ to Willmaker Send a message via AIM to Willmaker Send a message via MSN to Willmaker Send a message via Yahoo to Willmaker
Charr
Senior Member
Join Date: Jul 2005
Location: Long Island, New York, U
Old 04-30-2006 , 17:44  
Reply With Quote #13

This will get the super jump effect after you start multijumping:
Code:
#include <amxmodx> #include <amxmisc> #include <engine> #define ADMINACCESS ADMIN_CHAT new jumpnum[33] = 0 new bool:dojump[33] = false public plugin_init() {     register_plugin("MultiJump","1.1","twistedeuphoria")     register_cvar("amx_maxjumps","1")     register_cvar("amx_mjadminonly","0") } public client_putinserver(id) {     jumpnum[id] = 0     dojump[id] = false } public client_disconnect(id) {     jumpnum[id] = 0     dojump[id] = false } public client_PreThink(id) {     if(!is_user_alive(id)) return PLUGIN_CONTINUE     if(get_cvar_num("amx_mjadminonly") && (!access(id,ADMINACCESS))) return PLUGIN_CONTINUE     new nbut = get_user_button(id)     new obut = get_user_oldbutton(id)     if((nbut & IN_JUMP) && !(get_entity_flags(id) & FL_ONGROUND) && !(obut & IN_JUMP))     {         if(jumpnum[id] < get_cvar_num("amx_maxjumps"))         {             dojump[id] = true             jumpnum[id]++             return PLUGIN_CONTINUE         }     }     if((nbut & IN_JUMP) && (get_entity_flags(id) & FL_ONGROUND))     {         jumpnum[id] = 0         return PLUGIN_CONTINUE     }     return PLUGIN_CONTINUE } public client_PostThink(id) {     if(!is_user_alive(id)) return PLUGIN_CONTINUE     if(get_cvar_num("amx_mjadminonly") && (!access(id,ADMINACCESS))) return PLUGIN_CONTINUE     if(dojump[id] == true)     {         new Float:velocity[3]           entity_get_vector(id,EV_VEC_velocity,velocity)         velocity[2] = random_float(455.0,465.0)         entity_set_vector(id,EV_VEC_velocity,velocity)         dojump[id] = false         return PLUGIN_CONTINUE     }     return PLUGIN_CONTINUE }
__________________
Charr is offline
Send a message via AIM to Charr Send a message via MSN to Charr
SS. Kommando
Member
Join Date: Oct 2005
Old 05-18-2006 , 10:53  
Reply With Quote #14

Really nice plugin, I have to say. But I want to restrict it to a certain team, is that possible? If it is not, is it possible to restrict to STEAM ID's?
SS. Kommando is offline
Willmaker
Senior Member
Join Date: Dec 2004
Location: Sydney, Australia
Old 05-18-2006 , 12:19  
Reply With Quote #15

Did a very quick test but so far it works.

This version allows you to put the steamids of players you want access to superjump into a file. This file should be called superjump.cfg and should be placed in the amxmodx/configs folder.

All you have to do is place a steamid on each line that you want to have access to superjump.

eg:

Code:
STEAM_0:1:1234567
STEAM_0:0:6436535
Players with those steamids listed will be able to superjump.

I decided not to do team restriction as that starts to make this plugin more mod specific.
Attached Files
File Type: sma Get Plugin or Get Source (superjump.sma - 671 views - 3.0 KB)
__________________
GargStudios.net - Australian SvenCoop/Ent Server with Time Based Rewards

Last edited by Willmaker; 09-27-2006 at 04:23.
Willmaker is offline
Send a message via ICQ to Willmaker Send a message via AIM to Willmaker Send a message via MSN to Willmaker Send a message via Yahoo to Willmaker
SS. Kommando
Member
Join Date: Oct 2005
Old 05-18-2006 , 16:20  
Reply With Quote #16

Thanks.
SS. Kommando is offline
SS. Kommando
Member
Join Date: Oct 2005
Old 05-19-2006 , 14:28  
Reply With Quote #17

Should it be in a CFG or another type like a simple text document?
SS. Kommando is offline
SS. Kommando
Member
Join Date: Oct 2005
Old 05-19-2006 , 14:32  
Reply With Quote #18

Can you please take a screenshot of your configs folder? So I can see how it exactly should look like. And it's still just superjump in console right? Not changed?
SS. Kommando is offline
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 05-19-2006 , 14:36  
Reply With Quote #19

Quote:
Originally Posted by Cheap_Suit
haha beat u to it
Last edited by Cheap_Suit on Wed Dec 21, 2005 9:51 pm; edited 1 time in total


Cheater
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
Willmaker
Senior Member
Join Date: Dec 2004
Location: Sydney, Australia
Old 05-19-2006 , 20:44  
Reply With Quote #20

Quote:
Originally Posted by Willmaker
This version allows you to put the steamids of players you want access to superjump into a file. This file should be called superjump.cfg and should be placed in the amxmodx/configs folder.
Quote:
Originally Posted by Willmaker
All you have to do is place a steamid on each line that you want to have access to superjump.

eg:

Code:
STEAM_0:1:1234567
STEAM_0:0:6436535
Got it yet?
__________________
GargStudios.net - Australian SvenCoop/Ent Server with Time Based Rewards
Willmaker is offline
Send a message via ICQ to Willmaker Send a message via AIM to Willmaker Send a message via MSN to Willmaker Send a message via Yahoo to Willmaker
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 09:01.


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