29.06.2014, 11:33
How to make Safety Zone ? . Tks all
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; }
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; } |