Whitetigerswt

Untitled

Jan 26th, 2012
944
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.59 KB | None | 0 0
  1. #include <a_samp>
  2. #include <mapandreas>
  3.  
  4. #define mode MAP_ANDREAS_MODE_FULL
  5.  
  6. public OnFilterScriptInit( ) {
  7.     MapAndreas_Init( mode );
  8.  
  9. }
  10.  
  11. public OnFilterScriptExit( ) {
  12.     MapAndreas_Unload( );
  13.  
  14. }
  15.  
  16. public OnPlayerUpdate( playerid ) {
  17.     if( GetPlayerAnimationIndex( playerid ) != 1130 ) return 1;
  18.     new Float:X, Float:Y, Float:Z, Float:Z2;
  19.    
  20.     GetPlayerPos( playerid, X, Y, Z );
  21.    
  22.     MapAndreas_FindAverageZ( X, Y, Z2 );
  23.    
  24.     if( Z - 2.0 < Z2 ) {
  25.         GetPlayerVelocity( playerid, X, Y, Z );
  26.         SetPlayerVelocity( playerid, X, Y, 2.0 );
  27.         ClearAnimations( playerid );
  28.     }
  29.     return 1;
  30. }
Advertisement
Add Comment
Please, Sign In to add comment