Raised This Month: $ Target: $400
 0% 

No jumping & attacking while freezed


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
PurposeLessx
Senior Member
Join Date: Jun 2017
Old 08-31-2017 , 13:38   No jumping & attacking while freezed
Reply With Quote #1

Hello friends,
I need a plugin that block everything while freezed.
Not jump, not duck, not attack. Not do anything.

I tried to block 'em with " RegisterHookChain(RG_CBasePlayer_Jump, "Player_Jump"); "
But I couldn't because of I don't know very well about reapi. I tried with hamsandwich.
Again I couldn't.
Thanks for helping
PurposeLessx is offline
kristi
Senior Member
Join Date: Nov 2016
Old 08-31-2017 , 14:20   Re: No jumping & attacking while freezed
Reply With Quote #2

set_pev(id, pev_flags, pev(id, pev_flags) | FL_FROZEN)

set_entvar(id, var_flags, get_entvar(id, var_flags) | FL_FROZEN)
kristi is offline
Send a message via Skype™ to kristi
PurposeLessx
Senior Member
Join Date: Jun 2017
Old 08-31-2017 , 14:32   Re: No jumping & attacking while freezed
Reply With Quote #3

I tried it.
PHP Code:
set_entvar(players[i], var_flagsget_entvar(players[i], var_flags) | FL_FROZEN); 
But they can still jump and attack everywhere and everyone.
I am trying it with bots. It can not block them because of they are bot, it can be?

Last edited by PurposeLessx; 08-31-2017 at 14:33.
PurposeLessx is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 09-01-2017 , 08:17   Re: No jumping & attacking while freezed
Reply With Quote #4

Quote:
Originally Posted by PurposeLessx View Post
I tried it.
PHP Code:
set_entvar(players[i], var_flagsget_entvar(players[i], var_flags) | FL_FROZEN); 
But they can still jump and attack everywhere and everyone.
I am trying it with bots. It can not block them because of they are bot, it can be?
Save their view angle when they spawn and set that angle on PreThink + fixangle 1. This will prevent them from turning.
For attacking, just set m_flNextPrimaryAttack.
For jumping, you can't properly block jump, it will still play a bit of the animation.
__________________
HamletEagle is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 08-31-2017 , 16:53   Re: No jumping & attacking while freezed
Reply With Quote #5

If you're trying with podbots, it should work.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
PurposeLessx
Senior Member
Join Date: Jun 2017
Old 09-01-2017 , 02:06   Re: No jumping & attacking while freezed
Reply With Quote #6

They are not podbots. They are more advanced than podbots.
PurposeLessx is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 09-01-2017 , 08:12   Re: No jumping & attacking while freezed
Reply With Quote #7

set_entvar? Why just not use set_pev/entity_set_int?
__________________








CrazY. is offline
Depresie
Veteran Member
Join Date: Nov 2013
Old 09-01-2017 , 16:10   Re: No jumping & attacking while freezed
Reply With Quote #8

I think setting player's velocity to 0 in prethink will solve the player's jump issue..
__________________
Depresie is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 09-01-2017 , 16:44   Re: No jumping & attacking while freezed
Reply With Quote #9

Quote:
Originally Posted by Depresie View Post
I think setting player's velocity to 0 in prethink will solve the player's jump issue..
Nope
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd 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 09:56.


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