
ADN
Members-
Posts
25 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by ADN
-
Re: [mccode v2] userADS :-( :-( :-(
-
Re: Halloffame Playing up $q=$db->query("SELECT u.*,g.* FROM users u LEFT JOIN gangs g ON g.gangID=u.gang WHERE u.user_level != 0 $myf ORDER BY busts DESC,userid ASC LIMIT 20"); $p=0; while($r=$db->fetch_row($q)) { $p++; if($r['userid'] == $userid) { $t="[b]";$et="[/b]"; } else { $t="";$et=""; } print "<tr> <td>$t$p$et</td> <td>$t{$r['gangPREF']} [url='viewuser.php?u={$r[']{$r['username']}[/url] [{$r['userid']}]$et</td> <td>$t".money_formatter($r['busts'],'')."$et</td> </tr>"; }
-
Re: [v2] Faction with Armoury Works to me. Great job! If i found something else, i will tell you. Thanks!
-
Re: [v2] Faction with Armoury Yes, thankyou. +1 from me! :) And one more thing :P Leave Faction < Fatal error: Call to undefined function leave_faction() in C:\wamp\www\game\manage_faction.php on line 36
-
Re: [v2] Faction with Armoury The, you don't have all lines in manage_faction.php Here, those 3 lines missing. > Give Money / Points Fatal error: Call to undefined function give_vault() in C:\wamp\www\game\manage_faction.php on line 32 > Manage Apps Fatal error: Call to undefined function app_manage() in C:\wamp\www\game\manage_faction.php on line 52 > Kick Member Fatal error: Call to undefined function kick_member() in C:\wamp\www\game\manage_faction.php on line 56
-
Re: [v2] Faction with Armoury There is no function defined for those 3 links : > [url='manage_faction.php?step=give']Give Money / Points[/url] > [url='manage_faction.php?step=apps']Manage Apps[/url] > [url='manage_faction.php?step=kick']Kick Member[/url]
-
Re: Crystal market exploit? CREATE TABLE `cheater_catcher` ( `cc_id` int(11) NOT NULL auto_increment, `cc_userid` int(11) NOT NULL default '0', `cc_count` int(11) NOT NULL default '0', PRIMARY KEY (`cc_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; Read all posts, then start using a script.
-
Re: [mccode v2] Gym Same problem like with old gym.php : will goes down too much. $gain += mt_rand(1, 3) / mt_rand(500, 900) * mt_rand(500, 900) * (($will + 20) / 150); $will = max(0, $will - mt_rand(1, 3)); Instead of 1, 3 i put 0, 1. Takes me 7% from will, but another users (same level) goes to 50-60% will. How i change that? To take exactly (let's say 3%) ?
-
[mccode] Reset your users without deleating them
ADN replied to Redeye's topic in Free Modifications
Re: [mccode] Reset your users without deleating them -edited- -
Re: [mccode v2] Ignore User Mail Thankyou!
-
Re: [mccode v2] Ignore User Mail If someone ignore a player, nobody is able to send him a mail. Where is the issue?
-
Re: EXP% Cap And in attackwon.php & attacktake.php, what is your exp formula ?
-
Re: Bar23 [V2] Ok, i got the point too. So is not a verry good ideea to user that code in my bar23.php. But how i get off of that looooong stat bar? :|
-
Re: Bar23 [V2] Found it. I put in bar23.php, above globals.php : $query="UPDATE users SET brave=brave+((maxbrave/10)+0.5) WHERE brave<maxbrave "; $query2="UPDATE users SET brave=maxbrave WHERE brave>maxbrave"; $query3="UPDATE users SET hp=hp+(maxhp/3) WHERE hp<maxhp"; $query4="UPDATE users SET hp=maxhp WHERE hp>maxhp"; $db->query($query); $db->query($query2); $db->query($query3); $db->query($query4); //enerwill update $query="UPDATE users SET energy=energy+(maxenergy/(12.5)) WHERE energy<maxenergy AND donatordays=0"; $query5="UPDATE users SET energy=energy+(maxenergy/(6)) WHERE energy<maxenergy AND donatordays>0"; $query2="UPDATE users SET energy=maxenergy WHERE energy>maxenergy"; $query3="UPDATE users SET will=will+10 WHERE will<maxwill"; $query4="UPDATE users SET will=maxwill WHERE will>maxwill"; $db->query($query); $db->query($query5); $db->query($query2); $db->query($query3); $db->query($query4);
-
Re: Bar23 [V2] http://img91.imageshack.us/my.php?image=xxxox8.jpg Still the same issue. Is not 28, now is 18 (with 0/5 brave)
-
Re: Got some issue when creating job When you create a new job, you have to edit all fields.
-
Re: Bar23 [V2] Verry nice mod. But, i'm level 1 and i have only 5 Braves. If i buy a vodka, my Brave bar grows up on 28 Braves. Half screen. All site is crashed. And i can't fix it (i just have to "spend" all Braves on crimes). How i can do to put those values in procent and max my bravemax ?
-
[mccode] Reset your users without deleating them
ADN replied to Redeye's topic in Free Modifications
Re: [v1 & v2]Reset your users without deleating them <?php include "globals.php"; if($ir['userid'] != 1) { die ("Coo Off!"); } global $db; $db->query("UPDATE users SET course=0,cdays=0") or die(mysql_error()); print "Clearing done!"; $h->endpage(); ?> I try to reset users-courses, but doesn't work. I try to edit from phpMyAdmin course & cdays (i put 0), but in the game, it's appear i allready make some courses. What can i do to reset it good? -
Re: EXP% Cap I'm lost from 1 week here .... lol
-
I saw an example of hospital crimes here : http://criminalexistence.com/ceforums/i ... ic=17197.0 But, i need something more complicated. SO, i create in "crimes" table, crimeHTEXT, crimeHTIME, crimeHREASON. I modify my staff_crimes.php to add/edit a crime with hospital reason, time & text (and my database updates with hospital info). Now, i take the code from Toxication, and he is look like that : else { print $r['crimeHTEXT']; $chance=rand(1,2); if ($chance == 1) { $hospital=rand(2,7); mysql_query("UPDATE users SET hospital=$r[crimeHTIME], hospreason=$r[crimeHREASON] WHERE userid=$userid"); } if ($chance == 2) { $jail=rand(2,7); { print $r['crimeFTEXT']; } mysql_query("UPDATE users SET jail=$r[crimeJAILTIME], jail_reason=$r[crimeJREASON] WHERE userid=$userid"); } } I mention that crimeHTIME and crimeHREASON exist in "crimes" and hospital & hospreason exist in "users". If i failure a crime, and the text say i should be in hospital, well, my database is not updating. I can still do crimes untill my brave go to 0. Any ideea what is wrong ?
-
Re: EXP% Cap Zero-Affect, if statement's for this exp code :|
-
Re: EXP% Cap And now the question is : who is gonna help me to create those arrays? :-o
-
Re: EXP% Cap Zero-Affect, i have the same problem. Or i take 8237 EXP from beating somebody, or 0. I change that code in global_func.php, but in still have the same problem. I think the issue is on this code. But i am not a php-guru :(
-
Hello. I just install mccodes v2, but time in jail, hopital, energy bar, will, brave is frozed. I think is from crones issue. I have 4 crones (minutes, 5 minutes, hour and day). What is the right code to put out there for every cron ? I also receive email from cron minute, cron 5 minutes, hour and day. All of them looks like this one :