AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Parachute with Freezegrenade! (https://forums.alliedmods.net/showthread.php?t=171260)

STr!ker 11-03-2011 21:07

Parachute with Freezegrenade!
 
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?

ANTICHRISTUS 11-04-2011 08:40

Re: Parachute with Freezegrenade!
 
ask in the thred of Avalanche (frostnades) and be patient, he may read it :).

Xellath 11-04-2011 09:20

Re: Parachute with Freezegrenade!
 
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     } }

STr!ker 11-05-2011 00:36

Re: Parachute with Freezegrenade!
 
Quote:

Originally Posted by ANTICHRISTUS (Post 1589706)
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 :D I will test it later :)

MC.TSHIRT 11-05-2011 10:01

Re: Parachute with Freezegrenade!
 
unnötig dafür soll dich Freezegrenade ja gedacht sein.

STr!ker 11-05-2011 11:11

Re: Parachute with Freezegrenade!
 
Quote:

Originally Posted by MC.TSHIRT (Post 1590556)
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 :)


All times are GMT -4. The time now is 14:15.

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