19.05.2013, 21:42
This is better for anti spawn kill
Code:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
if(IsPlayerInRangeOfPoint(issuerid, Float:Range, Float:SpawnX, Float:SpawnY, Float:SpawnZ))
{
SetPlayerHealth(issuerid, 0); // my punishment for the Spawn Killer is Death.
SendClientMessage(issuerid, -1, "SERVER : You can't spawn kill!"); // then sends him a message that he can't spawn kill
}
return 1;
}

