Jump to content
MakeWebGames

Recommended Posts

Posted

how would i make a certain player access a certain page e.g like if a player level 100 can by a car but if u are level 99 or under u cant.. or if u are in a different city e.g whos in the cave zone cant by a pet but whos in th medevil zone can...

thanks in advanced

c0nka :mrgreen:

Posted

Re: i wonder if anyone can help ?

for the level

 

if($ir['level']< 99)
{
print "You need to be at least level 99 to access this page.";
$h->endpage();
exit;
Posted

Re: i wonder if anyone can help ?

level 100+ buy a car

if($ir['level'] < 100 )
{
print "You need to be at least level 100 before you can buy a car";
$h->endpage();
exit;
}

 

location to buy pets (change the 2 to the city id of medevil zone):

if($ir['location'] != '2')
{
print "You must be in the medevil zone location to buy a pet";
$h->endpage();
exit;
}
Guest Anonymous
Posted

Re: i wonder if anyone can help ?

Just after

include "globals.php";

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