Quote:
Originally Posted by HY
pawn Код:
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ) { if(IsPlayerInRangeOfPoint(playerid, RANGE, X, Y, Z)) { SetPlayerHealth(playerid, 0.0); SendClientMessage(playerid, -1, "You got killed, because you shooted in a Spawn Point !"); } return 1; }
/*
Replace X, Y, Z with your position of Spawn Point. Replace Range with your distance, when he cannot shoot.
*/
|
that not what i need .
if player just walk in the range of the spawn point and shoot anywhere that kill him .
i need if the bullet hit the X Y Z of the spawn point that will kill him