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

Anti jump


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Balck
Senior Member
Join Date: Apr 2013
Location: Kosova-Mitrovica
Old 09-19-2013 , 06:09   Anti jump
Reply With Quote #1

Hi how can i block jumping for example
PHP Code:
if( fm_get_user_buttonid ) & IN_JUMP )
{
        
//write the code to do nothig :) if i press SPACE 

please help if you can
__________________
Balck is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 09-19-2013 , 07:43   Re: Anti jump
Reply With Quote #2

return PLUGIN_HANDLED ?
__________________
Kia is offline
Balck
Senior Member
Join Date: Apr 2013
Location: Kosova-Mitrovica
Old 09-19-2013 , 07:44   Re: Anti jump
Reply With Quote #3

Quote:
Originally Posted by Kia View Post
return PLUGIN_HANDLED ?
it doesn't work
__________________
Balck is offline
joshknifer
Veteran Member
Join Date: Jun 2011
Location: Denver, CO
Old 09-19-2013 , 11:49   Re: Anti jump
Reply With Quote #4

Do you want to block jumping for a specific player or just in the server in general? You could always set gravity to super high if the second one is the case.
__________________
joshknifer is offline
Send a message via Skype™ to joshknifer
Moody92
Veteran Member
Join Date: May 2011
Location: Oman
Old 09-19-2013 , 13:37   Re: Anti jump
Reply With Quote #5

This can help you...

https://forums.alliedmods.net/showthread.php?t=163534
Moody92 is offline
Balck
Senior Member
Join Date: Apr 2013
Location: Kosova-Mitrovica
Old 09-19-2013 , 13:46   Re: Anti jump
Reply With Quote #6

Quote:
Originally Posted by joshknifer View Post
Do you want to block jumping for a specific player or just in the server in general? You could always set gravity to super high if the second one is the case.
For a specific player

Quote:
Originally Posted by Moody92 View Post
i will see
__________________

Last edited by Balck; 09-19-2013 at 13:46.
Balck is offline
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 09-19-2013 , 16:18   Re: Anti jump
Reply With Quote #7

Quote:
Originally Posted by joshknifer View Post
Do you want to block jumping for a specific player or just in the server in general? You could always set gravity to super high if the second one is the case.
This would not be a good combination with, for example, cs_assault.
__________________
Black Rose is offline
Balck
Senior Member
Join Date: Apr 2013
Location: Kosova-Mitrovica
Old 09-19-2013 , 16:32   Re: Anti jump
Reply With Quote #8

Quote:
Originally Posted by Black Rose View Post
This would not be a good combination with, for example, cs_assault.
man i'm making a plugin and i need to block jump for example 2 sek do you understand
for example

public blablabla(id)
{
if(cantjump[id] == true)
{
//block jump
}
}
__________________

Last edited by Balck; 02-18-2014 at 06:34.
Balck is offline
Old 09-20-2013, 03:49
LordOfNothing
This message has been deleted by LordOfNothing. Reason: n
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 09-20-2013 , 05:57   Anti jump
Reply With Quote #9

That code makes no sense at all.
__________________
Black Rose is offline
Balck
Senior Member
Join Date: Apr 2013
Location: Kosova-Mitrovica
Old 09-20-2013 , 06:31   Re: Anti jump
Reply With Quote #10

Quote:
Originally Posted by LordOfNothing View Post
PHP Code:
#include <amxmodx>
#include <engine>
public client_PreThink(id)
{
 if(
get_user_button(id) & IN_JUMP)
    {
    
set_task(2.0 "stopBUTTON"id);
    }
}
public 
stopBUTTON(id)
{
if(
is_user_alive(id))
   {  
   return 
PLUGIN_HANDLED
   remove_task
id );
    }
return 
0;

Try this ..
1
2
__________________
Balck 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 19:59.


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