Jump to content
MakeWebGames

Recommended Posts

Posted

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

Posted

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

Posted

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.

Posted

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>.");

}

Guest Sniko`
Posted

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.

 

Posted

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.

Posted

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.

Posted

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

?> :? :? :?

Posted

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

Posted

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

qwerty.png

Posted

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

Posted

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

small_fast-finger-keyboard_hh.jpg

'nuff said ;)

Posted

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

small_fast-finger-keyboard_hh.jpg

'nuff said ;)

 

lol just like a said custom one which the one you posted is so nuff said :-P

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...