Jump to content
MakeWebGames

Recommended Posts

Posted

can someone help me im new to owning my own game , but it seems to me something is not right no matter what my stats are i always get beat up. as the owner i dont want players beating on me all day while im trying to do other things. would someone plz help me out thanks

Posted

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.

Posted

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

Posted

Re: attacking help

That may work but if his game is like mine, my mods are able to play so it would be unfair for them to not be able to be attacked. The code i posted only covers the user id 1.

Posted

Re: attacking help

thanks again i just wanted to make me safe cause it seems no matter what i edit my stats to i get owned lol, im sitting at 112bill in all stats and players at 3bill stats are pounding me

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.

×
×
  • Create New...