add brackets for consistency
This commit is contained in:
parent
6a7beca4cb
commit
909838cdbd
@ -1062,14 +1062,18 @@ public OnPlayerTakePlayerDamage( playerid, issuerid, &Float: amount, weaponid, b
|
|||||||
#else
|
#else
|
||||||
if ( p_Class[ issuerid ] == CLASS_POLICE && p_Class[ playerid ] != CLASS_POLICE && !p_WantedLevel[ playerid ] && GetPlayerState( playerid ) != PLAYER_STATE_WASTED )
|
if ( p_Class[ issuerid ] == CLASS_POLICE && p_Class[ playerid ] != CLASS_POLICE && !p_WantedLevel[ playerid ] && GetPlayerState( playerid ) != PLAYER_STATE_WASTED )
|
||||||
#endif
|
#endif
|
||||||
|
{
|
||||||
return ShowPlayerHelpDialog( issuerid, 2000, "You cannot hurt innocent civilians, you're a ~b~cop~w~~h~!" ), 0;
|
return ShowPlayerHelpDialog( issuerid, 2000, "You cannot hurt innocent civilians, you're a ~b~cop~w~~h~!" ), 0;
|
||||||
|
}
|
||||||
|
|
||||||
#if defined __cloudy_event_system
|
#if defined __cloudy_event_system
|
||||||
if ( p_Class[ playerid ] == p_Class[ issuerid ] && p_Class[ playerid ] != CLASS_CIVILIAN && ! ( IsPlayerInEvent( issuerid ) && IsPlayerInEvent( playerid ) && g_eventData[ EV_FIGHT_TYPE ] == 2 ) )
|
if ( p_Class[ playerid ] == p_Class[ issuerid ] && p_Class[ playerid ] != CLASS_CIVILIAN && ! ( IsPlayerInEvent( issuerid ) && IsPlayerInEvent( playerid ) && g_eventData[ EV_FIGHT_TYPE ] == 2 ) )
|
||||||
#else
|
#else
|
||||||
if ( p_Class[ playerid ] == p_Class[ issuerid ] && p_Class[ playerid ] != CLASS_CIVILIAN )
|
if ( p_Class[ playerid ] == p_Class[ issuerid ] && p_Class[ playerid ] != CLASS_CIVILIAN )
|
||||||
#endif
|
#endif
|
||||||
|
{
|
||||||
return 0;
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
if ( p_BulletInvulnerbility[ playerid ] > g_iTime )
|
if ( p_BulletInvulnerbility[ playerid ] > g_iTime )
|
||||||
return ShowPlayerHelpDialog( issuerid, 2000, "This player is immune from damage!" ), 0;
|
return ShowPlayerHelpDialog( issuerid, 2000, "This player is immune from damage!" ), 0;
|
||||||
@ -1091,7 +1095,9 @@ public OnPlayerTakePlayerDamage( playerid, issuerid, &Float: amount, weaponid, b
|
|||||||
#else
|
#else
|
||||||
if ( IsPlayerInPlayerGang( issuerid, playerid ) )
|
if ( IsPlayerInPlayerGang( issuerid, playerid ) )
|
||||||
#endif
|
#endif
|
||||||
|
{
|
||||||
return ShowPlayerHelpDialog( issuerid, 2000, "You cannot damage your homies!" ), 0;
|
return ShowPlayerHelpDialog( issuerid, 2000, "You cannot damage your homies!" ), 0;
|
||||||
|
}
|
||||||
|
|
||||||
// Anti Random Deathmatch
|
// Anti Random Deathmatch
|
||||||
if ( IsRandomDeathmatch( issuerid, playerid ) ) {
|
if ( IsRandomDeathmatch( issuerid, playerid ) ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user