Jump to content
MakeWebGames

[requests] Bot online 24hours


StormRoBoT
 Share

Recommended Posts

Re: [requests] Bot online 24hours

Just add a simple if function to where your userlist checks if a user is online.

You want the if function to check whether the user is an NPC.

if user_level=2

}

"online"

{

else

print "offline"

 

^^^ That statment is NOWHERE near correct but it helps you.

Link to comment
Share on other sites

Re: [requests] Bot online 24hours

 

Just add a simple if function to where your userlist checks if a user is online.

You want the if function to check whether the user is an NPC.

if user_level=2

}

"online"

{

else

print "offline"

 

^^^ That statment is NOWHERE near correct but it helps you.

 

if($ir['user_level'] == "2") { echo "online"; } else { echo "offline"; }
Link to comment
Share on other sites

Re: [requests] Bot online 24hours

you mean you want to create a user say from ya admin pan and make it show the user which i assume will be you signing up again so it shows you have more user online than there is lol why not just make your better by coding or learn to code as all you want to show is its not bots just users you make up so you can make out there real players online bro come on learn to code and not fair on other players also will spiral ya game out of control man i would think

Link to comment
Share on other sites

Re: [requests] Bot online 24hours

 

Sorry to sound stupid but HOW can somethng that never signs in show as onlline ?

Easy...

 

$user = "2"; ///Pick your userid and they will stay online
$sql = sprintf("UPDATE `users` SET `laston` = unix_timestamp() WHERE `userid` = $user");
mysql_query($sql);
Link to comment
Share on other sites

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.

 Share

×
×
  • Create New...