Raised This Month: $ Target: $400
 0% 

Parachute with Freezegrenade!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
STr!ker
Senior Member
Join Date: Jun 2009
Location: Germany
Old 11-03-2011 , 21:07   Parachute with Freezegrenade!
Reply With Quote #1

Hello i am using a parachute Plugin and the Freezegrenadeplugin (http://forums.alliedmods.net/showthread.php?t=41126)

I have the problem, when i freeze someone and the player press e for the parachute, he will become the lowest gravity of freeze grenade all time.

So my question is, how to prevent them pressing E (for parachute), while they are freezed?

The gravity by the freeze grenade is changed in line 387. So how i make the e button there unuseable?
STr!ker is offline
ANTICHRISTUS
kingdom of weird stuff
Join Date: Jun 2010
Location: My kingdom is not in thi
Old 11-04-2011 , 08:40   Re: Parachute with Freezegrenade!
Reply With Quote #2

ask in the thred of Avalanche (frostnades) and be patient, he may read it .
__________________
ANTICHRISTUS is offline
Xellath
Veteran Member
Join Date: Dec 2007
Location: Sweden
Old 11-04-2011 , 09:20   Re: Parachute with Freezegrenade!
Reply With Quote #3

Register a native in the frostnade plugin and return the value of isFrozen (the variable that indicates that a player is indeed frozen).

Code:
public plugin_natives( ) {     register_native( "is_player_frozen", "_is_player_frozen" ); } public _is_player_leader( Plugin, Params ) {     return isFrozen[ get_param( 1 ) ]; }

Then in the parachute plugin declare the native:

Code:
#include < amxmodx > // ... native is_player_frozen( const id );

After the native is declared, add the check to the button check (where the player is supposed to be given a parachute by pressing E).

Code:
public function_where_E_is_pressed( id ) {     if( is_player_frozen( id ) )     {         // player is frozen         return;     }     else     {         // not frozen     } }
__________________
Achievements API - a simple way for you to create your OWN custom achievements!
Xellath is offline
STr!ker
Senior Member
Join Date: Jun 2009
Location: Germany
Old 11-05-2011 , 00:36   Re: Parachute with Freezegrenade!
Reply With Quote #4

Quote:
Originally Posted by ANTICHRISTUS View Post
ask in the thred of Avalanche (frostnades) and be patient, he may read it .

Have already done..... (http://forums.alliedmods.net/showpos...&postcount=485)

@Xellath: Compiling has worked I will test it later
STr!ker is offline
MC.TSHIRT
Senior Member
Join Date: Dec 2010
Old 11-05-2011 , 10:01   Re: Parachute with Freezegrenade!
Reply With Quote #5

unnötig dafür soll dich Freezegrenade ja gedacht sein.
__________________
MC.TSHIRT is offline
STr!ker
Senior Member
Join Date: Jun 2009
Location: Germany
Old 11-05-2011 , 11:11   Re: Parachute with Freezegrenade!
Reply With Quote #6

Quote:
Originally Posted by MC.TSHIRT View Post
unnötig dafür soll dich Freezegrenade ja gedacht sein.
This is an english section, so write english.


Personalstatement:
Wenn du den Fehler schon nicht replizieren kannst, weil du keine ahnung vom scripten hast, und meine Plugins nicht hast, solltest du echt nicht dazwischen reden, besonders in threads wo man zeigt, dass du meine post einfach nachschaust um zu schauen, was man für deinen furienmod benutzen kann, leider klappt es dir nicht und ich passe auf, dass es auch so bleibt


Back to problem:

I have tested it in different ways about 3 hours... Well i have another idea to fix it. Cts have another gravity like the terrorists and i have solved the problem that the gravity changes when using the parachute ( i have save the gravity when you pressing E and the gravity changes back). So what we can do now is that we can set the cvars by the other plugin (which changes the gravity of the teams)

How to do that to get the cvars of another plugin and in which line the freezeplugin changed the gravity back, so we can set there our old cvars by the other plugin

Last edited by STr!ker; 11-05-2011 at 13:01.
STr!ker 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 14:15.


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