(((TOLK))) Posted April 14, 2009 Posted April 14, 2009 This a small racing mod that will give users some money if they win. SQL First You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Call this file race.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Now call this file raceD.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Add this to Explore or wherever you want it: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Now add this into cron_day.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. And that's it. At the moment there's only 1 person you can challenge, called Dave. You can add more by adding another person to the table and making another file like raceD.php (the D stands for Dave.) So if i wanted to make Bill, i'd add bill to the table then make a file called raceB.php. Just edit the raceD.php file to make it harder for people to win and to give out more money. So change: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. To: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Give me your views, I love comments :-P Quote
(((TOLK))) Posted April 15, 2009 Author Posted April 15, 2009 Re: [McCodes V2]Race Mod I might extend this at some point so people can buy cars and race against each other, it's already been made but it's a paid mod but i would like to try it after i have more experience in coding Quote
DELETE ME NOW! Posted April 15, 2009 Posted April 15, 2009 Re: [McCodes V2]Race Mod lol wtf... ok.. Why have to files? Quote
(((TOLK))) Posted April 15, 2009 Author Posted April 15, 2009 Re: [McCodes V2]Race Mod lol wtf... ok.. Why have to files? I think it's because i'm not a very good coder and i don't know how to make it in one file. I tried using cases but that didn't go that well lol :lol: If you can fix it up that'd be good. I just need to see a mod like this in one file and then after looking at it i will be able to make codes in one file. Quote
DELETE ME NOW! Posted April 15, 2009 Posted April 15, 2009 Re: [McCodes V2]Race Mod ok.. Call this race.php lol You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. I just copyed your stuff and put it in functions/switch case Should work, xD Quote
(((TOLK))) Posted April 15, 2009 Author Posted April 15, 2009 Re: [McCodes V2]Race Mod Thanks Crazy-T will learn from that. You use a real different coding style to me, u do if($ir['jail']) { echo 'While in jail you cant access this page dude'; $h->endpage(); exit; } I do if($ir['jail'] or $ir['hospital']) { die("<font color=red>This page cannot be accessed while in jail or hospital</font>."); } Quote
DELETE ME NOW! Posted April 15, 2009 Posted April 15, 2009 Re: [McCodes V2]Race Mod Yeah, i use both, but i dont like You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. that much though. Quote
(((TOLK))) Posted April 15, 2009 Author Posted April 15, 2009 Re: [McCodes V2]Race Mod I love die because i can't use anything else :lol: Quote
DELETE ME NOW! Posted April 15, 2009 Posted April 15, 2009 Re: [McCodes V2]Race Mod I love die because i can't use anything else :lol: Lol, ok.... Quote
Guest Sniko` Posted April 15, 2009 Posted April 15, 2009 Re: [McCodes V2]Race Mod See this link //TOLK\\ http://criminalexistence.com/ceforums/i ... ic=25579.0 because it seems to like if your over level 3 you instantly win, meaning lots of cash will be around on your game, you could do something like this Now call this file raceD.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
(((TOLK))) Posted April 16, 2009 Author Posted April 16, 2009 Re: [McCodes V2]Race Mod See this link //TOLK\\ http://criminalexistence.com/ceforums/i ... ic=25579.0 because it seems to like if your over level 3 you instantly win, meaning lots of cash will be around on your game, you could do something like this Now call this file raceD.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. I realised that and that's why i have it so that you can only have 5 races everyday. this takes 1 race aloud away You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. This refills the amount of races you can have everyday. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Magictallguy Posted April 16, 2009 Posted April 16, 2009 Re: [McCodes V2]Race Mod I realised that and that's why i have it so that you can only have 5 races everyday. this takes 1 race aloud away You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. This refills the amount of races you can have everyday. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. FAIL! -.- You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
(((TOLK))) Posted April 16, 2009 Author Posted April 16, 2009 Re: [McCodes V2]Race Mod I realised that and that's why i have it so that you can only have 5 races everyday. this takes 1 race aloud away You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. This refills the amount of races you can have everyday. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. FAIL! -.- You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. What failed, i think i'm missing something here, is it that i didn't put <?php ?> :? :? :? Quote
Magictallguy Posted April 16, 2009 Posted April 16, 2009 Re: [McCodes V2]Race Mod I realised that and that's why i have it so that you can only have 5 races everyday. this takes 1 race aloud away You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. This refills the amount of races you can have everyday. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. FAIL! -.- You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. What failed, i think i'm missing something here, is it that i didn't put <?php ?> :? :? :? Nope, I added that just to colour it in (I like pwetty colours! :D) You used quote marks ' instead of the ` character Quote
(((TOLK))) Posted April 16, 2009 Author Posted April 16, 2009 Re: [McCodes V2]Race Mod pwetty cowours---pwetty cowours :-P right i use (') instead of the other one but i don't know where that is on the keyboard :lol: :? Quote
Magictallguy Posted April 16, 2009 Posted April 16, 2009 Re: [McCodes V2]Race Mod pwetty cowours---pwetty cowours :-P right i use (') instead of the other one but i don't know where that is on the keyboard :lol: :? If you're using a standard UK keyboard, it's next to the 1 key, and above the Tab key Quote
(((TOLK))) Posted April 16, 2009 Author Posted April 16, 2009 Re: [McCodes V2]Race Mod Aaah...I SEE IT!!! :lol: Thanks MTG :-) Quote
redsnake420 Posted April 16, 2009 Posted April 16, 2009 Re: [McCodes V2]Race Mod MTG that is not just a standard uk keyboard its a standard keyboard for almost everywhere around the world we all use that same type of qwerty keyboard unless someone buys a special keyboard Quote
Magictallguy Posted April 17, 2009 Posted April 17, 2009 Re: [McCodes V2]Race Mod MTG that is not just a standard uk keyboard its a standard keyboard for almost everywhere around the world we all use that same type of qwerty keyboard unless someone buys a special keyboard 'nuff said ;) Quote
(((TOLK))) Posted April 17, 2009 Author Posted April 17, 2009 Re: [McCodes V2]Race Mod I hate them keyboards, i'm so used to querty that i always go for the wrong keys and end up taking years to type my own name :lol: Quote
redsnake420 Posted April 17, 2009 Posted April 17, 2009 Re: [McCodes V2]Race Mod MTG that is not just a standard uk keyboard its a standard keyboard for almost everywhere around the world we all use that same type of qwerty keyboard unless someone buys a special keyboard 'nuff said ;) lol just like a said custom one which the one you posted is so nuff said :-P Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.