Solid Snake Posted March 4, 2007 Posted March 4, 2007 could anyone tell me how to make cities and items donator only Quote
-Genocide- Posted March 4, 2007 Posted March 4, 2007 Re: help donation ive never thought about making a city donator only, but i guess this is how you would do it....if im wrong, remember, this is just a guess if ($r['cityid'] ==2 && $ir['donatordays'] < 1) { print "You cannot travel here, this city is for donators only. [url='index.php']> Back[/url]"; $h->endpage(); exit; } once again so im clear on this....im not sure about this code, and i have just woke up, so expect the worst lol Quote
Jake Posted March 4, 2007 Posted March 4, 2007 Re: help donation Yes i believe this is correct. You could put something like this into monorail: if($_GET['to'] == **CITY ID FOR DONATORS ONLY GOES HERE** AND $ir['donatordays'] ==0) { die("Donator Only City"); } Quote
Arson Posted March 4, 2007 Posted March 4, 2007 Re: help donation Yes i believe this is correct. You could put something like this into monorail: if($_GET['to'] == **CITY ID FOR DONATORS ONLY GOES HERE** AND $ir['donatordays'] ==0) { die("Donator Only City"); } Without the asterisks of corse. =P Quote
Solid Snake Posted March 5, 2007 Author Posted March 5, 2007 Re: help donation but dont you have to put donator.php in there somewere Quote
-Genocide- Posted March 6, 2007 Posted March 6, 2007 Re: help donation but dont you have to put donator.php in there somewere No you dont, but if you wanted to, you could do it like this.... if($_GET['to'] == **CITY ID FOR DONATORS ONLY GOES HERE** AND $ir['donatordays'] ==0) { die("Donator Only City You can become a donator and access this city by clicking [url='donator.php']Here[/url] > [url='monorail.php']Back[/url]"); } Quote
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.