Jump to content
MakeWebGames

attacking help


DeaTH_RideR
 Share

Recommended Posts

Re: attacking help

In attack.php

Find

print "This player is in hospital.

[url='index.php']> Back[/url]";
$h->endpage();
$_SESSION['attacking']=0;
$ir['attacking']=0;
$db->query("UPDATE users SET attacking=0 WHERE userid=$userid");
exit;
}

 

Add under

else if ($odata['userid'] == 1)
{
print "Staff cannot be attacked!";
$h->endpage();
exit;
}

 

That will keep anyone from attacking you as long as your user id is 1, If it isn't 1 then change the number to whatever your ID number is.

Link to comment
Share on other sites

Re: attacking help

 

else if ($odata['user_lever'] == 2,3,4)
{
print "Staff cannot be attacked!";
$h->endpage();
exit;
}

 

hopefully i get this right lol anyway the edit i just did SHOULD stop ALL staff from being able to be attacked but i cant remember if its user_level or userlevel lol but im sure its user_level

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...