[Include] OnPlayerDriveBy for 0.3d R2 and above
#10

This won't actually detect if the player is drivebying, it will detect if someone has parked on the top of another player / choppers them. You can fix this by doing


pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid)
{
        if (issuerid != INVALID_PLAYER_ID && (weaponid == 32 || weaponid == 28 || weaponid == 29) && KOPDB_hasOPDB && (GetPlayerState(issuerid) == PLAYER_STATE_PASSENGER || GetPlayerState(issuerid) == PLAYER_STATE_DRIVER))
                CallLocalFunction("OnPlayerDriveBy", "ddd", issuerid, playerid, 0);
 
        return (KOPDB_hasOPTD) ? KOPDB_CallOPTD() : 0;
}
Reply


Messages In This Thread
OnPlayerDriveBy for 0.3d RC2 and above - by KoczkaHUN - 18.09.2011, 18:28
Re: OnPlayerDriveBy for 0.3d R2 and above - by Kaperstone - 18.09.2011, 18:30
Re: OnPlayerDriveBy for 0.3d R2 and above - by FireCat - 18.09.2011, 18:46
Re: OnPlayerDriveBy for 0.3d R2 and above - by wups - 18.09.2011, 18:47
Re: OnPlayerDriveBy for 0.3d R2 and above - by Mass_Deboose - 18.09.2011, 19:17
Re: OnPlayerDriveBy for 0.3d R2 and above - by Edvin - 18.09.2011, 19:34
Re: OnPlayerDriveBy for 0.3d R2 and above - by Jafet_Macario - 18.09.2011, 19:46
Re: OnPlayerDriveBy for 0.3d R2 and above - by Geso - 19.09.2011, 06:32
Re: OnPlayerDriveBy for 0.3d R2 and above - by |_ⒾⓇⓄN_ⒹⓄG_| - 19.09.2011, 07:33
Re: OnPlayerDriveBy for 0.3d R2 and above - by [HiC]TheKiller - 19.09.2011, 07:40

Forum Jump:


Users browsing this thread: 1 Guest(s)