02.06.2014, 17:46
Quote:
Could you add "OnPlayerDrown(playerid, Float: posX, Float: posY, Float: posZ)" please ?
|
something like this you mean?
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
new
Float:pOffset[3];
if(reason == WEAPON_DROWN)
{
GetPlayerPos(playerid, pOffset[0], pOffset[1], pOffset[2]);
CallLocalFunction("OnPlayerDrown", "ifff", playerid, pOffset[0], pOffset[1], pOffset[2]);
}
#if defined hook_OnPlayerDeath
return hook_OnPlayerDeath(playerid, killerid, reason);
#else
return 1;
#endif
}
#if defined _ALS_OnPlayerDeath
#undef OnPlayerDeath
#else
#define _ALS_OnPlayerDeath
#endif
#define OnPlayerDeath hook_OnPlayerDeath
#if defined hook_OnPlayerDeath
forward hook_OnPlayerDeath(playerid, killerid, reason);
#endif
forward OnPlayerDrown(playerid, Float:X, Float:Y, Float:Z);