AlabamaHit
Members-
Posts
1,308 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by AlabamaHit
-
Guess I'm not on the list cause I'm not free LOL.. I'm not a cheap whore :D I do however always wonder why I'm never on anyones list? Ya'll don't like me ? lol. thats is huh? You all hate me. LOL
-
I'm only posting once. Only reason is That is very true. But when making and selling a mod. There is "No" room for mistakes. You "Will" screw a game if you don't check everything at least 20 times... Not bashing Cronus. nor taking sides. Just stating..that a mod should never be release with a bug... I know some come through and need alot of people reading it, and using it before you will find it. But if 90% of your mods do this... Somehting is odd there... I'm out. Don't worry Cronus this is my only post on this. I will not post back on it. It is not a personal attack at you either.. But I do say this on Cronus side. Look at the price. you get what you paid for. It is a $10 mod... If you buy a $10 and not expect a lot of bugs something is wrong with you to lol. For $10 you can bank on there being a few dozen holes in it..Cause come on it's only $10..
-
The no sprintf was a typo. It obviously was supposed to be there. lol Now, people saying that my code was wrong cause i use 'userid' as an "Example"... come on guys. I'm not holding hands here. That all is just an example how to format, and keep numbers positive. The stripslashes. Was just a 'tip' on words.. cause one would assume that they are securing the stuff on the entering of the DB. Of course if your not. Then don't use stipslashes. lol. Small tip to Zero (not meaning offensive). You might want to check into not putting array in a loop. It will slow your codes down.
-
Example for userid $db->query("SELECT `userid`, `username` FROM `users` WHERE `userid` = %u",abs(@intval($ir['userid']))); Example for username $db->query("SELECT `userid`, `username` FROM `users` WHERE `username` = '%s'",stripslashes($ir['username'])); That of course is is you have mres your usernames...
-
Jobs, I believe is in the 'hour' cron page.
-
some help with global functions V2
AlabamaHit replied to virtualshogun's topic in General Discussion
You probarly need to go into control panel and set your exp to '0'. -
the $h->endpage( ); see the space. $h->endpage(); That would maek you be able to use it.
-
I understand you want to help. but you can 'not' give peoples IP out like that, It is against privacy. Making it illegal. I'm sure you didn't know that..but you really can't give out IP address'
-
in header add after if(!$ir['email']) { global $domain; die ("<body>Your account may be broken. Please mail help@{$domain} stating your username and player ID."); } in voting just add where you want it to show, like at top after global Though i did just think about somethign, that wont work, it will send them into a endless loop lol. so try this on header $block = $db->query(sprintf("SELECT `userid` FROM `votes` WHERE `userid` = %u",abs(@intval($ir['userid'])))); $page = "/voting.php"; if($db->num_rows($block) < 5 && $_SERVER['SCRIPT_NAME'] != $page) { header('Location: voting.php'); } This is untested of course.
-
strats staff 'keys' would be pretty easy. on the staff page. just add $_POST['key'] = abs(@intval($_POST['key'])); if(!isset($_POST['key'])) { echo 'You have to enter your pass key. Please do so below. '; echo '<form action="staff.php" method="post">'; echo '<input type="text" name="key" /> '; echo '<input type="submit" value="Verify" />'; echo '</form>'; } else { if($ir['userid'] == STAFFS ID && $_POST['key'] != $ir['staff_key']) { echo 'Nope you did not get in.'; exit; } else if(ALL OTHERS and so on and on. { } } somethign along that line. But I also agree with MD. The best way is not to make stuff work. But to fix it. You should verify that 'ALL' data in the game when being passed, is what it is supposed to be.
-
This is for the header. Change the 5 to how ever many sites you have. $block = $db->query(sprintf("SELECT `userid` FROM `votes` WHERE `userid` = %u",abs(@intval($ir['userid'])))); if($db->num_rows($block) < 5) { header('Location: voting.php'); } Now they are stuck on the voting page LOL. If you want to tell them why, add this to the voting,php $block = $db->query(sprintf("SELECT `userid` FROM `votes` WHERE `userid` = %u",abs(@intval($ir['userid'])))); if($db->num_rows($block) < 5) { echo 'You can not leave this page until you have voted on all the sites.'; } And there ya go.
-
there is no need to Escape an IP. $IP = $_SERVER['REMOTE_ADDR']; Is more than enough.
-
Bluefish....but it is not on the list...
-
Not saying it is. This is a serious question.. Wouldn't that be illegal to charge to view a movie that you don't own rights to??
-
add ob_start(); above the session_start();
-
Yup, I never noticed I missed that on the post i did before. lol. litle update though $do = mysql_query(sprintf("UPDATE users SET money = money + %u, crystals = crystals + %u WHERE userid = %u",abs(@intval($_POST['money'])),abs(@intval($_POST['crystals'])),abs(@intval($_POST['user']))); Just added to how i used to do it, thought it might help some people.
-
Re: [Mccodes V2] Attack, level difference in stock attack don't it select everythign? so... this would work.. if($ir['level'] > $odata['level'] - 5) { die(); } But personally if you used something like this. You should add exception for Wars...
-
Re: Limit Exp For Levels .....of course they will get 25% if they are level 1 and beatign level 25.. Try level 1 vs level 1
-
Re: Limit Exp For Levels hum... try this one then <?php $atkpage=1; include "globals.php"; $_GET['ID']=abs(@intval($_GET['ID'])); $_SESSION['attacking']=0; $ir['attacking']=0; $db->query("UPDATE users SET attacking=0 WHERE userid=$userid"); $od=$db->query("SELECT * FROM users WHERE userid={$_GET['ID']}"); if($_SESSION['attackwon'] != $_GET['ID']) { die ("Cheaters don't get anywhere."); } if($db->num_rows($od)) { $r=$db->fetch_row($od); $gq=$db->query("SELECT * FROM gangs WHERE gangID={$r['gang']}"); $ga=$db->fetch_row($gq); if($r['hp'] == 1) { print "What a cheater u are."; } else { print "You beat {$r['username']} "; $qe=$r['level']*$r['level']*$r['level']; if($ir['level'] <= 20) { $expgain = rand($qe/2,$qe) > $ir['exp_needed'] / 100 * 25 ? $ir['exp_needed']/100*25 : rand($qe/2,$qe); } else if($ir['level'] > 20 && $ir['level'] <= 100) { $expgain = rand($qe/2,$qe) > $ir['exp_needed'] / 100 * 15 ? $ir['exp_needed']/100*15 : rand($qe/2,$qe); } else if($ir['level'] > 100 && $ir['level'] <= 200) { $expgain = rand($qe/2,$qe) > $ir['exp_needed'] / 100 * 10 ? $ir['exp_needed']/100*10 : rand($qe/2,$qe); } else { $expgain = rand($qe/2,$qe) > $ir['exp_needed'] / 100 * 7 ? $ir['exp_needed']/100*7 : rand($qe/2,$qe); } $expperc=(int) ($expgain/$ir['exp_needed']*100); print "and gained $expperc% EXP! You hide your weapons and drop {$r['username']} off outside the hospital entrance. Feeling satisfied, you walk home."; $hosptime=rand(10,20); $db->query("UPDATE users SET exp=exp+$expgain WHERE userid=$userid"); $db->query("UPDATE users SET hp=1,hospital=$hosptime,hospreason='Left by <a href=\'viewuser.php?u={$userid}\'>{$ir['username']}</a>' WHERE userid={$r['userid']}"); event_add($r['userid'],"[url='viewuser.php?u=$userid']{$ir['username']}[/url] attacked you and left you lying outside the hospital.",$c,'combat'); $atklog=mysql_escape_string($_SESSION['attacklog']); $db->query("INSERT INTO attacklogs VALUES('',$userid,{$_GET['ID']},'won',unix_timestamp(),-2,'$atklog');"); $_SESSION['attackwon']=0; $warq=$db->query("SELECT * FROM gangwars WHERE (warDECLARER={$ir['gang']} AND warDECLARED={$r['gang']}) OR (warDECLARED={$ir['gang']} AND warDECLARER={$r['gang']})"); if ($db->num_rows($warq) > 0) { $war=$db->fetch_row($warq); $db->query("UPDATE gangs SET gangRESPECT=gangRESPECT-1 WHERE gangID={$r['gang']}"); $ga['gangRESPECT']-=1; $db->query("UPDATE gangs SET gangRESPECT=gangRESPECT+1 WHERE gangID={$ir['gang']}"); print " You earnt 1 respect for your gang!"; } //Gang Kill if ($ga['gangRESPECT']<=0 && $r['gang']) { $db->query("UPDATE users SET gang=0 WHERE gang={$r['gang']}"); $db->query("DELETE FROM gangs WHERE gangRESPECT<='0'"); $db->query("DELETE FROM gangwars WHERE warDECLARER={$ga['gangID']} or warDECLARED={$ga['gangID']}"); } $npcs=array( ); if($r['user_level']==0) { $q=$db->query("SELECT * FROM challengebots WHERE cb_npcid={$r['userid']}"); if ($db->num_rows($q)) { $cb=$db->fetch_row($q); $qk=$db->query("SELECT * FROM challengesbeaten WHERE userid=$userid AND npcid={$r['userid']}"); if(!$db->num_rows($qk)) { $m=$cb['cb_money']; $db->query("UPDATE users SET money=money+$m WHERE userid=$userid"); print " You gained \$$m for beating the challenge bot {$r['username']}"; $db->query("INSERT INTO challengesbeaten VALUES($userid, {$r['userid']})"); } } } } } else { print "You beat Mr. non-existant!"; } $h->endpage(); ?> Also is that level one verse level 1? or higher?
-
Re: Limit Exp For Levels Try this out. <?php $atkpage=1; include "globals.php"; $_GET['ID']=abs(@intval($_GET['ID'])); $_SESSION['attacking']=0; $ir['attacking']=0; $db->query("UPDATE users SET attacking=0 WHERE userid=$userid"); $od=$db->query("SELECT * FROM users WHERE userid={$_GET['ID']}"); if($_SESSION['attackwon'] != $_GET['ID']) { die ("Cheaters don't get anywhere."); } if($db->num_rows($od)) { $r=$db->fetch_row($od); $gq=$db->query("SELECT * FROM gangs WHERE gangID={$r['gang']}"); $ga=$db->fetch_row($gq); if($r['hp'] == 1) { print "What a cheater u are."; } else { print "You beat {$r['username']} "; $qe=$r['level']*$r['level']*$r['level']; $expgain=rand($qe/2,$qe); if($ir['level'] <= 20) { $expgain = $expgain > $ir['exp_needed'] / 100 * 25 ? $ir['exp_needed']/100*25 : $expgain; } else if($ir['level'] > 20 && $ir['level'] <= 100) { $expgain = $expgain > $ir['exp_needed'] / 100 * 15 ? $ir['exp_needed']/100*15 : $expgain; } else if($ir['level'] > 100 && $ir['level'] <= 200) { $expgain = $expgain > $ir['exp_needed'] / 100 * 10 ? $ir['exp_needed']/100*10 : $expgain; } else { $expgain = $expgain > $ir['exp_needed'] / 100 * 7 ? $ir['exp_needed']/100*7 : $expgain; } $expperc=(int) ($expgain/$ir['exp_needed']*100); print "and gained $expperc% EXP! You hide your weapons and drop {$r['username']} off outside the hospital entrance. Feeling satisfied, you walk home."; $hosptime=rand(10,20); $db->query("UPDATE users SET exp=exp+$expgain WHERE userid=$userid"); $db->query("UPDATE users SET hp=1,hospital=$hosptime,hospreason='Left by <a href=\'viewuser.php?u={$userid}\'>{$ir['username']}</a>' WHERE userid={$r['userid']}"); event_add($r['userid'],"[url='viewuser.php?u=$userid']{$ir['username']}[/url] attacked you and left you lying outside the hospital.",$c,'combat'); $atklog=mysql_escape_string($_SESSION['attacklog']); $db->query("INSERT INTO attacklogs VALUES('',$userid,{$_GET['ID']},'won',unix_timestamp(),-2,'$atklog');"); $_SESSION['attackwon']=0; $warq=$db->query("SELECT * FROM gangwars WHERE (warDECLARER={$ir['gang']} AND warDECLARED={$r['gang']}) OR (warDECLARED={$ir['gang']} AND warDECLARER={$r['gang']})"); if ($db->num_rows($warq) > 0) { $war=$db->fetch_row($warq); $db->query("UPDATE gangs SET gangRESPECT=gangRESPECT-1 WHERE gangID={$r['gang']}"); $ga['gangRESPECT']-=1; $db->query("UPDATE gangs SET gangRESPECT=gangRESPECT+1 WHERE gangID={$ir['gang']}"); print " You earnt 1 respect for your gang!"; } //Gang Kill if ($ga['gangRESPECT']<=0 && $r['gang']) { $db->query("UPDATE users SET gang=0 WHERE gang={$r['gang']}"); $db->query("DELETE FROM gangs WHERE gangRESPECT<='0'"); $db->query("DELETE FROM gangwars WHERE warDECLARER={$ga['gangID']} or warDECLARED={$ga['gangID']}"); } $npcs=array( ); if($r['user_level']==0) { $q=$db->query("SELECT * FROM challengebots WHERE cb_npcid={$r['userid']}"); if ($db->num_rows($q)) { $cb=$db->fetch_row($q); $qk=$db->query("SELECT * FROM challengesbeaten WHERE userid=$userid AND npcid={$r['userid']}"); if(!$db->num_rows($qk)) { $m=$cb['cb_money']; $db->query("UPDATE users SET money=money+$m WHERE userid=$userid"); print " You gained \$$m for beating the challenge bot {$r['username']}"; $db->query("INSERT INTO challengesbeaten VALUES($userid, {$r['userid']})"); } } } } } else { print "You beat Mr. non-existant!"; } $h->endpage(); ?>
-
Re: Limit Exp For Levels You don't need to PM your attack page. All EXP is in other file. None of it is in the attack.php And example of what to do is this. if($ir['level'] <= 20) { $expgain = $expgain > $ir['exp_needed'] / 100 * 25 ? $ir['exp_needed']/100*25 : $expgain; } else if($ir['level'] > 20 && $ir['level'] <= 100) { $expgain = $expgain > $ir['exp_needed'] / 100 * 15 ? $ir['exp_needed']/100*15 : $expgain; } and so on...
-
Re: Unique Template $35 http://criminalexistence.com/ceforums/i ... c=29147.15 Scroll down to illegalife, he has full screenshots with watermarks. he also talks about the women.
-
Re: Unique Template $35 I have right to sell. I also said I did not make the template. So don't ask about how it was made. I have no idea. If I don't have the right to sell it, cause of the girls. Then he didn't have the right ot sell it either. And I should be able to get my money back. So I don't see any reason why I can't sell it.
-
Re: [v2] CreateGang Secured+Updated shouldn't you be using mres to insert that into database. Then, use stripslahes to display? Nice work also.
-
yes unique and only $35. Reason, it is all I paid. Not charging more than I paid. So also, with that said it is obvious I did not make this. Just selling it as I don't have time to use it and it is a very good one. Someone can defently use it. It is Adult based, as you will tell from the pictures. Yes screenshots sucks. Because I'm not an idiot, I'm not showing a full screenshot for people to steal it. But you wil get the idea from it. BEWARE. it is NOT coded into Mccodes. You will have to do this. Meaning. You wil get images folder with images in it, and an index.php you will have to intergrate it yourself. Or hire someon. I will not , I'm just to busy. Also, this is unique like I said. So as soon as I email it to you I will be deleting it, (After you confirm you got it ofcourse.) So oncce you get it, and you lose it. Your lost. I am not keeping this on my computer. So you will need to back it up. If you think that is not fair thats your problem I'm not keeping an unique template on my computer lol. Surely you know what I mean there. Please don't take that the wrong way either, not trying to sound like a smart azz. Yes the images. are sliced, it is ready to go. Ingame Login Register Just mail me on here. First one THAT PAYS gets it. Not first one that says they want it. I have gotten screwed over by people saying I want this, hold it. I will NEVER hold anyting for anyone anymore.. So first one that comes with money, gets it.