[Tutorial] How to make a very simple Anti-Spawn Kill
#15

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


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)