Jump to content
MakeWebGames

Recommended Posts

Posted

It seems my users have found how to just paste

attack.php?nextstep=1&ID=1&wepid=98 

 

And attack from anywhere. How can I add a location check to the attack.php so they must be in the same location otherwise its die and (you must be in the same location to attack someone text)

Posted

Haven't a clue?

um... maybe

 

if($ir['location']  != OTHER LOCATION VAR)
{
// ahhh were not in same area, error out
}
else
{
// all is good
}
Posted

This should do it for you

 

if ($youdata['location'] != $odata['location'])
{
print "You can only attack someone in the same location!<br />
<a href='index.php'>Back</a>";
$db->query("UPDATE users SET attacking=0 WHERE userid=$userid");
$h->endpage();
Posted
I'm no good at this coding stuff..... :( I haven't a clue to code what i want here. I thought it would have been default in the attack.php...

Seriously why are you even attempting to setup up a game. Oh your not your getting everyone else to do the work you need for you.

Unless you have a budget to pay coders with then I cannot see how your game is going to be any different from any other stock mccodes game.

Posted (edited)

Harsh... Thanks for those that help. Its a game I took over. I'm only use to html and css. I dont and haven't coded php at all. I'm learning. How is the game different from the stock setup? There different design, css, graphics etc. Not all of us are masters of php. And we have to start from some where.

Not I'm not trying to get stuff for free. I'm just sick of getting peoples paid help that later just want my ftp/cpanel accounts etc. The forum here seems a safer option. Apart from the hostility from some users. Thanks to those that help.

Edited by Hendrickson
Posted
If someone asks for your FTP/Cpanel tell them no? They can make the files that are necessary and send the altered files to you

 

That's exactly what I do. But as of late 90% of people pm me for jobs are recent accounts and say they need ftp access or mysql. Which = I can't get anything done. Or try and send me code that includes stuff like user table "DROP"

Posted

Always read through everything people send, and just say no then, and find someone more reliable. There's plenty of people here who are recognised for making quality mods. Just spend some time looking around and it'll be worth it.l

Posted

Danny696 made a list of trusted coders. I suggest you find that thread and ask one of them. Most if not all of them come with good referrals, will code what you want and not ask you for your cpanel access.

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...