Jump to content
MakeWebGames

Recommended Posts

Posted

Re: [MCCODES V2] Mobile text messaging

Well this is a pretty good mod!! I like it!!! Well I had to go ahead and add my addition to it here is a pretty straight forward form where users can purchase the credits for crystals there is a little bit of added security in there as you can see if some one tries to buy less than 10 or more than 30 it will prevent them and notify you of the event if your userid is 1 !!!!which it should be LOL :D

also you can set a price by changing the variable $price, where it says $quantity*10 just change the to how much you want to charge per each credit!

call this file 'credits.php' !

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

I forgot to mention I tested this with myself and it works, please post if you use it and let others know that it works too ;)

Posted

Re: [MCCODES V2] Mobile text messaging

Thanks illusion!! also there was a small problem with you database tables! you int when you should have used Big Int phone numbers are too big for int ;)

int only goes up to 2147483647 so if you have to add a 1 to area code or the first number in you phone number is higher than a 2 you won't be able to change yournumber in the database it will always show up as 2147483647

so if anyone plans on using this mod here is sql to install to the database! just install as instructed earlier in illusions instructions then run this query!

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

  • 5 weeks later...
Posted

Re: [MCCODES V2] Mobile text messaging

echo "<center>";

//Enter the item id of the Mobile phone for the mod to work!

$ps_item_number = "324";

//Lets check if the player actually owns a mobile phone.

$db->query("select * from inventory where inv_itemid = '".$ps_item_number."' AND inv_userid = ".$ir['userid']."");

//No mobile phone? Thats cool, Lets tell them that!

if(!mysql_fetch_array($q))

{

echo "you dont a mobile phone";

$h->endpage();

exit

 

would that do it then add this to your inv.php

if($i['itmname'] == 'mobile phone')

{

echo " [<a href = 'textmessage.php'>Use</a>]";

 

any imput to that would be great ty im still learning will it be along them lines

}

  • 2 weeks later...

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...