30.06.2013, 12:12
Quote:
public OnPlayerDeath( playerid, killerid, reason ) { if( IsPlayerConnected( killerid ) ) { if( IsPlayerConnected( GetPVarInt( playerid, "LastKilled" ) ) && GetPVarInt( playerid, "LastKilled" ) == killerid ) { if( ( GetPVarInt( playerid, "LastKilledTickcount" ) - GetTickCount( ) ) < 500 ) { SetPVarInt( playerid, "LastKilledTick", GetPVarInt( playerid, "LastKilledTick" ) + 1 ); if( GetPVarInt( playerid, "LastKilledTick" ) > 1 ) Kick( playerid ); } SetPVarInt( playerid, "LastKilledTickcount", GetTickCount( ) ); } SetPVarInt( playerid, "LastKilled", killerid ); } return 1; } |