Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- OnPlayerDamage(&playerid, &Float:amount, &issuerid, &weapon, &bodypart)
- if( issuerid != INVALID_PLAYER_ID && issuerid != INVALID_PLAYER_ID && amount == 0 && weaponid == 0 && bodypart == 3 ) {
- format( globalstring, sizeof( globalstring ), "~b~[ EC:AC ] ~w~ %s je kickovan sa servera. Razlog: "col_white"Command kill", ImeIgraca( issuerid ) );
- AdminPoruka( SVETLOPLAVA, globalstring );
- Kickovanje( issuerid, ""col_white"Ti si kickovan sa servera. Razlog: "col_ag"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, SVETLOPLAVA, "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 );
- if( Maskuse[ playerid ] == true ) {
- SetPlayerName( playerid, RealName[ playerid ] );
- Maskuse[ playerid ] = false;
- }
- PlayerCuffed[ playerid ] = 1;
- Stefi_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 ];
- Stefi_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 );
- Stefi_KillTimer( TazerTimer[ playerid ] );
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement