Jump to content
MakeWebGames

Search the Community

Showing results for tags 'mccode-lite'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Community
    • News and Announcements
    • Introductions
    • Feedback and Site Support
    • Collaboration Experiences
  • General Development Central
    • General
    • Game Support
    • Game Projects
    • Services
    • Web Developement
    • Art and Content
  • Game Engines
    • MCCodes
    • Generic RPG
    • Gangster Legends
    • Other Game Engines
  • Technics
    • PHP
    • MySQL, Oracle, Postgress or other DB
    • Web Design
    • Programming Tools, Software and much more
    • Other Programming
    • Linux and Webservers
    • JavaScript
  • Misc
    • General Gaming Discussion
    • Chit Chat
    • Fun & Games
    • Tech News
    • Question of the day
    • Media Entertainment (FKA Tv Shows)

Calendars

  • Community Calendar

Categories

  • MCCodes v2
    • Free
    • Paid
  • GRPG
  • Gangster Legends V2
    • Modules
    • Themes
  • Graphics

Product Groups

  • Game Engines
  • Hosting

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


About Me


Location


Interests


Occupation


Website

Found 5 results

  1. Version 1

    34 downloads

    this back ground i made last year for a game with a bunch of stuff, but thay never paid for my work so here its Need Help?: contact me here or in discord (PHPkiller#5602). Donations?: BTC: 1BxYTrbnunSBG5AmBMyobPkCByWLhAPck4 ETH: 0xD26EE454C3068132dB5ef2E27b86d0C6c138cEc9 DASH: XvUa3A52DywoLgYnTXHTw1goRWyw5T6sRn
    Free
  2. MySQL support in PHP present Failed Help? This is showing in installation
  3. Version 1.0

    11 downloads

    this set of cards for use either blackjack or high/low ... the set contain 3 PSD (front, back, icons type), the set of cards, the fonts used ps: you can add a logo to all cards just scroll down inside the front_card.psd file and make the 2 text layers visible and edit them to your game name abrv (2 letters max), do the same in the back_card.psd file + you can add a sub text for black jack or high/low ... Need Help?: contact me here or in discord (PHPkiller#5602). Donations?: BTC: 1BxYTrbnunSBG5AmBMyobPkCByWLhAPck4 ETH: 0xD26EE454C3068132dB5ef2E27b86d0C6c138cEc9 DASH: XvUa3A52DywoLgYnTXHTw1goRWyw5T6sRn
    Free
  4. today i wanted to change the stupid html mainmenu to somthing good and easy to edit any time so the idea i got was to use multidimensional arrays for fast edit and flexibility. want to learn more? read this topic screenshot: Lets get started in my code i wanted to get flexible links so i can show them when you are in jail or hospital or donators or no mater what condition is with small edits , so in my array i added 2 key one for hospital and one for jail, and the array looks like this array( "icon" => "fas fa-home", "link" => "index.php", "title" => "Home", "class" => "", "jail" => true, "hospital" => true, ), so as you can see we have 6 keys 4 of them are for the link html code and the last 2 are our conditions true mean that the link show, and false mean the link is hidden on that condition so lest keep going the idea was so i can show 3 sections 2 are always shown and 1 for only doantors only so i made an array like this: array( "title" => "Navigation", "donator" => false, "links" => array() ), array( "title" => "Donators Only", "donator" => true, "links" => array() ), array( "title" => "Other", "donator" => false, "links" => array() ) we can see we have 3 keys , one for the name of the section, one for our condition which is donator, the last is the array of our links that we worked on them before now lets go to the loop to show our sections foreach ($navigations as $navigation){ if ($ir['donatordays']<1 and $navigation['donator'] == true){ }else{ echo '<br><h3>'.$navigation['title'].'</h3><ul>'; foreach ($navigation['links'] as $link){ if ($ir['jail'] > time() and $link['jail'] == false){} elseif ($ir['hospital'] > time() and $link['hospital'] == false){} else{ echo '<li><a class="'.$link['class'].'" href="'.$link['link'].'"><i class="'.$link['icon'].'"></i>'.$link['title'].'</a></li>'; } } echo '</ul>'; } } so we stored our multidimensional array in a variable named $navigations and we lopped it using foreach we added a condition for 'donatordays' if its true it wont show that section. inside the first foreach we added another foreach to loop our list of links using our 'links' key $navigation['links'] from the first foreach. as you can see we have 2 condition 1 for jail which is big than the current timestamp(my game use timestamp not minutes crons) while the value from the array key "jail" = false, the same thing for hospital. while we have nothing printed inside that if/else of both condition of jail/hospital so that it wont show any link when the condition is true. a full code if you get lost in the way ? $navigations = array( array( "title" => "Navigation", "donator" => false, "links" => array( array( "icon" => "fas fa-home", "link" => "index.php", "title" => "Home", "class" => "", "jail" => true, "hospital" => true, ), array( "icon" => "fas fa-home", "link" => "index.php", "title" => "hidden when in jail", "class" => "", "jail" => false, "hospital" => true, ), array( "icon" => "fas fa-home", "link" => "index.php", "title" => "hidden when in hospital", "class" => "", "jail" => true, "hospital" => false, ), array( "icon" => "fas fa-home", "link" => "index.php", "title" => "hidden for both", "class" => "", "jail" => false, "hospital" => false, ), ) ), array( "title" => "Donators Only", "donator" => true, "links" => array( array( "icon" => "fas fa-user-friends", "link" => "index.php", "title" => "Friends List", "class" => "", "jail" => true, "hospital" => true, ), ) ), array( "title" => "Other", "donator" => false, "links" => array( array( "icon" => "fas fa-power-off", "link" => "logout.php", "title" => "Logout", "class" => "logout", "jail" => true, "hospital" => true, ), ) ) ); foreach ($navigations as $navigation){ if ($ir['donatordays']<1 and $navigation['donator'] == true){ }else{ echo '<br><h3>'.$navigation['title'].'</h3><ul>'; foreach ($navigation['links'] as $link){ if ($ir['jail'] > time() and $link['jail'] == false){} elseif ($ir['hospital'] > time() and $link['hospital'] == false){} else{ echo '<li><a class="'.$link['class'].'" href="'.$link['link'].'"><i class="'.$link['icon'].'"></i>'.$link['title'].'</a></li>'; } } echo '</ul>'; } } in the end this way will make it east to add condition to each link or section with out having to make the html code more confusing by adding more if/else statments PS: this my first time writing an article in english so bear with me
  5. Been looking for a couple days now hard to find exactly what I'm looking for. Is there a hospital mod for allowing people to either heal themselves or others out of the hospital for cash or crystals? Thanks for helping in advance. And sorry if I posted this in the wrong spot.
×
×
  • Create New...