-
Posts
132 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by DeaTH_RideR
-
great mod Matt thanks :thumbup:
-
im sure a few people would try it out but reading your post it say 1 $ so maybe this should be in the paid mods thread . :thumbsup:
-
how about a hunting mod ? i dont mean something like the rangers den but real where hunter will have to buy a permit and then would have to buy a tag for lets say 5 different animals. like bear , buck, doe, wild turkey,boar. then if they would happen to come accross a buck but only bought a tad for a doe they could still try to kill the buck and if they did they would be fined for not having the right tag. :evil:
-
would someone help me with this ? Notice: Undefined variable: totalc in //header.php on line 688 thank you.
-
maybe if you could give us a little more info someone might be able to help ya out :thumbup:
-
first i would like to say this is my first mod and i had a little help from my good friend Zero Affect. Ok i wanted to have something that would keep players from using a bunch of items that give like full energy over and over so here is what i done. first add these to your users table .phpmyadmin ALTER TABLE `users` ADD `hunger` INT( 11 ) NOT NULL DEFAULT '0'; ALTER TABLE `users` ADD `maxhunger` INT( 11 ) NOT NULL DEFAULT '100'; then open header.php look for $enperc=(int) ($ir['energy']/$ir['maxenergy']*100); $wiperc=(int) ($ir['will']/$ir['maxwill']*100); $experc=(int) ( $ir['exp']/$ir['exp_needed']*100); $brperc=(int) ($ir['brave']/$ir['maxbrave']*100); $hpperc=(int) ($ir['hp']/$ir['maxhp']*100); right under that add $hnperc=(int) ($ir['hunger']/$ir['maxhunger']*100); then just a few lines down should be $fnopp=100-$fnperc; $enopp=100-$enperc; $wiopp=100-$wiperc; $exopp=100-$experc; $bropp=100-$brperc; $hpopp=100-$hpperc; Add $hnopp=100-$hnperc; right under then still in header find [b]Health:[/b] {$hpperc}% <img src=greenbar.png width=$hpperc height=10><img src=redbar.png width=$hpopp height=10> right under that add [b]Hunger:[/b] {$hnperc}% <img src=bluebar.png width=$hnperc height=10><img src=redbar.png width=$hnopp height=10> <hr /> save and close header. next open up itemuse.php and look for if(mysql_num_rows($i) == 0) { print "Invalid item ID"; } else { $r=$db->fetch_row($i); right under that add if($r['itmtypeid'] == 3) { if ($ir['hunger'] <= 80) { $db->query("UPDATE `users` SET `hunger` = `hunger` + 20 WHERE `userid` = $userid"); } else { echo 'You cannot use this item at this time.'; $h->endpage(); exit; } } "note you will have to find out the item type id for the items you want to use this for. save and close the file" then open up your cron_hour and put $db->query("UPDATE `users` SET `hunger` = `hunger` - 10 WHERE `hunger` >= 10"); save and close cron_hour. your done , if something dont work check your edits or post here.
-
here is my thought . i wish someone would make an attack point system, what i mean by this is just this. Attack limits: There is a points based, weighted system in place. Under the new settings, leaving a user counts as 3 points, a mug as 4, and a pummel as 5. Again, this system is between you and another user completely independently of any other attacks you make on other users. You have a limit of 75 points for any given 24 hour period. For those who are not numerically gifted, this breaks down to: 25 leaves or 19 mugs or 15 pummels. You can pick and mix, of course. It never "resets", it is a continual, rolling 24 hour period. 24 hours after a certain hit, it expires, and no longer gets counted. :thumbup:
-
mccode-v2 Christmas Advent Calendar [ WORKING COPY }
DeaTH_RideR replied to Uridium's topic in Free Modifications
yeah thats just how mine was. i have a black background and had to like copy that part of the screen to see all the errors . the one i posted fixed mine sorry i cant be more help. ?( I did have another issue ,it was cause i didnt have the images in a folder called xmas inside my images folder :P -
mccode-v2 Christmas Advent Calendar [ WORKING COPY }
DeaTH_RideR replied to Uridium's topic in Free Modifications
anyone having the same issue pls replace your adventimage.php with this 1 <?php session_start(); $config = DIRNAME(__FILE__) . '/config.php'; if(file_exists($config)) { include_once($config); } else { die("The game is being updated, please check back in a few seconds"); } define('MONO_ON', 1); $class_mysql = DIRNAME(__FILE__) . '/class/class_db_mysql.php'; if(file_exists($class_mysql)) { include_once($class_mysql); } else { die("The game is being updated, please check back in a few seconds"); } $db = new database; $db->configure($_CONFIG['hostname'], $_CONFIG['username'], $_CONFIG['password'], $_CONFIG['database'], $_CONFIG['persistent']); $db->connect(); $c = $db->connection_id; $select = sprintf("SELECT frame1, frame2, frame3, frame4, frame5, frame6, frame7, frame8, frame9, frame10, frame11, frame12, frame13, frame14, frame15, frame16, frame17, frame18, frame19, frame20, frame21, frame22, frame23, frame24, frame25 FROM users WHERE (userid = %u) LIMIT 1", $_SESSION['userid']); $query = $db->query($select); if(!$db->num_rows($query)) { die("User could not be found"); } $ir = $db->fetch_row($query); global $db, $ir, $c; function imagecopymerge_alpha($dst_im, $src_im, $dst_x, $dst_y, $src_x, $src_y, $src_w, $src_h, $pct){ if(!isset($pct)) { return false; } $pct /= 50; // Get image width and height $w = imagesx($src_im); $h = imagesy($src_im); // Turn alpha blending off imagealphablending($src_im, false); // Find the most opaque pixel in the image (the one with the smallest alpha value) $minalpha = 127; for($x = 0; $x < $w; $x++) for($y = 0; $y < $h; $y++){ $alpha = (imagecolorat($src_im, $x, $y) >> 24) & 0xFF; if($alpha < $minalpha){ $minalpha = $alpha; } } //loop through image pixels and modify alpha for each for($x = 0; $x < $w; $x++){ for($y = 0; $y < $h; $y++){ //get current alpha value (represents the TANSPARENCY!) $colorxy = imagecolorat($src_im, $x, $y); $alpha = ($colorxy >> 24) & 0xFF; //calculate new alpha if($minalpha !== 50){ $alpha = 50 + 50 * $pct * ($alpha - 50) / (50 - $minalpha); } else { $alpha += 50 * $pct; } //get the color index with new alpha $alphacolorxy = imagecolorallocatealpha($src_im, ($colorxy >> 16) & 0xFF, ($colorxy >> 8) & 0xFF, $colorxy & 0xFF, $alpha); //set pixel with the new color + opacity if(!imagesetpixel($src_im, $x, $y, $alphacolorxy)){ return false; } } } // The image copy imagecopy($dst_im, $src_im, $dst_x, $dst_y, $src_x, $src_y, $src_w, $src_h); } // USAGE EXAMPLE: $img_a = imagecreatefrompng('adventgridnumbered.png'); $img_b = imagecreatefrompng('images/xmas/door1.png'); $img_c = imagecreatefrompng('images/xmas/door2.png'); $img_d = imagecreatefrompng('images/xmas/door3.png'); $img_e = imagecreatefrompng('images/xmas/door4.png'); $img_f = imagecreatefrompng('images/xmas/door5.png'); $img_g = imagecreatefrompng('images/xmas/door6.png'); $img_h = imagecreatefrompng('images/xmas/door7.png'); $img_i = imagecreatefrompng('images/xmas/door8.png'); $img_j = imagecreatefrompng('images/xmas/door9.png'); $img_k = imagecreatefrompng('images/xmas/door10.png'); $img_l = imagecreatefrompng('images/xmas/door11.png'); $img_m = imagecreatefrompng('images/xmas/door12.png'); $img_n = imagecreatefrompng('images/xmas/door13.png'); $img_o = imagecreatefrompng('images/xmas/door14.png'); $img_p = imagecreatefrompng('images/xmas/door15.png'); $img_q = imagecreatefrompng('images/xmas/door16.png'); $img_r = imagecreatefrompng('images/xmas/door17.png'); $img_s = imagecreatefrompng('images/xmas/door18.png'); $img_t = imagecreatefrompng('images/xmas/door19.png'); $img_u = imagecreatefrompng('images/xmas/door20.png'); $img_v = imagecreatefrompng('images/xmas/door21.png'); $img_w = imagecreatefrompng('images/xmas/door22.png'); $img_x = imagecreatefrompng('images/xmas/door23.png'); $img_y = imagecreatefrompng('images/xmas/door24.png'); $img_z = imagecreatefrompng('images/xmas/door25.png'); global $db, $ir, $c, $r, $img_b,$img_c,$img_d,$img_e,$img_f,$img_g,$img_h,$img_i,$img_j,$img_k,$img_l,$img_m,$img_n,$img_o,$img_p,$img_q,$img_r,$img_s,$img_t,$img_u,$img_v,$img_w,$img_x,$img_y,$img_z; // SAME COMMANDS: if(!$ir['frame1'] && !$ir['frame2'] && !$ir['frame3'] && !$ir['frame4'] && !$ir['frame5'] && !$ir['frame6'] && !$ir['frame7'] && !$ir['frame8'] && !$ir['frame9'] && !$ir['frame10'] && !$ir['frame11'] && !$ir['frame12'] && !$ir['frame13'] && !$ir['frame14'] && !$ir['frame15'] && !$ir['frame16'] && !$ir['frame17'] && !$ir['frame18'] && !$ir['frame19'] && !$ir['frame20'] && !$ir['frame21'] && !$ir['frame22'] && !$ir['frame23'] && !$ir['frame24'] && !$ir['frame25']); if(!$ir['frame1'] !=1) { imagecopymerge_alpha($img_a, $img_b, 25,25,0,0, imagesx($img_b), imagesy($img_b), 50); } if(!$ir['frame2'] !=1) { imagecopymerge_alpha($img_a, $img_c, 401, 402, 0, 0, imagesx($img_c), imagesy($img_c), 50); } if(!$ir['frame3'] !=1) { imagecopymerge_alpha($img_a, $img_d, 25, 405, 0, 0, imagesx($img_d), imagesy($img_d), 50); } if(!$ir['frame4'] !=1) { imagecopymerge_alpha($img_a, $img_e, 400, 305, 0, 0, imagesx($img_e), imagesy($img_e), 50); } if(!$ir['frame5'] !=1) { imagecopymerge_alpha($img_a, $img_f, 104, 200, 0, 0, imagesx($img_f), imagesy($img_f), 50); } if(!$ir['frame6'] !=1) { imagecopymerge_alpha($img_a, $img_g, 402, 103, 0, 0, imagesx($img_g), imagesy($img_g), 50); } if(!$ir['frame7'] !=1) { imagecopymerge_alpha($img_a, $img_h, 25, 100, 0, 0, imagesx($img_h), imagesy($img_h), 50); } if(!$ir['frame8'] !=1) { imagecopymerge_alpha($img_a, $img_i, 200, 200, 0, 0, imagesx($img_i), imagesy($img_i), 50); } if(!$ir['frame9'] !=1) { imagecopymerge_alpha($img_a, $img_j, 103, 100, 0, 0, imagesx($img_j), imagesy($img_j), 50); } if(!$ir['frame10'] !=1) { imagecopymerge_alpha($img_a, $img_k, 104,300,0,0, imagesx($img_k), imagesy($img_k), 50); } if(!$ir['frame11'] !=1) { imagecopymerge_alpha($img_a, $img_l, 200, 100, 0, 0, imagesx($img_l), imagesy($img_l), 50); } if(!$ir['frame12'] !=1) { imagecopymerge_alpha($img_a, $img_m, 200, 400, 0, 0, imagesx($img_m), imagesy($img_m), 50); } if(!$ir['frame13'] !=1) { imagecopymerge_alpha($img_a, $img_n, 301, 300, 0, 0, imagesx($img_n), imagesy($img_n), 50); } if(!$ir['frame14'] !=1) { imagecopymerge_alpha($img_a, $img_o, 100, 25, 0, 0, imagesx($img_o), imagesy($img_o), 50); } if(!$ir['frame15'] !=1) { imagecopymerge_alpha($img_a, $img_p, 301, 200, 0, 0, imagesx($img_p), imagesy($img_p), 50); } if(!$ir['frame16'] !=1) { imagecopymerge_alpha($img_a, $img_q, 402, 25, 0, 0, imagesx($img_q), imagesy($img_q), 50); } if(!$ir['frame17'] !=1) { imagecopymerge_alpha($img_a, $img_r, 401, 202, 0, 0, imagesx($img_r), imagesy($img_r), 50); } if(!$ir['frame18'] !=1) { imagecopymerge_alpha($img_a, $img_s, 300, 400, 0, 0, imagesx($img_s), imagesy($img_s), 50); } if(!$ir['frame19'] !=1) { imagecopymerge_alpha($img_a, $img_t, 200, 25, 0, 0, imagesx($img_t), imagesy($img_t), 50); } if(!$ir['frame20'] !=1) { imagecopymerge_alpha($img_a, $img_u, 200, 300, 0, 0, imagesx($img_u), imagesy($img_u), 50); } if(!$ir['frame21'] !=1) { imagecopymerge_alpha($img_a, $img_v, 300, 25, 0, 0, imagesx($img_v), imagesy($img_v), 50); } if(!$ir['frame22'] !=1) { imagecopymerge_alpha($img_a, $img_w, 25, 300, 0, 0, imagesx($img_w), imagesy($img_w), 50); } if(!$ir['frame23'] !=1) { imagecopymerge_alpha($img_a, $img_x, 25, 200, 0, 0, imagesx($img_x), imagesy($img_x), 50); } if(!$ir['frame24'] !=1) { imagecopymerge_alpha($img_a, $img_y, 301, 100, 0, 0, imagesx($img_y), imagesy($img_y), 50); } if(!$ir['frame25'] !=1) { imagecopymerge_alpha($img_a, $img_z, 0, 0, 0, 0, imagesx($img_z), imagesy($img_z), 50); } // OUTPUT IMAGE: header("Content-Type: image/png"); imagesavealpha($img_a, true); imagepng($img_a, NULL); ?> -
Insert Points into Cmarket Every *set amount of time*
DeaTH_RideR replied to Joshua's topic in Free Modifications
people in my game ask for this all the time since they have to donate or vote to get crystals. -
hi guys , i didnt want to post this and show my uber noobness but i put this mod in and i got it work but now i get this error when making a new job any help would be very thankfull. QUERY ERROR: Column count doesn't match value count at row 1 Query was INSERT INTO jobranks VALUES('', 'cleaner', 7, 50, 10, 10, 50, 100, 100, 100)
-
looks nice , i like it :thumbsup: maybe you could help me with something, how can i make this a set amount ? You can train up to <prb>{$ir['energy']}</prb> times. im using 150 energy mod and want user to only train 10 for NoN donators and 15 for donators. any help with be thankful.
-
Re: Mass Crystals give gangs its not soulAssisions work either http://criminalexistence.com/ceforums/index.php?topic=2101.0
-
Re: Mass Crystals give gangs lol i dont mean to be a bastard but do you guys search for shit before you make a post about the same things ? This is on here more then 1 time i added this to my game 8 months ago from here. :-D
-
Re: [mccodes v2] Workout Centre [$15] no disrespect buddy just given ya a hard time :lol: , but really just update the mod and send everybody who bought it the update. get well, +1
-
Re: Building Mods - now for sale! Matt hit me on msn asap pls
-
Re: [mccodes v2] Workout Centre [$15] yeah i would say this needs to be updated or lowered to 2bucks , if you use this there is nothing to let you know when your done training and or what you got from the training .FIX this, i could have got a cheap hooker for 15 buck mate.
-
[MCcode V2 or V1] raDiO's Raffle Script [$10 USD]
DeaTH_RideR replied to radio_active's topic in Paid Modifications
Re: [MCcode V2 or V1] raDiO's Raffle Script [$10 USD] NO he is my coder and he just wanted to point out the problem, so it hasent be given away .1. you can buy more then 500 (i currently have more then 500) ----------------------------- 2. you can buy more then 20 per lot (i bought 300 in one lot) and the game took the cash fine You may only buy 1-20 tickets at a time Go back ------------------- 3. if you do buy more the 20 in a lot it doesnt count toward the total bought for the raffle game wide but it counts in your own total --------------- 4. weather you buy less then 20 or more then 20 it takes your cash ok -
Re: help! i had this same problem the other day and did the same thing you did ,went back 2 days then i went back to useing this>>>>>http://criminalexistence.com/ceforums/index.php?topic=23437.0
-
Re: installer question it wont work that way, You have to be able to have an addon domain . i just went through all this shit ,thank god i can run as many games as i want from 1 server.
-
[MCcode V2 or V1] raDiO's Raffle Script [$10 USD]
DeaTH_RideR replied to radio_active's topic in Paid Modifications
Re: [MCcode V2 or V1] raDiO's Raffle Script [$10 USD] ill take a copy ! hit me on msn [email protected] -
Re: IP Banning tool [V1] + [V2] yes it is and all cases should be changed to $ip = $_SERVER['REMOTE_ADDR'];
-
Re: Cock Fight [$10] willis, you have sent $10.00 USD to Isomerizer Network. msn is ..... [email protected]
-
Re: [v2] New Header I'm using it too for my new game that I'm working on. It did mess my staff panel up, would anybody be willing to make that ? +1 thanks for the use of this header and the time you put in to making it so you could just give it away.