16.05.2014, 22:53
pawn Код:
CMD:testanim(playerid, params[])
{
ApplyAnimation(playerid, "PLAYIDLES", "shldr", 4.1, 0, 0, 0, 0, 0, 1);
return 1;
}
CMD:testanim(playerid, params[])
{
ApplyAnimation(playerid, "PLAYIDLES", "shldr", 4.1, 0, 0, 0, 0, 0, 1);
return 1;
}
native GetPlayerSkillLevel(playerid, skill);
forward OnPlayerReloadWeapon(playerid, weaponid, Float:ammo);
Added, thanks!
I added it like this, though: pawn Код:
|
Another error:
emmetcallbacks.inc(742) : error 025: function heading differs from prototype |
#if defined CB_OnPlayerWeaponShot
forward CB_OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ);
#endif
Could you add "OnPlayerDrown(playerid, Float: posX, Float: posY, Float: posZ)" please ?
|
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);