15.11.2014, 13:31
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.
*/