Jump to content

ags_cs4

Members
  • Content Count

    42
  • Joined

  • Last visited

  • Days Won

    2

ags_cs4 last won the day on November 24

ags_cs4 had the most liked content!

Community Reputation

13 Good

1 Follower

About ags_cs4

Personal Information

  • Location
    Algeria
  • Interests
    PBBG, gaming, MMO,php...
  • Website
    https://phpkiller.me

Recent Profile Visitors

4,477 profile views
  1. look nice and simple 👍, better than my stupid code 😅
  2. I just found this when i was editing my notifications settings, not sure if its only in phone or no,
  3. Welcome back, i screamed when i recived the email of mwg is back in early this year xD, what im happy about is the old topics are still here even tho some files are lost but thats okay, this time i can make them my self 🙂
  4. Dead topic from 9 years
  5. 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
  6. Version 1.0

    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 ... ps: if you help by buying my mods i will keep posting free stuff

    $24.00

  7. Version 1

    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 for free: download it from the screenshot to help me: buy it for 3$ ps: if you help by buying my mods i will keep posting free stuff

    $3.00

  8. Version 1.6

    3 downloads

    this small mod is a a page to get you 8 random people from your city. - you can't attack your gang members - you can't attack a members jailed in "fedjail" - you can't attack staff members - you can't attack when you don't have more than 25% energy (you can make it 25 if u use 100 or 150 max energy ) - you can't attack a members when you are not in the same location - you can't attack a members who have less than 5 HP ps: you can config most the important variables in the file up top --- HOW TO INSTALL --- add the link of the page: echo "<a href=\"challenge.php\">Challenge</a>";

    Free

  9. same hero too,i like dark sites, but if its light in the night i will not visit the site at all cuz i stay long hours at night so it hurt my eyes
  10. ags_cs4

    [GRPG] Gift Mod

    nice i like the work 🙂 , if i get new ideas for the Mod i will update it in the #Downloads N.B: maybe you forgot this code 🙂 background: url(google.com)
  11. I like it looks clean , im a big fan of space/galaxy MMO , i used to play DarkOrbit from BigPoint. i would say you need to make the UI dark or gray, invest some time in a good look for the game and you are good to go (my stupid designer mind talkin 🙄). but over all good, keep up the good work 🙂
  12. Version 1.0.0

    7 downloads

    this small mod is a Beginners gift or starter pack, it gift some money and donator days to help your players start theire Journey in the mafia world.

    Free

×
×
  • Create New...