Jump to content
MakeWebGames

Sims Tips & Tricks


Sim

Recommended Posts

new Hook("moduleLoad", function ($moduleToLoad) {
  global $user;
  
  if($user)
  {
      if($user->info->US_activeHeros == 0)
      return "hero";
  }

  return $moduleToLoad;
});

So, I do not want a player to access any part of the game without having a hero first, so this is the start for anyone.  I still must add the if statements to not redirect if on pages such as login, register.

 

Almost the same concept as jailed player.

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.

×
×
  • Create New...