Bite system
#4

Quote:
Originally Posted by [D]ry[D]esert
Посмотреть сообщение
Does't work :\
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    new Float:health;
    if(newkeys == KEY_AIM) // This was the error here.
       {
        if(gTeam[playerid] == TEAM_ZOMBIES)
        {
            new victimid = GetClosestPlayer(playerid);
            GetPlayerHealth(victimid, health);
            if(gTeam[victimid] == TEAM_HUMANS)
            {
                if(GetDistanceBetweenPlayers(playerid,victimid) < 2)
                {
                    SetPlayerHealth(victimid, health - 6.0);
                    GameTextForPlayer(victimid, "~p~Biten", 1000, 3);
                    PlayerPlaySound(playerid, 1136, 0, 0, 0);
                    PlayerPlaySound(victimid, 1136, 0, 0, 0);
                }
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
Bite system - by [D]ry[D]esert - 26.04.2012, 08:51
Re: Bite system - by Ballu Miaa - 26.04.2012, 08:55
Re: Bite system - by [D]ry[D]esert - 26.04.2012, 09:54
Re: Bite system - by Ballu Miaa - 26.04.2012, 12:49
Re: Bite system - by SuperViper - 26.04.2012, 14:09
Re: Bite system - by Ballu Miaa - 26.04.2012, 16:23
Re: Bite system - by Rudy_ - 26.04.2012, 16:26
Re: Bite system - by Vince - 26.04.2012, 17:05
Re: Bite system - by Rudy_ - 26.04.2012, 17:13
Re: Bite system - by Ballu Miaa - 27.04.2012, 03:22

Forum Jump:


Users browsing this thread: 1 Guest(s)