How to make Safety Zone ?
#1

How to make Safety Zone ? . Tks all
Reply
#2

This should work, Can't test as I'm on my phone; however I'm most sure that it will.
Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
        new Float:X, Float:Y, Float:Z;
        GetPlayerPos(playerid, X, Y, Z);
        IsPlayerInRangeOfPoint(playerod, RANGE-VALUE, X-VALUE, Y-VALUE, Z-VALUE)
        {
               SetPlayerHealth(playerid, 500.0);
               SetPlayerArmour(playerid, 500.0); //Armour is optional.
        }
	return 1;
}
Reply
#3

Quote:
Originally Posted by MotherDucker
Посмотреть сообщение
This should work, Can't test as I'm on my phone; however I'm most sure that it will.
Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
        new Float:X, Float:Y, Float:Z;
        GetPlayerPos(playerid, X, Y, Z);
        IsPlayerInRangeOfPoint(playerod, RANGE-VALUE, X-VALUE, Y-VALUE, Z-VALUE)
        {
               SetPlayerHealth(playerid, 500.0);
               SetPlayerArmour(playerid, 500.0); //Armour is optional.
        }
	return 1;
}
thanks you bro xD
Reply
#4

No problem, It might work but i'm not sure; if it does please rep me, need to build it up again :/ New account :P
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)