Merge pull request #54 from Sultan1337/patch-1

Update sf-cnr.pwn
This commit is contained in:
Lorenc Pekaj 2019-06-22 20:14:13 +10:00 committed by GitHub
commit e31e2d7ab7
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
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;
// Boxing immunity