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
}
}
__________________