Raised This Month: $51 Target: $400
 12% 

I can set ON_GROUND flag for player?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
karaulov
Senior Member
Join Date: Jul 2018
Old 03-21-2021 , 04:13   I can set ON_GROUND flag for player?
Reply With Quote #1

I can set ONGROUND flag for player?

Last edited by karaulov; 03-30-2021 at 23:23.
karaulov is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 03-21-2021 , 05:01   Re: I can set ONGROUND flag for player?
Reply With Quote #2

What are you trying to do?
__________________
HamletEagle is offline
karaulov
Senior Member
Join Date: Jul 2018
Old 03-30-2021 , 23:23   Re: I can set ONGROUND flag for player?
Reply With Quote #3

not solved
karaulov is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 03-30-2021 , 23:35   Re: I can set ON_GROUND flag for player?
Reply With Quote #4

Quote:
Originally Posted by karaulov View Post
not solved
Quote:
Originally Posted by HamletEagle View Post
What are you trying to do?
__________________
Bugsy is offline
JocAnis
Veteran Member
Join Date: Jun 2010
Old 03-31-2021 , 13:32   Re: I can set ON_GROUND flag for player?
Reply With Quote #5

did you try

Code:
set_pev( id, pev_flags, FL_ONGROUD ) 

which probably wont work, so maybe:

drop_to_flor( id )
__________________
KZ Public Autocup - PrimeKZ

My blog: http://primekz.xyz (in progress...) - not active (dec 2022)
JocAnis is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 03-31-2021 , 14:52   Re: I can set ON_GROUND flag for player?
Reply With Quote #6

set_pev( id, pev_flags, FL_ONGROUD )

this will remove the player other flags, which will cause the player to several malfunctions.

you need to remove it from flags

set_pev(id, pev_flags, pev(id, pev_flags) & ~FL_ONGROUND)
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 03-31-2021 , 17:23   Re: I can set ON_GROUND flag for player?
Reply With Quote #7

I think he's asking how to add it, not remove.

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

Again, better off explaining what you're trying to do instead of speaking in terms of code.
__________________
Bugsy 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 18:24.


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