DjoLe11

Untitled

May 10th, 2020
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.64 KB | None | 0 0
  1. public OnPlayerTakeDamage( playerid, issuerid, Float:amount, weaponid, bodypart ) {
  2. if( issuerid != INVALID_PLAYER_ID && issuerid != INVALID_PLAYER_ID && amount == 0 && weaponid == 0 && bodypart == 3 ) {
  3. format( globalstring, sizeof( globalstring ), "- {FFFFFF}Opposite Anticheat{FF0000} -"col_white" %s je kickovan sa servera. Razlog: "col_white"Command kill", ImeIgraca( issuerid ) );
  4. AdminPoruka( SVETLOCRVENA, globalstring );
  5. Kickovanje( issuerid, ""col_white"Ti si kickovan sa servera. Razlog: "col_srvboja"Command kill");
  6. return 0;
  7. }
  8. if(issuerid != INVALID_PLAYER_ID && weaponid == 34 && bodypart == 9)
  9. {
  10. // One shot to the head to kill with sniper rifle
  11. SetPlayerHealth(playerid, 0.0);
  12. SetPlayerArmour(playerid, 0.0);
  13. return 0;
  14. }
  15. if( issuerid != INVALID_PLAYER_ID ) {
  16. if( OI[ PlayerInfo[ issuerid ][ xClan ] ][ oTip ] == ORG_TIP_PD && !IsPlayerInAnyVehicle( issuerid ) && !IsPlayerInAnyVehicle( playerid ) && GetWeapon( issuerid ) == 23 && ImaTazer[ issuerid ] == true && !AdminDuty[ playerid ] ) {
  17. if( GetFactionType( playerid ) == ORG_TIP_PD ) return SCM( issuerid, CRVENA, "Ne mozes tazovati PD!" );
  18. new Float:Pos[ 3 ];
  19. GetPlayerPos( playerid, Pos[ 0 ], Pos[ 1 ], Pos[ 2 ] );
  20. if( IsPlayerInRangeOfPoint( issuerid, 6.0, Pos[ 0 ], Pos[ 1 ], Pos[ 2 ] ) ) {
  21.  
  22. format( globalstring, sizeof( globalstring ), "%s puca tazerom na %s-a i pogadja ga.", ImeIgraca( issuerid ), ImeIgraca( playerid ) );
  23. PorukaRadius( 20.0, issuerid, globalstring, SIVA );
  24. TogglePlayerControllable( playerid, false );
  25.  
  26. PlayerCuffed[ playerid ] = 1;
  27. Trysha_SetPlayerHealth( playerid, 50 );
  28. SetPVarInt( playerid, "CuffTimerCalled", 1 );
  29. TazerTimer[ playerid ] = SetTimerEx("TazovanTajmer", 5000, false, "i", playerid );
  30. OnePlayAnim( playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0 );
  31. return 0;
  32. }
  33. }
  34. if( NaDmEventu[ playerid ] == false && WARPInfo[ playerid ][ WARIgrac ] == -1 && !AdminDuty[ playerid ] && PlayerCuffed[ playerid ] == 0 ) {
  35. if( weaponid <= 42 ) {
  36. new Float:takeHealth = antiCheatCS[ playerid ][ TrueHealth ] - WeaponDamage[ weaponid ][ bodypart - 3 ];
  37. Trysha_SetPlayerHealth( playerid, takeHealth );
  38. }
  39. }
  40.  
  41. printf( "%s je naneo %.0f demidza %s-u, oruzje: %d, deo tela: %d", ImeIgraca( issuerid ), amount, ImeIgraca( playerid ), weaponid, bodypart );
  42. }
  43. return 1;
  44. }
Advertisement
Add Comment
Please, Sign In to add comment