Advertisement
StefkeZ

Untitled

Jul 30th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.68 KB | None | 0 0
  1. OnPlayerDamage(&playerid, &Float:amount, &issuerid, &weapon, &bodypart)
  2. if( issuerid != INVALID_PLAYER_ID && issuerid != INVALID_PLAYER_ID && amount == 0 && weaponid == 0 && bodypart == 3 ) {
  3. format( globalstring, sizeof( globalstring ), "~b~[ EC:AC ] ~w~ %s je kickovan sa servera. Razlog: "col_white"Command kill", ImeIgraca( issuerid ) );
  4. AdminPoruka( SVETLOPLAVA, globalstring );
  5. Kickovanje( issuerid, ""col_white"Ti si kickovan sa servera. Razlog: "col_ag"Command kill");
  6. return 0;
  7. }
  8.  
  9. if( issuerid != INVALID_PLAYER_ID ) {
  10. if( OI[ PlayerInfo[ issuerid ][ xClan ] ][ oTip ] == ORG_TIP_PD && !IsPlayerInAnyVehicle( issuerid ) && !IsPlayerInAnyVehicle( playerid ) && GetWeapon( issuerid ) == 23 && ImaTazer[ issuerid ] == true && !AdminDuty[ playerid ] ) {
  11. if( GetFactionType( playerid ) == ORG_TIP_PD ) return SCM( issuerid, SVETLOPLAVA, "Ne mozes tazovati PD!" );
  12.  
  13. new Float:Pos[ 3 ];
  14. GetPlayerPos( playerid, Pos[ 0 ], Pos[ 1 ], Pos[ 2 ] );
  15. if( IsPlayerInRangeOfPoint( issuerid, 10.0, Pos[ 0 ], Pos[ 1 ], Pos[ 2 ] ) ) {
  16.  
  17. format( globalstring, sizeof( globalstring ), "%s puca tazerom na %s-a i pogadja ga.", ImeIgraca( issuerid ), ImeIgraca( playerid ) );
  18. PorukaRadius( 20.0, issuerid, globalstring, LJUBICASTA );
  19. TogglePlayerControllable( playerid, false );
  20.  
  21. if( Maskuse[ playerid ] == true ) {
  22. SetPlayerName( playerid, RealName[ playerid ] );
  23. Maskuse[ playerid ] = false;
  24. }
  25.  
  26. PlayerCuffed[ playerid ] = 1;
  27. Stefi_SetPlayerHealth( playerid, 50 );
  28. SetPVarInt( playerid, "CuffTimerCalled", 1 );
  29. TazerTimer[ playerid ] = SetTimerEx("TazovanTajmer", 15000, false, "i", playerid );
  30. OnePlayAnim( playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0 );
  31. return 0;
  32. }
  33. }
  34.  
  35. /*if( NaDmEventu[ playerid ] == false && WARPInfo[ playerid ][ WARIgrac ] == -1 && !AdminDuty[ playerid ] && PlayerCuffed[ playerid ] == 0 ) {
  36. if( weaponid <= 42 ) {
  37. new Float:takeHealth = antiCheatCS[ playerid ][ TrueHealth ] - WeaponDamage[ weaponid ][ bodypart - 3 ];
  38. Stefi_SetPlayerHealth( playerid, takeHealth );
  39. }
  40. }*/
  41.  
  42. //printf( "%s je naneo %.0f demidza %s-u, oruzje: %d, deo tela: %d", ImeIgraca( issuerid ), amount, ImeIgraca( playerid ), weaponid, bodypart );
  43. }
  44. return 1;
  45. }
  46.  
  47. public TazovanTajmer( playerid ) {
  48. if( PlayerCuffed[ playerid ] == 1 ) {
  49.  
  50. PlayerCuffed[ playerid ] = 0;
  51. SetPVarInt( playerid, "CuffTimerCalled", 0 );
  52. TogglePlayerControllable( playerid, true );
  53. GameTextForPlayer( playerid, "~y~Tazer zavrsen", 5000, 3 );
  54. ClearAnimations( playerid );
  55. Stefi_KillTimer( TazerTimer[ playerid ] );
  56. }
  57. return 1;
  58. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement