How to give kill?
#3

Код:
public OnBombExplode(playerid, num, Float:x, Float:y, Float:z)
{
                return 1;
}
Replace it with
Код:
public OnBombExplode(playerid, num, Float:x, Float:y, Float:z)
{
        for(new i = 0; i < MAX_PLAYERS; i++)
	{
	 if(IsPlayerInRangeOfPoint(i,4,x,y,z))
	 {
            SetPlayerHealth(i,0);
            if(i != playerid)
            {
                SendDeathMessage(i,playerid,51);
                //reward for kill here
            }
         }
       }
    return 1;
}
Reply


Messages In This Thread
How to give kill? - by Insulin - 04.11.2013, 15:07
Re: How to give kill? - by Insulin - 05.11.2013, 04:07
Re: How to give kill? - by _Mohit_ - 05.11.2013, 09:17

Forum Jump:


Users browsing this thread: 2 Guest(s)