Update sf-cnr.pwn

SAMPCAC death damage fix - Sultan
This commit is contained in:
Sultan1337 2019-06-20 16:13:47 -07:00 committed by GitHub
parent c619235d27
commit 34de857bf2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1013,7 +1013,7 @@ function RespawnaVehicle( vehicleid ) {
#if defined AC_INCLUDED #if defined AC_INCLUDED
public OnPlayerTakePlayerDamage( playerid, issuerid, &Float: amount, weaponid, bodypart ) public OnPlayerTakePlayerDamage( playerid, issuerid, &Float: amount, weaponid, bodypart )
{ {
if ( !IsPlayerStreamedIn( issuerid, playerid ) || IsPlayerAFK( issuerid ) ) if ( !IsPlayerStreamedIn( issuerid, playerid ) || IsPlayerAFK( issuerid ) || GetPlayerState( issuerid ) == PLAYER_STATE_WASTED )
return 0; return 0;
// Boxing immunity // Boxing immunity