28.06.2009, 08:37
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys & KEY_SECONDARY_ATTACK)
{
if (PlayerToPoint(0.5, playerid, 1778.5148,-1575.8615,17.4416))
{
#define newhealth 50
new Float:oldhealth;
GetPlayerHealth(playerid,oldhealth);
SetPlayerHealth(playerid,oldhealth + newhealth);
}
}
return 1;
}
David