Tazer by a weapon?
#10

If shot a player with the tazer, using debug code under and where
pawn Код:
//taze 'playerid'
is, I've added debug tags,

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;
}
Reply


Messages In This Thread
Tazer by a weapon? - by acade - 25.02.2010, 16:56
Re: Tazer by a weapon? - by dice7 - 25.02.2010, 16:59
Re: Tazer by a weapon? - by acade - 25.02.2010, 17:08
Re: Tazer by a weapon? - by acade - 25.02.2010, 17:19
Re: Tazer by a weapon? - by dice7 - 25.02.2010, 17:26
Re: Tazer by a weapon? - by acade - 25.02.2010, 17:34
Re: Tazer by a weapon? - by acade - 25.02.2010, 17:40
Re: Tazer by a weapon? - by dice7 - 25.02.2010, 17:59
Re: Tazer by a weapon? - by acade - 25.02.2010, 20:02
Re: Tazer by a weapon? - by acade - 25.02.2010, 20:26

Forum Jump:


Users browsing this thread: 1 Guest(s)