Jump to content
MakeWebGames

Dayo

Administrators
  • Posts

    2,491
  • Joined

  • Last visited

  • Days Won

    196

Everything posted by Dayo

  1. Dayo

    Mobster Life

    After looking to sell this for a while with no luck. I'm looking for someone to run https://mobsterlife.net. Income would be split 50/50. The game is pretty much setup and I'm open to make changes to the UI/gameplay. If you have any questions feel free to message me here or on discord.
  2. Dayo

    Hello All

    Welcome back again
  3. i did find this script a while back but it didn't have support for brackets, i keep meaning to revisit it and add the support into it. <?php function evalAsMath($str) { $error = false; $div_mul = false; $add_sub = false; $result = 0; $str = preg_replace('/[^\d\.\+\-\*\/]/i','',$str); $str = rtrim(trim($str, '/*+'),'-'); if ((strpos($str, '/') !== false || strpos($str, '*') !== false)) { $div_mul = true; $operators = array('*','/'); while(!$error && $operators) { $operator = array_pop($operators); while($operator && strpos($str, $operator) !== false) { if ($error) { break; } $regex = '/([\d\.]+)\\'.$operator.'(\-?[\d\.]+)/'; preg_match($regex, $str, $matches); if (isset($matches[1]) && isset($matches[2])) { if ($operator=='+') $result = (float)$matches[1] + (float)$matches[2]; if ($operator=='-') $result = (float)$matches[1] - (float)$matches[2]; if ($operator=='*') $result = (float)$matches[1] * (float)$matches[2]; if ($operator=='/') { if ((float)$matches[2]) { $result = (float)$matches[1] / (float)$matches[2]; } else { $error = true; } } $str = preg_replace($regex, $result, $str, 1); $str = str_replace(array('++','--','-+','+-'), array('+','+','-','-'), $str); } else { $error = true; } } } } if (!$error && (strpos($str, '+') !== false || strpos($str, '-') !== false)) { $add_sub = true; preg_match_all('/([\d\.]+|[\+\-])/', $str, $matches); if (isset($matches[0])) { $result = 0; $operator = '+'; $tokens = $matches[0]; $count = count($tokens); for ($i=0; $i < $count; $i++) { if ($tokens[$i] == '+' || $tokens[$i] == '-') { $operator = $tokens[$i]; } else { $result = ($operator == '+') ? ($result + (float)$tokens[$i]) : ($result - (float)$tokens[$i]); } } } } if (!$error && !$div_mul && !$add_sub) { $result = (float)$str; } return $error ? 0 : $result; } echo evalAsMath("2+2*8"); // = 18
  4. What issues are you having with validation
  5. I have released version 1.0.2 of the glDirectory Gangster Legends mod that can be found here This makes the ACP labels more clear and lets you set the verification code from within the ACP
  6. register an account here https://directory.glscript.net/?page=gameList and then go to List Game. Once there follow the instructions
  7. Any game that signs up to the GL Game directory over the next two weeks will receive $25 worth of mods of their choice from the MWG market place! Just sign your game up here https://directory.glscript.net/ and PM we with the first 6 digits of your request key and you will receive $25 off any mods. Terms and Conditions Offer valid only for mods that I have made, you can find a list of these here If for example you wanted the poker script that is $40 you can use the $25 as part payment. Themes are included with this offer This offer can not be used with any other offer
  8. I have now updated the listing website so you can upload a feature image and 3 screenshots. You can list your game here: https://directory.glscript.net/ If you have any issues linking the game and the directory PM me or post below
  9. Over the past week I have been setting up the Gangster Legends game directory this is an early access BETA you can check out the directory at https://glscript.net/directory/ there are instructions on how to sign up there, i have also added a GL module so that you can easily implement voting rewards to your game!
  10. It would be great to know where $action is missing ...
  11. Yeah GL Premium moved away from shipping with the core to just shipping the premium modules, it makes it a lot easier to support going forward, glad you like it 🙂
  12. how weird, what version are you downloading, you want version 1.0.0, i de-coupled the GL/GLPremium version numbers recently
  13. You can edit in the database or phpMyAdmin but there should be an ACP option, in the next patch I’ll add acp controls for the gangs
  14. Im actually working on something like that RN for a game im developing lol
  15. last release maybe, you should be able to go into the market place and download it there
  16. I have made a easy to view catalog of all of my modules and what is/isn't included with GL Premium https://glscript.net/official-modules-themes/
  17. For any purchases of GL Premium from August 1st for the remaining of the year I'm offering 12 months free hosting, up to 50 active members active within a 10 minute period. This is to reduce the cost of developing your game and help you get your game up and running. You can choose between a SUBDOMAIN.glscript.net domain or you can use your existing domain.
  18. Dayo

    PvP

    The problem with PvP is it's very hard to balance, if you have someone who is hyper active vs someone who only gets to play a hour or two a day the hyper active one will always have the advantage. The less active one may spend a few hours stealing a car for a OC for the hyper active one to go and steal it 5 minutes later to add to the 20 he already has. A good game has a balance of PvP as well as PvE solely focusing on one or the other is a recipe for disaster. You also have to think to be fully PvP you need a large/active user base something that is hard to achieve when starting out over time its good to implement PvP features but they need to grow as your game does. Just because you dont like the game play does not mean they are doing it for the money. And IMO making a game that the user base enjoys is what you should be trying to do, if you are closed off to ideas and just do what you want your game will die.
  19. Yes i keep meaning to move the jail/hospital away from their current setup to use this hook, its really powerful
  20. find and remove debug(); from the code, ill push a fix in a bit
  21. I personally hardly use MWG messages, for talking about projects and work. it is always 1000x quicker to talk over IM, I personally prefer discord but I also have Skype, WhatsApp, Facebook messenger, IRC etc … I don’t know why you don’t use it especially if your still working from a mobile phone.
  22. Dayo

    Widgets

    I am looking into that.
  23. Dayo

    Widgets

    I was thinking more along the lines of a hook like I do with the admin panel widgets (I need to expand on these)
  24. Dayo

    Widgets

    I’ll look at adding this to the core, I think it’s something that a lot of people will like
  25. This may be my bad going from gl 2.3 to gl 2.4 i changed the add function from add($value, $stat) to add($stat, $value) to keep it inline with the set function. if you swap the parameters around it should work
×
×
  • Create New...