Jump to content
MakeWebGames

Recommended Posts

Posted

DONT KNOW IF THIS AS DONE BEFORE BUT ALL IT DOES IS INSTEAD OF JUST CLICKING AND GOING TO A NEW LOCATION THIS MAKES YOUR PLAYERS WAIT IN TIME REAL TIME TO TRAVEL TO DIFFO LOCATIONS OK HERE IT GOES POST WHAT YA THINK

Open header.php and find

if($ir['fedjail'])

{

$q=mysql_query("SELECT * FROM fedjail WHERE fed_userid=$userid",$c);

$r=mysql_fetch_array($q);

die("<font color=red size=+1>You have been put in the Deadly WorldFederal Jail for {$r['fed_days']} day(s).

 

Reason: {$r['fed_reason']}</font></body></html>");

}

under add

if($ir['ttime'] > 0)

{

$q=mysql_query("SELECT * FROM users WHERE userid=$userid",$c);

$r=mysql_fetch_array($q);

die("

<center>You are traveling you have {$ir['ttime']} minutes left.Sit back and enjoy the flight.</center>

 

");

}

 

3.Open monorail.php and find

 

$r=mysql_fetch_array($q);

mysql_query("UPDATE users SET money=money-100,location='{$_GET['to']}', WHERE userid=$userid",$c);

$r=mysql_fetch_array($q);

print "Congratulations, you paid $100 and travelled to {$r['cityname']} on the airplane!";

 

replace with

 

$r=mysql_fetch_array($q);

$time=$r['citytime'];

mysql_query("UPDATE users SET money=money-100,location='{$_GET['to']}', ttime=$time WHERE userid=$userid",$c);

print "Congratulations, you paid $100 and travelled to {$r['cityname']} on the airplane!";

 

and the sqls

ALTER TABLE `users` ADD `ttime` INT( 11 ) NOT NULL

ALTER TABLE `cities` ADD `citytime` INT( 11 ) NOT NULL

 

and this to your 1min cron

mysql_query("UPDATE users set ttime=ttime-1 WHERE ttime>0",$c);

 

please deadly world is my game so change to your game name

Guest Sniko`
Posted

Re: Travel Time

My brother (spydre452) did an advanced version of this but it was deleted from the request of an OC i think. he made it so every location had a set time of travelling set by the admins. But ill +1 you, nice contribution

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