Advertisement
Guest User

Untitled

a guest
Oct 18th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. //Ovo dodas na vrh skripte
  2. new PlayerEffect[ MAX_PLAYERS ], PlayerRun[ MAX_PLAYERS ], EffectTimer[ MAX_PLAYERS ];
  3.  
  4. //Ovo dodas ispod tog gore sto si stavljao na vrh skripte uz /////
  5. #define OBJECT_SLOT_FREE 3
  6. task ActionEffect[2500]() {
  7. foreach(Player, i) {
  8. if( UlogovanProvera[ i ] == 1 ) {
  9. if( GetPlayerInterior( i ) == 0 && GetPlayerVirtualWorld( i ) == 0 ) {
  10. RemovePlayerAttachedObject( i, OBJECT_SLOT_FREE );
  11. PlayerEffect[ i ] = SetPlayerAttachedObject( i, OBJECT_SLOT_FREE, 18696, 2,0.0,0.1,-0.2,-25.5000,0.0,0.0,0.10,0.3,0.15);
  12. if( GetSpeed( i ) > 10 && PlayerRun[ i ] == 0 ) {
  13. KillTimer( EffectTimer[ i ] );
  14. EffectTimer[ i ] = SetTimerEx("ActionEffect", 890, true, "d", i );
  15. PlayerRun[ i ] = 1; }
  16. else if( GetSpeed( i ) < 10 && PlayerRun[ i ] == 1 ) {
  17. KillTimer( EffectTimer[ i ] );
  18. EffectTimer[ i ] = SetTimerEx( "ActionEffect", 1900, true, "d", i );
  19. PlayerRun[ i ] = 0; } } } }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement