Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Ovo dodas na vrh skripte
- new PlayerEffect[ MAX_PLAYERS ], PlayerRun[ MAX_PLAYERS ], EffectTimer[ MAX_PLAYERS ];
- //Ovo dodas ispod tog gore sto si stavljao na vrh skripte uz /////
- #define OBJECT_SLOT_FREE 3
- task ActionEffect[2500]() {
- foreach(Player, i) {
- if( UlogovanProvera[ i ] == 1 ) {
- if( GetPlayerInterior( i ) == 0 && GetPlayerVirtualWorld( i ) == 0 ) {
- RemovePlayerAttachedObject( i, OBJECT_SLOT_FREE );
- 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);
- if( GetSpeed( i ) > 10 && PlayerRun[ i ] == 0 ) {
- KillTimer( EffectTimer[ i ] );
- EffectTimer[ i ] = SetTimerEx("ActionEffect", 890, true, "d", i );
- PlayerRun[ i ] = 1; }
- else if( GetSpeed( i ) < 10 && PlayerRun[ i ] == 1 ) {
- KillTimer( EffectTimer[ i ] );
- EffectTimer[ i ] = SetTimerEx( "ActionEffect", 1900, true, "d", i );
- PlayerRun[ i ] = 0; } } } }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement