Jump to content
MakeWebGames

ags_cs4

Members
  • Posts

    545
  • Joined

  • Last visited

  • Days Won

    47

Everything posted by ags_cs4

  1. ❤️ allways doing my best i think ?
  2. i like the engine i used it once to make a game but later i stoped mid way but i made a lot of mods , here some screenshots of what i made click the spoiler to see the images:
  3. look nice and simple ?, better than my stupid code ?
  4. test account: user: demo pass: demo
  5. Kk good luck ?
  6. I just found this when i was editing my notifications settings, not sure if its only in phone or no,
  7. 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 ?
  8. Dead topic from 9 years
  9. 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
  10. 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
  11. 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)
  12. 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 ?
  13. you made it sound so cool ?
  14. i like the idea of striping the modules, you will be able to use what you actualy need this will make the engine fast AF, at the same time you will be able to use it as a CMS jsut like u saif if u need to make a private forums then thats just as easy as install it.
  15. i found an alternatif thats good https://jpgraph.net my PHP code <?php require_once ('jpgraph/jpgraph.php'); require_once ('jpgraph/jpgraph_line.php'); include "../mysql.php"; global $db,$config,$ir; $_GET['ID'] = abs(intval($_GET['ID'])); $q = $db->query("SELECT itmname FROM items WHERE itmid='{$_GET['ID']}' LIMIT 1"); $id = $db->fetch_row($q); $test = $db->query("SELECT price FROM itmmarketsales WHERE itmID='{$_GET['ID']}' ORDER BY time Desc LIMIT 10"); $i=0; While ($tester=$db->fetch_row($test)) { $pr[$i] = $tester['price']; $i=$i+1; } // $datay1 = Array($pr[0],$pr[1],$pr[2],$pr[3],$pr[4],$pr[5],$pr[6],$pr[7],$pr[8],$pr[9]); $datay1 = Array($pr[9],$pr[8],$pr[7],$pr[6],$pr[5],$pr[4],$pr[3],$pr[2],$pr[1],$pr[0]); // Setup the graph $graph = new Graph(200,100); $graph->SetScale("textlin"); $graph->SetBackgroundImage("../assets/img/graph_bg.png",BGIMG_FILLFRAME); $theme_class=new UniversalTheme; $graph->SetTheme($theme_class); $graph->img->SetAntiAliasing(); $graph->title->Set($id['itmname']); $graph->title->SetColor('#CCC'); $graph->SetBox(false); // $graph->SetMargin(60,20,25,50); $graph->SetMargin(10,10,15,0); $graph->img->SetAntiAliasing(); $graph->yaxis->HideZeroLabel(); $graph->yaxis->HideLine(false); // $graph->yaxis->HideTicks(false,false); $graph->xgrid->Show(); $graph->xgrid->SetLineStyle("solid"); // $graph->xaxis->SetTickLabels(array('A','B','C','D')); $graph->xaxis->SetTextTickInterval(1,10); $graph->xgrid->SetColor('#E3E3E3'); // Create the first line $p1 = new LinePlot($datay1); $graph->Add($p1); $p1->SetColor("#444"); // $p1->SetLegend('Price'); // $graph->legend->SetColor('#333'); // $graph->legend->SetFrameWeight(0); // Output line $graph->Stroke(); ?> example;
  16. nice ? i will implement this in my engine ❤️
  17. i once had a thous mods but i dont know where, i wanted to release them for free but its bad for the ppl who made them
  18. i made a clone back in the day but never known they were open surce
  19. make them free then download them and re-Uplad them None buy any thing there any more and you know that im sure cuz the engine is dead since 2012
  20. site is oId no one care about it, so yeah?
  21. did u see who bought frm u???
  22. whats ur user name there.??
  23. Nice work, but make sure to get a new design for the game make it responsive and you will never regret it ?
  24. hey @Samurai Legend maybe u dont remember me but we talked on some occasions back in the days its great to see the elite ppl from old days ? , i would like to join but i dont have much time but i can help in any thing just hook me up and i will see what i can do ?
×
×
  • Create New...