public OnPlayerDamageDone(playerid, Float:amount, issuerid, weapon, bodypart) { if( IsPlayerNPC( playerid ) || AdminDuty[ playerid ] || antiSpawnKill[ playerid ] == 1 ) return 0; if( issuerid != INVALID_PLAYER_ID ) { if( NaDmEventu[ playerid ] == false && WARPInfo[ playerid ][ WARIgrac ] == -1 && tdm_player_info[ playerid ][ tdm_Team ] == 0 ) { if( weapon >= 22 && weapon <= 42 ) { if( GetWeapon( issuerid ) == 23 && ImaTazer[ issuerid ] == true ) { } else { if( !dsys_info[ playerid ][ ds_b_w ] && GetPlayerInterior( playerid ) == 0 && GetPlayerVirtualWorld( playerid ) == 0 ) { new Float:HP; GetPlayerHealth( playerid, HP ); if( HP <= 10 ) { HP = 10; if( !dsys_info[ playerid ][ ds_b_w ] ) { dsys_info[ playerid ][ ds_b_w ] = true; dsys_info[ playerid ][ ds_b_istek ] = true; dsys_info[ playerid ][ ds_bl_time ] = 30; dsys_info[ playerid ][ ds_b_reason ] = weapon; dsys_info[ playerid ][ ds_b_killed_ID ] = issuerid; dsys_info[ playerid ][ ds_b_killed_xID ] = PlayerInfo[ issuerid ][ xID ]; new stringce[ 40 ]; format( stringce, sizeof( stringce ), "Umirete za %d sekundi", dsys_info[ playerid ][ ds_bl_time ] ); NotifyPlayer( playerid, "Ranjeni ste", stringce, 0, 30000 ); if( GetPlayerVehicleID( playerid ) != INVALID_VEHICLE_ID ) KGEyes_RemovePlayerFromVehicle( playerid ); SetPlayerHealth( playerid, 10.0 ); format( globalstring, sizeof( globalstring ), "(( Ovaj igrac je ranjen, imate %ds da mu pomognete. ))", dsys_info[ playerid ][ ds_bl_time ] ); SetPlayerChatBubble( playerid, globalstring, SVETLOCRVENA, 9.5, 600000 ); KGEyes_TogglePlayerControllable( playerid, false ); ApplyAnimation( playerid, "SWEET","Sweet_injuredloop", 4.0, 1, 0, 0, 0, 0); ApplyAnimation( playerid, "SWEET","Sweet_injuredloop", 4.0, 1, 0, 0, 0, 0); SendInfoMessage( playerid, "Ranjeni ste, imate %ds da vam neko pomogne.", dsys_info[ playerid ][ ds_bl_time ] ); if( GetFactionType( issuerid ) != ORG_TIP_PD ) PostaviWanted( issuerid, "Pokusaj ubistva", "Nepoznati", 6 ); return 0; } } } } } } } return 1; }