Jump to content
MakeWebGames

Zytraw

Members
  • Posts

    90
  • Joined

  • Last visited

    Never

Everything posted by Zytraw

  1. Re: [V2] New Small Accuracy Mod [V2] The $acc is a calculate for the bit below, down abit in the script but nice idea might work.
  2. Re: [V2] New Small Accuracy Mod [V2] Have you included the bit at the top?   $acc= $ir['totalhits'] / ($ir['totalhits']+$ir['totalmisses']) *100
  3. Re: [Mccode v2] Newspaper Mod "in Order" Nice!
  4. Re: marquee with admin function Looks oky good job but i personally wouldn't use it.
  5. Re: Bank Layout V2 girardz amazing, ive been looking for this +1 nice mod nice coder!
  6. Re: [V2] New Small Accuracy Mod [V2] Thanks tobaz, Enjoy the mod everyone from everyones help!! Thanks
  7. Re: [V2] New Small Accuracy Mod [V2]     The easiest thing i can think of doing is: NOTE: not tested, however, to my knowledge, should work ;) Replace the whole accuracy equation below <hr width=20%>"; With <hr width=20%>"; if($ir['totalhits'] < 1) { print "[b]Your Accuracy[/b] $acc [b]<font color='red'>You havn't made or hit anyone in the gangsta population. Please make an attack before we formulate your accuracy.</font>[/b]"; } else { if($ir['totalhits'] > 1){ print "[b]Your Accuracy[/b] $acc [b]<font color='green'>Total Hits:[/b]</font> {$ir['totalhits']} [b]<font color='red'>Total Misses:[/b]</font> {$ir['totalmisses']} "; } } $h->endpage(); ?>
  8. Re: [V2] New Small Accuracy Mod [V2]   Nice idea but it wont, to my knowledge, work out the overall percentage of accuracy, which i would like it to do.
  9. Re: [V2] New Small Accuracy Mod [V2] yes it'll soon be fixed give me a few minutes today or another day as im busy on a few other codes for a few other people.
  10. Re: [mccode v2] Crystal Temple Nice!! Well done great mod +1
  11. Re: [V2] New Small Accuracy Mod [V2]   This mod basically tells the user their overall accuracy, hits and misses. It's a small mod which soon will be added to HOF
  12. Re: [mccode v2] Job Recode Nice and thoughtful +1 for you. Good Job!
  13. Re: [ANY] FREE BANNER Nice however, i'd personally create a small border on the left hand side of the name data typeo.
  14. Re: [V2] New Small Accuracy Mod [V2] So have i got the correct formula? Or.... Thanks :P
  15. Re: [V2] New Small Accuracy Mod [V2] Yeh worked fine for me and thanks POG1.
  16. Hey, thanks for coming to this topic :lol: This mod simply works out your accuracy by taking your total hits and dividing it by your total misses and then it multiplies that answer by 100. A simple maths equation. First inject these queries. ALTER TABLE users ADD totalhits INT(11) default 0; ALTER TABLE users ADD totalmisses INT(11) default 0; Just in case anybody doesn't understand the 'default 0;' it basically puts the user integer as a default number as 0. It helps the game instead of resetting the whole thing or putting it in register. If you don't understand this, pretend i never wrote it :-o Then open up attack.php In line 241, you should find; print "<font color=blue>{$ns}. Using $oabbr $wep {$odata['username']} hit you doing $dam damage ({$youdata['hp']})</font> \n"; If not search for that. Underneath this add $db->query("UPDATE users SET totalhits=totalhits+1 WHERE userid=$userid",$c); Then above this; line 189 add $db->query("UPDATE users SET totalmisses=totalmisses+1 WHERE userid=$userid",$c); Line 189 should be print "<font color=red>{$_GET['nextstep']}. You tried to hit {$odata['username']} but missed ({$odata['hp']})</font> \n"; Finally finished, open up index.php, or the file which takes the users to their 'Home'/'Crib' find include "globals.php"; Underneath it add $acc=($ir['totalhits'])/($ir['totalmisses'])*100; Thats the maths equation :roll: Then above $h->endpage(); Add <hr width=20%> [b]Your Accuracy[/b] $acc [b]<font color='green'>Total Hits:[/b]</font> {$ir['totalhits']} [b]<font color='red'>Total Misses:[/b]</font> {$ir['totalmisses']} ";   That should be it, any problems add my msn; [email protected] Thanks, i will also be adding more mods as i go Have fun and +1 me if this comes to use
  17. Re: Airplanes [V2] Sorry, ill fix any errors as soon as ive done doing coursework. Sorry
  18. Re: Airplanes [V2] I like to put is, Under Educated or Less Advanced In Education than Idiot as it's a patronizing word.
  19. Re: [mc codes lite] User Credit Card Companys Nice one! +1 Great Idea!
  20. Re: Airplanes [V2] Sorry for everyone who is having trouble with it, ill fix it soon if someone hasnt posted in the correct coding, just to let you know who are having an argument with me (not mentioning any names: Killah!) it's a new code from a new coder, just appreciate that i've tried. Thanks in advance if someone is to help me Teceo.
  21. Re: Airplanes [V2] Worked fine for me, sure you installed it right and inject all sql's including the ones from the link?
  22. Re: Airplanes [V2] Be greatful that i gave it away for free, you didnt buy it for $10, nobody did so why bring it up.
  23. Re: Airplanes [V2] Were, was. Did i? No. So why complain? You didn't loose anything and i didn't try to sell it, you asked what i was selling.
  24. Re: Airplanes [V2] Airplanes, Staff can create airplanes and put them into difference locations at different prices.
  25. Post removed due to request of OP!
×
×
  • Create New...