Jump to content
MakeWebGames

Dayo

Administrators
  • Posts

    2,491
  • Joined

  • Last visited

  • Days Won

    196

Everything posted by Dayo

  1. take a look at https://github.com/ChristopherDay/Gangster-Legends-V2/blob/master/modules/installed/crimes/crimes.tpl.php
  2. The easiest way is to do something like <img src=“modules/installed/theft/images/{id}.png” /> Ahh just saw djkanna’s post 😛
  3. Mine varies but the last month or so its been about 8-10 hours
  4. Looks awesome!
  5. @Twisted it you contact @Dave i think he is the one supporting 2.0.6. Thanks Sim and MNG for advertising GL, but sometimes its not a right fit for certain types of games and that's cool, GL is there to provide an alternative not as a replacement 🙂
  6. Dayo

    Game Advertising!!

    It’s hard to tell if it is the owner doing this or a member of the game. @Andrew Washington @UOTS-Owner can you comment on this?
  7. You can find some simple documentation regarding hooks at https://github.com/ChristopherDay/Gangster-Legends-V2/wiki/Hooks
  8. $this->db->insert("qyery", (array) $this->methodData); @sim
  9. I have now released this on GitHub and Make Web Games!
  10. Yeah i need to sit down and document them all there are loads that people don't know of
  11. /* This hook is run before any module is loaded */ new Hook("moduleLoad", function ($loadedModule) { global $page; /* Only make this change if the user is on the admin page */ if ($loadedModule == "admin") { /* Insert new admin menu link */ $page->modules["crimes"]["admin"][] = array( "text" => "test", "method" => "edit" ); } /* Always return the $loadedModule as this function can be used to change the module to load i.e. if ($loadedModule == "jail") { return "prison"; } return $loadedModule; */ return $loadedModule; }); Thius is a way to do it with hooks and bypassing file permission errors
  12. Sorry i don't understand what you mean 😕 if you want to allow anything in methodData you can add this public $allowedMethods = "*";
  13. To make it easier for new members to buy my mods i have made "gangster Legends Premium". This is a collection of 14 paid mods and several free mods pre installed on Gangster Legends 2.2.3. The install process is the same you just have all of the modules pre installed, all you have to do is modify them in the ACP! To buy the mods individually it would cost over $150! so offering this at $100 i think is very reasonable. You can also choose to pay $25 every 90 days to receive free modules going forward* You can find out what is provided here. and a full list of features here. If you have any questions or suggestions please post below or message me. * Not all modules i release will be part of this offer!
  14. Looking good 😄
  15. You are using $array( and not array(
  16. thanks, im looking at it now, ill try get it in 2.2.3
      • 1
      • Like
  17. Dayo

    Properties

    The propertyManagement module is to manage your blackjack table and bullet factories, there are also other paid modules like keno and roulette that can be managed with this module. You can manage the properties by: Setting the max bet/cost Viewing profit Dropping the property Transferring the property to someone else
  18. Have you looked at online IDEs, I swear you can edit code directly on FTP through some of them. This one looks like it’s self hosted https://icecoder.net
  19. As i go i will be adding more and more hooks, i will sit down some time and document all of the hooks and what they do (the ones in the core engine) and provide examples on how they can be used.
  20. The user action hook is located in code (see example here) not in a database! So using the example when a user steals a car i will look for any userAction hook within every {module}/{module}.hooks.php file, i will then run the function defined in these files. If i get time tomorrow/next week i may make a few youtube videos explaining a few concepts on GL like the hooks.
  21. Bug Fixes Default Template -> Login page Errors are now shown Fixed login form display Install directory is removed after install You can now delete modules that are deactivated You can now install themes New Features Gangs are now part of the core game! The popular paid GL mod is now free with some great additions Upgrade Gang You can rename Gangs to crews/families/tribes etc ... from within the ACP. Improved UI on Gang Home Page New navigation menus Points Casinos Email Verification You can adjust "from" email address Added add and subtract functions to User class, these work like the set function Added a better BBCode parser with support for smileys New Profile view If you are an admin and you are on a module that has an admin panel option, these options will be shown in the menu, i.e. if your on the crimes page you can jump to crime list or new crime with 1 click rather then 3/4. New Notification layout Added pagnation Added the ability to delete notifications Added a new class for cronless crons! improved Forum UI Nicer looking topic lists with post count and last post time If you go to ?page=forums this now displays a list of forums. Better BBCode support New Hooks newUserRevive - Run when a user is shot and starts a new account alterModuleTemplate - This allows you to alter any module template and its data from any other module profileLink - This hook allows you to add links to a users profile without having to edit the module i.e. you can add a "mug" link to the profile profileStat - Similar to profileLink but this would allow you to add something like "OC: Ready" userAction - Added more user action hooks Bank Send Withdraw Deposit Black market buy item Bounties Add Remove Crimes Commit Detectives Hite Garage Sell Crush Repair Login Logout Property Drop Transfer
  22. https://github.com/ChristopherDay/Gangster-Legends-V2/commit/0028e8e7ec5ad6f3146a2da96ba5939ec6a855b0 That was the bug with bounties, ill make sure its in 2.2.3
×
×
  • Create New...