25.02.2010, 20:26
If shot a player with the tazer, using debug code under and where
is, I've added debug tags,
These haven't shown up for me or the player being shot.
pawn Код:
//taze 'playerid'
These haven't shown up for me or the player being shot.
pawn Код:
forward OnPlayerLooseHealth(playerid, oldhealth, newhealth);
public OnPlayerLooseHealth(playerid, oldhealth, newhealth)
{
for(new id = 0; id < MAX_PLAYERS; id++)
{
if(shot[id] == 1)
{
new
Float:angle;
GetPlayerFacingAngle(id, angle);
if(IsPlayerFacingPlayer(id, playerid, 5.0))
{
SendClientMessage(playerid, COLOR_WHITE, "[DEBUG] You shall be tazed");
SendClientMessage(id, COLOR_YELLOW, "[DEBUG] You shall be tazed");
return 1;
}
}
}
return 1;
}