SA-MP Forums Archive
How to make Safety Zone ? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How to make Safety Zone ? (/showthread.php?tid=522819)



How to make Safety Zone ? - lorenkid - 29.06.2014

How to make Safety Zone ? . Tks all


Re: How to make Safety Zone ? - MotherDucker - 29.06.2014

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



Re: How to make Safety Zone ? - lorenkid - 29.06.2014

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


Re: How to make Safety Zone ? - MotherDucker - 29.06.2014

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