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

[HELP] Gravity


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
lolzin123
Member
Join Date: Apr 2009
Old 08-01-2009 , 22:51   [HELP] Gravity
Reply With Quote #1

How I set gravity on the player to he can't walk... and set the gravity to normal again... how i do it? TNX
lolzin123 is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 08-02-2009 , 04:34   Re: [HELP] Gravity
Reply With Quote #2

You can't do that with gravity, use set_user_maxspeed(...)
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
lolzin123
Member
Join Date: Apr 2009
Old 08-02-2009 , 10:26   Re: [HELP] Gravity
Reply With Quote #3

but if i do this and the player switch the weapon... His maxspeed back to normal.
lolzin123 is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 08-02-2009 , 10:31   Re: [HELP] Gravity
Reply With Quote #4

Quote:
Originally Posted by lolzin123 View Post
but if i do this and the player switch the weapon... His maxspeed back to normal.
Add a hook on curweapon to set maxspeed

PHP Code:
register_event"CurWeapon" "fw_CurWeapon" "be" "1=1" );

public 
fw_CurWeaponid )
{
    static 
iWeaponiWeapon read_data);
    static 
iPrevWeapon33 ];

    if ( 
iPrevWeaponid ] != iWeapon )
        
set_user_maxspeedid 1.0 );
    
    
iPrevWeaponid ] = iWeapon;

__________________

Last edited by Bugsy; 08-02-2009 at 10:42.
Bugsy is offline
lolzin123
Member
Join Date: Apr 2009
Old 08-02-2009 , 12:22   Re: [HELP] Gravity
Reply With Quote #5

i'm tryng to add this to a block whit freeze time determined, like 10 seconds... any idea about this?
lolzin123 is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 08-02-2009 , 15:08   Re: [HELP] Gravity
Reply With Quote #6

You want the person to just be frozen for 10 seconds?
__________________
Bugsy is offline
lolzin123
Member
Join Date: Apr 2009
Old 08-02-2009 , 16:28   Re: [HELP] Gravity
Reply With Quote #7

yep! but just when the person walk on the block.
lolzin123 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 15:15.


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