function servercmdPvP(%this)
{
if(!%this.isSuperAdmin)
return;
if($pvp != 1)
{
$pvp = 1;
return;
}
$pvp = 0;
}
package pvp
{
function Armor::onDamage(%this,%player,%dmg)
{
if($pvp == 1)
{
%dmg = 0;
}
parent::onDamage(%this,%player,%dmg);
}
};
activatePackage(pvp);
This is the simplest PVP code available, and will disable damage when turned on. It can be toggled. For specific players and stuff, I would suggest replacing $pvp with %this.pvp in the serverCmd and %player.client.pvp in the onDamage package. Also run an extra check to see if the player dealing the damage also has pvp on.
If you have no clue how to go about this, ask Jes00 to make it or something