DeaTH_RideR Posted October 24, 2008 Share Posted October 24, 2008 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 Quote Link to comment Share on other sites More sharing options...
Solid Snake Posted October 24, 2008 Share Posted October 24, 2008 Re: attacking help the best option in your case is to put an attack stop on your id in your case would be ID1 Quote Link to comment Share on other sites More sharing options...
Colonel Posted October 24, 2008 Share Posted October 24, 2008 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. Quote Link to comment Share on other sites More sharing options...
DeaTH_RideR Posted October 24, 2008 Author Share Posted October 24, 2008 Re: attacking help thank you for your fast and helpful reply Quote Link to comment Share on other sites More sharing options...
Colonel Posted October 24, 2008 Share Posted October 24, 2008 Re: attacking help Your very welcome. :wink: Quote Link to comment Share on other sites More sharing options...
Solid Snake Posted October 24, 2008 Share Posted October 24, 2008 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 Quote Link to comment Share on other sites More sharing options...
Colonel Posted October 24, 2008 Share Posted October 24, 2008 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. Quote Link to comment Share on other sites More sharing options...
DeaTH_RideR Posted October 24, 2008 Author Share Posted October 24, 2008 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.