Advertisement
Guest User

Dah System GM

a guest
Nov 9th, 2018
388
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. //Ovo dodajte na vrhu skripte
  2. //Potrebni includovi
  3. #include <a_samp>
  4. #include <YSI\y_timers>
  5. new PlayerEffect[ MAX_PLAYERS ], PlayerRun[ MAX_PLAYERS ], EffectTimer[ MAX_PLAYERS ];
  6.  
  7. //Ovo dodajte bilo gde samo da bude ispod ovog prvog sto ste dodali
  8. #define OBJECT_SLOT_FREE 3
  9. task ActionEffect[2500]() {
  10. foreach(Player, i) {
  11. if( GetPlayerInterior( i ) == 0 && GetPlayerVirtualWorld( i ) == 0 ) {
  12. RemovePlayerAttachedObject( i, OBJECT_SLOT_FREE );
  13. 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);
  14. if( GetSpeed( i ) > 10 && PlayerRun[ i ] == 0 ) {
  15. KillTimer( EffectTimer[ i ] );
  16. EffectTimer[ i ] = SetTimerEx("ActionEffect", 890, true, "d", i );
  17. PlayerRun[ i ] = 1; }
  18. else if( GetSpeed( i ) < 10 && PlayerRun[ i ] == 1 ) {
  19. KillTimer( EffectTimer[ i ] );
  20. EffectTimer[ i ] = SetTimerEx( "ActionEffect", 1900, true, "d", i );
  21. PlayerRun[ i ] = 0; } } } }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement