If a player stands 1m away from another player the person who has been approached gets 100HP.
#4

Quote:
Originally Posted by cloudysky
Посмотреть сообщение
Do you mind giving me an example? I would appreciate that.
Sure

pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
{
    if(IsPlayerConnected(i))
    {
        new Float:x, Float:y, Float:z;
        GetPlayerPos(i, x, y, z);
        if(IsPlayerInRangeOfPoint(playerid, 1.0, x, y, z))
        {
            SetPlayerHealth(playerid, 100);
        }
    }
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)