Raised This Month: $ Target: $400
 0% 

Parachute with Freezegrenade!


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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