#include #include #define mode MAP_ANDREAS_MODE_FULL public OnFilterScriptInit( ) { MapAndreas_Init( mode ); } public OnFilterScriptExit( ) { MapAndreas_Unload( ); } public OnPlayerUpdate( playerid ) { if( GetPlayerAnimationIndex( playerid ) != 1130 ) return 1; new Float:X, Float:Y, Float:Z, Float:Z2; GetPlayerPos( playerid, X, Y, Z ); MapAndreas_FindAverageZ( X, Y, Z2 ); if( Z - 2.0 < Z2 ) { GetPlayerVelocity( playerid, X, Y, Z ); SetPlayerVelocity( playerid, X, Y, 2.0 ); ClearAnimations( playerid ); } return 1; }