Nicholas
Members-
Posts
467 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by Nicholas
-
that wont work look that the query... mysql_query("UPDATE `gangs` SET `gangUPDATE` = 1, `gangRESPECT` - 150 ' WHERE `userid` = {gangdata['gangPRESIDENT']}"); it doesnt select their gang and if it did, it reset their gang respect to -150 instead of removing 150. its meant to be mysql_query("UPDATE `gangs` SET `gangUPDATE` = `gangUPDADE` + 1, `gangRESPECT` = `gangRESPECT` - 150 ' WHERE `gangID` = {$ir['gang']}"); unless you want it so you can only upgrade once then you have to add this. to like under globals.php bit if(gangdata['gangUPDATE'] == 1) { echo 'You gang is already upgraded. You cant upgrade it anymore. [url="yourgang.php"]Go Back[/url]'; $h->endpage(); exit(); } also what about if the gang has 151 respect and upgrades they will be stuck with 1 respect and if they are in a war and 1 member gets attacks thats bi bi to gang think about it, do it with like at least 25 or more of the respect required to upgrade so if ($gangdata['gangRESPECT'] >= 175) { then there gang wouldnt get destroyed so easierly
-
referrals one you cant really do unless you add alter table users add referrals int(11) not null default 0; and in register add this query $db->query("UPDATE users SET referrals=referrals+1 WHERE userid={$_POST['ref']}"); under $db->query("INSERT INTO referals VALUES('', {$_POST['ref']}, $i, unix_timestamp(),'{$r['lastip']}','$IP')"); and then edit all the users that have referrals in phpmyadmin to the number it shows on viewuser.php and replace Referals: "; $rr=$db->query("SELECT * FROM referals WHERE refREFER={$r['userid']}"); print $db->num_rows($rr); print " with Referrals: ".number_format($r['referrals'])."
-
it is the merit system your talking about but its techically same as the honor system honor system is click link and get reward (used on http://criminals-nightmare.co.uk/) merit system is a automatic credit with insertation querys on like index.php (used on http://criminal-madness.co.uk/) merit system can be brought here, http://www.cronwerks.com/forum/cronwerks-mccode-mccodes-mods/merits-($5)/ merit system on criminal madness tho is a highly revamped verison its nothing like Cronus's now. coding and sql is different. ive added a system where you can exchange them for upgrades but only max of 10 times. here is an example
-
its a nice mod man thanks! (not tried/used it yet) but... anyways... its not a very secure script... as any staff member could make themselves admin by just changing (user_level to 2) on that and click "edit user" it doesnt have anything like if($ir['user_level'] != 2) { echo 'Your not allowed in here go away'; } or whatever... or am i missing something on the script?
-
$_POST['number'] = abs((int) $_POST['number']); that wont secure the $_POST valiable by just putting some lines on top under include "globals.php"; that doesnt really mean its fully secure. as if you just have 1 line to secure the whole script, someone will get in some way and will beable to edit the users table quite easierly with SQL INJECTION. its best to secure all valiables. thats what ive been told. even if its not true, you never know what the future might bring out where you will definatly need to secure everything and not just use 1 small line or a so called function in globals.php or header.php (the funtions in globals, global_func and header dont work, dont even try to use them)
-
ok, not tested just writing it up here... find... <div style="background: black;border:1px solid gray; width:275px; margin-bottom: 1em; padding: 10px;color: black"> <font color="gold">Benifits of donating</font><hr /> <font color="white">Red Name Friend / Enemy List More Energy Every Five Minutes PLUS MORE!</font> </div> <center><table width=100% cellspacing=1 class=table border=1></center> <tr> <th>Pack</th> <th>Money</th> <th>Crystals</th> <th>IQ</th> <th>Donator Days</th> <th>Item</th> <th>Donate</th> </tr><tr> and replace it with <center><table width=100% cellspacing=1 class=table border=1></center> <tr> <th align=center colspan=7> <font color="gold">Benifits of donating</font><hr /> <font color="white">Red Name Friend / Enemy List More Energy Every Five Minutes PLUS MORE!</font></th></tr><tr> <th>Pack</th> <th>Money</th> <th>Crystals</th> <th>IQ</th> <th>Donator Days</th> <th>Item</th> <th>Donate</th> </tr><tr>
-
mccode-v2 Help Tutorial (betterish layout)
Nicholas replied to Nicholas's topic in Free Modifications
really? never seen/used a raven script. -
here you go, tested and looks fine. hope you like it (its just a basic table) <?php include "globals.php"; print <<<EOF <h3>Donations</h3> <form action='willpotion.php' method='post'> <input type='submit' class='submit' value='Buy Will Potions'> </form> <div style="background: black;border:1px solid gray; width:275px; margin-bottom: 1em; padding: 10px;color: black"> <font color="gold">Benifits of donating</font><hr /> <font color="white">Red Name Friend / Enemy List More Energy Every Five Minutes PLUS MORE!</font> </div> <center><table width=100% cellspacing=1 class=table border=1></center> <tr> <th>Pack</th> <th>Money</th> <th>Crystals</th> <th>IQ</th> <th>Donator Days</th> <th>Item</th> <th>Donate</th> </tr><tr> <td align=center>1st Offer: ($3.00 Pack)</td> <td align=center>$5,000</td> <td align=center>50</td> <td align=center>50</td> <td align=center>30</td> <td align=center>None</td><td align=center> <form action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type=hidden name=cmd value=_xclick> <input type="hidden" name="business" value="[email protected]"> <input type="hidden" name="item_name" value="{$domain}|DP|1|{$userid}"> <input type="hidden" name="amount" value="3.00"> <input type="hidden" name="no_shipping" value="1"> <input type="hidden" name="return" value="http://{$domain}/donatordone.php?action=done&type=standard"> <input type="hidden" name="cancel_return" value="http://{$domain}/donatordone.php?action=cancel"> <input type="hidden" name="notify_url" value="http://{$domain}/ipn_donator.php"> <input type="hidden" name="cn" value="Your Player ID"> <input type="hidden" name="currency_code" value="USD"> <input type="hidden" name="tax" value="0"> <input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but21.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!"> </form> </td><tr> <td align=center>2nd Offer: ($3.00 pack)</td> <td align=center>0</td> <td align=center>100</td> <td align=center>0</td> <td align=center>30</td> <td align=center>None</td><td align=center> <form action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_xclick"> <input type="hidden" name="business" value="[email protected]"> <input type="hidden" name="item_name" value="{$domain}|DP|2|{$userid}"> <input type="hidden" name="amount" value="3.00"> <input type="hidden" name="no_shipping" value="1"> <input type="hidden" name="return" value="http://{$domain}/donatordone.php?action=done&type=crystals"> <input type="hidden" name="cancel_return" value="http://{$domain}/donatordone.php?action=cancel"> <input type="hidden" name="notify_url" value="http://{$domain}/ipn_donator.php"> <input type="hidden" name="cn" value="Your Player ID"> <input type="hidden" name="currency_code" value="USD"> <input type="hidden" name="tax" value="0"> <input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but21.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!"> </form> </td><tr> <td align=center>3rd Offer: ($3.00 pack)</td> <td align=center>0</td> <td align=center>0</td> <td align=center>120</td> <td align=center>30</td> <td align=center>None</td><td align=center> <form action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_xclick"> <input type="hidden" name="business" value="[email protected]"> <input type="hidden" name="item_name" value="{$domain}|DP|3|{$userid}"> <input type="hidden" name="amount" value="3.00"> <input type="hidden" name="no_shipping" value="1"> <input type="hidden" name="return" value="http://{$domain}/donatordone.php?action=done&type=iq"> <input type="hidden" name="cancel_return" value="http://{$domain}/donatordone.php?action=cancel"> <input type="hidden" name="notify_url" value="http://{$domain}/ipn_donator.php"> <input type="hidden" name="cn" value="Your Player ID"> <input type="hidden" name="currency_code" value="USD"> <input type="hidden" name="tax" value="0"> <input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but21.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!"> </form> </td><tr> <td align=center>4th Offer ($5.00 pack):</td> <td align=center>\$15,000</td> <td align=center>75</td> <td align=center>80</td> <td align=center>55</td> <td align=center>None</td><td align=center> <form action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_xclick"> <input type="hidden" name="business" value="[email protected]"> <input type="hidden" name="item_name" value="{$domain}|DP|4|{$userid}"> <input type="hidden" name="amount" value="5.00"> <input type="hidden" name="no_shipping" value="1"> <input type="hidden" name="return" value="http://{$domain}/donatordone.php?action=done&type=fivedollars"> <input type="hidden" name="cancel_return" value="http://{$domain}/donatordone.php?action=cancel"> <input type="hidden" name="notify_url" value="http://{$domain}/ipn_donator.php"> <input type="hidden" name="cn" value="Your Player ID"> <input type="hidden" name="currency_code" value="USD"> <input type="hidden" name="tax" value="0"> <input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but21.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!"> </form> </td><tr> <td align=center>5th Offer ($10.00 pack):</td> <td align=center>$35,000</td> <td align=center>160</td> <td align=center>180</td> <td align=center>115</td> <td align=center>Rifle ($25,000)</td><td align=center> <form action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_xclick"> <input type="hidden" name="business" value="[email protected]"> <input type="hidden" name="item_name" value="{$domain}|DP|5|{$userid}"> <input type="hidden" name="amount" value="10.00"> <input type="hidden" name="no_shipping" value="1"> <input type="hidden" name="return" value="http://{$domain}/donatordone.php?action=done&type=tendollars"> <input type="hidden" name="cancel_return" value="http://{$domain}/donatordone.php?action=cancel"> <input type="hidden" name="notify_url" value="http://{$domain}/ipn_donator.php"> <input type="hidden" name="cn" value="Your Player ID"> <input type="hidden" name="currency_code" value="USD"> <input type="hidden" name="tax" value="0"> <input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but21.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!"> </form> </td></table> EOF; $h->endpage(); ?> if you want me to join <div style="background: black;border:1px solid gray; width:275px; margin-bottom: 1em; padding: 10px;color: black"> <font color="gold">Benifits of donating</font><hr /> <font color="white">Red Name Friend / Enemy List More Energy Every Five Minutes PLUS MORE!</font> </div> onto this <center><table width=100% cellspacing=1 class=table border=1></center> <tr> <th>Pack</th> <th>Money</th> <th>Crystals</th> <th>IQ</th> <th>Donator Days</th> <th>Item</th> <th>Donate</th> </tr><tr> so its together in 1 table instead of a div black box, tell me and ill see what i can do.
-
i remember this usersonline from somewhere... but cant remember where i saw it...
-
how i learnt how to secure. if i didnt hire anyone to secure my game, i wouldnt really know anything about security.
-
ok i done $sort = (isset($_GET['sort']) && ctype_alpha($_GET['sort'])) ? strip_tags(mysql_real_escape_string($_GET['sort'])) : 'ASC'; and it works now thanks. but is there any chance you could help me with the Members bit? or do you think i have to add gangMEMBERS into gangs section and edit it to show the number of gang members in the gang to do it with the ASC and DESC stuff? if thats understandable? as i tired <th class=h align=center>[url='?orderby=$cnt&sort=$sort']Members[/url]</th> but it didnt work the link i got was ?orderby=Resource id #12&sort= ASC some reason
-
ok everyone, im creating a newish gang central page kinda like some userlists but im experiencing some problems it works in ASC but it dont in DESC and i cant figure out why... can someone help please? also if you can... could you update it little more so it works with the Members section? as i cant figire it out... it doesnt work correctly. here is the code (gangcentral.php) <?php include_once(DIRNAME(__FILE__) .'/globals.php'); $sort = (isset($_GET['sort']) && is_numeric($_GET['sort'])) ? abs(@intval($_GET['sort'])) : 'ASC'; $orderby = (isset($_GET['orderby']) && ctype_alpha($_GET['orderby'])) ? strip_tags(mysql_real_escape_string($_GET['orderby'])) : 'gangID'; echo "<h3>Gangs</h3>"; echo " [url='?by=".$orderby."&sort=ASC']Ascending[/url]| [url='?by=".$orderby."&sort=DESC']Descending[/url]"; $gang = $db->query(sprintf("SELECT g.*,u.* FROM gangs g LEFT JOIN users u ON g.gangPRESIDENT=u.userid ORDER BY %s %s LIMIT 1000", $orderby, $sort)); $cnt= $db->query(sprintf("SELECT g.*,u.* FROM gangs g LEFT JOIN users u ON g.gangID=u.username ORDER BY %s %s LIMIT 1000", $orderby, $sort)); $sort = "".$sort; echo "<table cellspacing=0 border=1 cellpadding=3 class=table width=95%> <tr> <th class=h align=center>[url='?orderby=gangID&sort=$sort']Gang ID[/url]</th> <th class=h align=center>[url='?orderby=gangNAME&sort=$sort']Gang Name[/url]</th> <th class=h align=center>Members</th> <th class=h align=center>[url='?orderby=username&sort=$sort']Leader[/url]</th> <th class=h align=center>[url='?orderby=gangRESPECT&sort=$sort']Gang Respect[/url]</th> </tr>"; while($gangdata = $db->fetch_row($gang)) { echo "<tr> <td align=center>[{$gangdata['gangID']}]</td> <td align=center>[url='gangs.php?action=view&ID=".abs(intval($gangdata[']{$gangdata['gangNAME']}[/url]<td align=center>"; $cnt=mysql_query("SELECT username FROM users WHERE gang=".abs(intval($gangdata['gangID']))."",$c); print mysql_num_rows($cnt)."</td> <td align=center><a href='viewuser.php?u=".abs(intval($gangdata['userid']))."'>".htmlentities($gangdata['username'])."</td> <td align=center>".number_format($gangdata['gangRESPECT'])."</td> </tr>"; } echo "</table>"; $h->endpage(); ?>
-
got it and works perfectly. took long time to get it to work tho lol.
-
interesting so if i change those lines in header.php into this $file_name = basename($_SERVER['SCRIPT_FILENAME']); $grab_caution_files = $db->query("SELECT `page` FROM `notification_alert` WHERE `page` = '$file_name'"); $grab_cation_files = array( 'explore.php', 'attack.php', 'gym.php', 'criminal.php', 'streets.php' ); if ( $ir['jail'] AND $ir['hospital'] ) { $caution_type = 'jailANDhospital'; } elseif ( $ir['jail'] OR $ir['hospital'] ) { $caution_type = 'jailORhospital'; } if ( !empty($caution_type) AND $db->num_rows($grab_caution_files) != 0 ) { # change above "$db->num_rows($grab_caution_files) != 0" to "count($grab_caution_files)" if ( $caution_type == 'jailORhospital' ) { $check_caution_var = ( $ir['jail'] ) ? 'jail' : 'hospital' ; $caution_var_mins = ( $ir['$check_caution_var > 1 ) ? 's' : '' ; $caution_type_check = ( $ir['jail'] ) ? 'prison' : 'the medical centre' ; echo ' You are in '.$caution_type_check.' for '.$ir['$check_caution_var.' minute'.$caution_var_mins.'. > Go [url="index.php"]home[/url]. '; $h->endpage(); die; } elseif ( $caution_type == 'jailANDhospital' ) { $jail_mins = ( $ir['jail'] > 1 ) ? 's' : '' ; $hospital_mins = ( $ir['hospital'] > 1 ) ? 's' : '' ; echo ' You are in prison for '.$ir['jail'].' minute'.$jail_mins.' and the medical centre for '.$ir['hospital'].' minute'.$hospital_mins.'. > Go [url="index.php"]home[/url]. '; $h->endpage(); die; } } # Notification Function (End) would that save me time adding some lines into every file and stop them from using it with just this one? as ive done $grab_cation_files = array( 'explore.php', 'attack.php', 'gym.php', 'criminal.php', 'streets.php' ); would that stop everyone going onto those pages if they are in hospital/jail or does this file only tell you what page your viewing when in hospital/jail?
-
Donator days editing through Staff panel.
Nicholas replied to Monkey644's topic in Free Modifications
print and echo has no speed different, what ive heard is that apperently echo can be used with more with functions and its more of a PHP 6 thing. but also i think what you have done Monkey644 will work but it help if it wasnt all on 1 line so its easier to see/copy. -
thanks but its not quite what im after. as its not got anything to do with css. as its the same layout but with a different Header and Globals file, so what ive basicly changed it into is a normal tool bar into a dropdown tool bar but i want to so the players can swap between the 2 header/globals file. if thats understandable... (pictures shown below) normal toolbar here (shortcut links) new toolbar here (dropdown) this isnt done with another CSS i made another Header.php and called it Header1.php Globals.php and called it Globals1.php if thats understandable. lol.
-
hi everyone im looking to buy a layout swapper which can be toggled in the perferences... so basicly if i got go preferences i can click on Change Layout then have a box saying "Change To New Layout" or something like that. if anyone knows how to create this or already has it, please contact me here or message with a price. thanks, Nicholas.
-
isnt this the mod your talking about? Mission Mod
-
lol that made me laugh... but very true... but the pictures be WAY more advanced lol.
-
ive asked for this mod, weapon/armour condition mod where it starts at 100% and drops down to 0%, the lower the % the weaker to weapon/armour :) hope someone still has it, so you can revamp it!!!
-
everyones making those type of login background image things. but looks interesting... ill sign up and have a look soon or later :)
-
script help? i think ive done it completely wrong lol.
Nicholas replied to Nicholas's topic in Game Support
fixed. working now thanks for the help everyone. just got to add the insertation bit now :) -
script help? i think ive done it completely wrong lol.
Nicholas replied to Nicholas's topic in Game Support
tried that... it still just refreshed Function Index() page lol... this is the script i have at moment <?php include "globals.php"; $_GET['ID'] = (isset($_GET['ID']) && is_string($_GET['ID'])) ? stripslashes(trim($_GET['ID'])) : FALSE; switch($_GET['ID']) { case 'ID': ID(); break; default: index(); break; } function index() { global $db,$ir,$c,$h,$userid; print "<h2>Last 25 Lottery Tickets Wins</h2>"; print "<center><table width='18%' cellspacing='1' class=table border='1' bordercolor='#636363'></center>"; $get_wins = sprintf("SELECT `ID` FROM lotterywins ORDER BY `ID` DESC LIMIT 25"); $do_wins = $db->query($get_wins); while($wins = $db->fetch_row($do_wins)) { print "<tr>"; print "<td align='center'>[url='lottery_win.php?ID=".abs(intval($wins[']Raffle ".number_format($wins['ID'])."[/url]</td>"; print "</tr>"; } print "</table>"; } function ID() { global $db,$ir,$c,$h,$userid; print "<center><table width='50%' cellspacing='1' class=table border='1' bordercolor='#636363'></center>"; print "<tr>"; print "<th width='25%'>Name</th>"; print "<th width='25%'>Amount</th>"; print "</tr>"; $get_wins = sprintf("SELECT `ID`, `username`, `amount` FROM lotterywins WHERE (`ID` = %u)", abs(@intval($_GET['ID']))); $do_wins = $db->query($get_wins); while($wins = $db->fetch_row($do_wins)) { print "<tr>"; print "<td align='center'>".stripslashes($wins['username'])."</td>"; print "<td align='center'>".number_format($wins['amount'])."</td>"; print "</tr>"; } print "</table>"; } $h->endpage(); ?> -
i know its *kinda* been done, ive got a similar one on my game lol but not the animated picture up top with 2 animated avatar things shooting each other, the way im saying is little different lol. but also even if its been done, not every game will have it lol. thats what i mean, like every game will have it lol. most the attack scripts made with the sameish idea i said, are just 2 little stick images with like (red dots) showing where each player was hit like on my game lol.
-
very true, until about 2025 where all games on internet will have realistic mods like a attack system, when you attack a animated (realistic) picture will appear and they will shoot each other and a bullet will shoot out of each animated players avatar on image created and the bullet will land on where say for example, say you hit your oppentants arm and the other player hits your head, the text say 1. "you used your *weapon name* and shot *player name* in the arm taking 1,000 damage" 2. "your oppenant shot you in the head with their *weapon name* and taken 1,000 damage from you" SHOOT AGAIN! _____________________________________________________ hopefully this isnt confusing HAHA. but the images will change depending on where the players hit each.