Animacija, (imaju linije)

Započeo Sinner.man, April 05, 2020, 15:32:57 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Problem(error/warning): Kada tazujete igraca, ne freeza ga, nema animacije
Dio skripte: [pawn]public OnPlayerTakeDamage( playerid, issuerid, Float:amount, weaponid, bodypart ) {
   if( issuerid != INVALID_PLAYER_ID && issuerid != INVALID_PLAYER_ID && amount == 0 && weaponid == 0 && bodypart == 3 ) {
       format( globalstring, sizeof( globalstring ), "| E - | %s je kickovan sa servera. Razlog: "col_white"Command kill", ImeIgraca( issuerid ) );
      AdminPoruka( SVETLOCRVENA, globalstring );
      Kickovanje( issuerid, ""col_white"Ti si kickovan sa servera. Razlog: "col_red"Command kill");
          return 0;
   }

   if( issuerid != INVALID_PLAYER_ID  ) {
      if( OI[ PlayerInfo[ issuerid ][ xClan ] ][ oTip ] == ORG_TIP_PD && !IsPlayerInAnyVehicle( issuerid ) && !IsPlayerInAnyVehicle( playerid ) && GetWeapon( issuerid ) == 23 && ImaTazer[ issuerid ] == true && !AdminDuty[ playerid ] ) {
          if( GetFactionType( playerid ) == ORG_TIP_PD ) return SCM( issuerid, CRVENA, "Ne mozes tazovati PD!" );

         new Float:Pos[ 3 ];
         GetPlayerPos( playerid, Pos[ 0 ], Pos[ 1 ], Pos[ 2 ] );
         if( IsPlayerInRangeOfPoint( issuerid, 10.0, Pos[ 0 ], Pos[ 1 ], Pos[ 2 ] ) ) {

            format( globalstring, sizeof( globalstring ), "%s puca tazerom na %s-a i pogadja ga.", ImeIgraca( issuerid ), ImeIgraca( playerid ) );
            PorukaRadius( 20.0, issuerid, globalstring, LJUBICASTA );
            TogglePlayerControllable( playerid, false );

            PlayerCuffed[ playerid ] = 1;
            Marley_SetPlayerHealth( playerid, 50 );
            SetPVarInt( playerid, "CuffTimerCalled", 1 );
            TazerTimer[ playerid ] = SetTimerEx("TazovanTajmer", 15000, false, "i", playerid );
            OnePlayAnim( playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0 );
            return 0;
         }
        }

        /*if( NaDmEventu[ playerid ] == false && WARPInfo[ playerid ][ WARIgrac ] == -1 && !AdminDuty[ playerid ] && PlayerCuffed[ playerid ] == 0 ) {
           if( weaponid <= 42 ) {
              new Float:takeHealth = antiCheatCS[ playerid ][ TrueHealth ] - WeaponDamage[ weaponid ][ bodypart - 3 ];
              Dimi_SetPlayerHealth( playerid, takeHealth );
         }
      }*/

      //printf( "%s je naneo %.0f demidza %s-u, oruzje: %d, deo tela: %d", ImeIgraca( issuerid ), amount, ImeIgraca( playerid ), weaponid, bodypart );
   }
   return 1;
}

public TazovanTajmer( playerid ) {
   if( PlayerCuffed[ playerid ] == 1 ) {

      PlayerCuffed[ playerid ] = 0;
      SetPVarInt( playerid, "CuffTimerCalled", 0 );
      TogglePlayerControllable( playerid, true );
      GameTextForPlayer( playerid, "~y~Tazer zavrsen", 5000, 3 );
      ClearAnimations( playerid );
        Marley_KillTimer( TazerTimer[ playerid ] );
   }
   return 1;
}  [/pawn]
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): [ code ]vaš odgovor[ /code ]
Slika/video ingame problema(obavezno ako je ingame problem): Nisu bile animacije na serveru pa kada igraca tazujete niti mu se seta animacija niti frezuje
:)