Jump to content
MakeWebGames

bocco

Members
  • Posts

    108
  • Joined

  • Last visited

    Never

Everything posted by bocco

  1. Re: I need a Project here is one, make a weapon safe so for the people that have the break in mod they can put 3 items in there for safe keeping and each day they have to pay level * 2 to keep the safe locked, if they do not pay it, then the safe is open and people can steal the item in there
  2. Re: I need a Project First killah sweet post count Posts: 1234 second i must of just beat you by seconds, cause i just posted that then checked 3 secs later and you posted that
  3. Re: I need a Project Wrong board, please post in correct one
  4. Re: [V2]Ranks Mod!!!![V2] yeah i guess that could of worked as well, i never thought of that. when i made the change it was 1am and the brain was not fully working
  5. Re: [V2]Ranks Mod!!!![V2] Just a little add to the code this will allow the ranks to change with out you doing it. Tested and works 100% [V2]   } Print "Game Rank: "; if($r['level'] >= 1) if($r['level'] < 100) { print "Private "; print "[img=/images/rank1.png]"; } if($r['level'] >= 100) if($r['level'] < 125) { print "Corporal "; print "[img=/images/rank2.png]"; } if($ir['level'] >= 125) if($ir['level'] < 150) { print "Sergeant "; print "[img=/images/rank3.png]"; } if($ir['level'] >= 150) if($ir['level'] < 175) { print "Sergeant Major "; print "[img=/images/rank4.png]"; } if($ir['level'] >= 175) if($ir['level'] < 200) { print "Second lieutenant "; print "[img=/images/rank5.png]"; } if($ir['level'] >= 200) if($ir['level'] < 225) { print "First Lieutenant "; print "[img=/images/rank6.png]"; } if($ir['level'] >= 225) if($ir['level'] < 250) { print "Captain "; print "[img=/images/rank7.png]"; } if($ir['level'] >= 250) if($ir['level'] < 275) { print "Major "; print "[img=/images/rank8.png]"; } if($ir['level'] >= 275) if($ir['level'] < 300) { print "Lieutenant Colonel "; print "[img=/images/rank9.png]"; } if($ir['level'] >= 300) if($ir['level'] < 325) { print "colonel "; print "[img=/images/rank10.png]"; } if($ir['level'] >= 325) if($ir['level'] < 350) { print "Brigadier General "; print "[img=/images/rank11.png]"; } if($ir['level'] >= 350) if($ir['level'] < 375) { print "Major General "; print "[img=/images/rank12.png]"; } if($ir['level'] >= 375) if($ir['level'] < 400) { print "Liuetenant General "; print "[img=/images/rank13.png]"; } if($ir['level'] >= 400) if($ir['level'] < 500) { print "General "; print "[img=/images/rank14.png]"; } if($ir['level'] >= 500) if($ir['level'] < 750) { print "General of the Army "; print "[img=/images/rank15.png]"; } if($ir['level'] >= 750) if($ir['level'] < 1000) { print "General Of the armies "; print "[img=/images/rank16.png]"; } if($ir['level'] >= 1000) { print "General Of Wars "; print "[img=/images/rank17.png]"; }
  6. Re: [V2]Ranks Mod!!!![V2] i am sorry but i think either this is way to simple for me, and i am not seeing it, but where do you add this to viewuser.php   if($r['level'] == 1) { print "Private "; print "[img=/images/rank1.png]"; } if($ir['level'] == 100) { print "Corporal "; print "[img=/images/rank2.png]"; } if($ir['level'] == 125) { print "Sergeant "; print "[img=/images/rank3.png]"; } if($ir['level'] == 150) { print "Sergeant Major "; print "[img=/images/rank4.png]"; } if($ir['level'] == 175) { print "Second lieutenant "; print "[img=/images/rank5.png]"; } if($ir['level'] == 200) { print "First Lieutenant "; print "[img=/images/rank6.png]"; } if($ir['level'] == 225) { print "Captain "; print "[img=/images/rank7.png]"; } if($ir['level'] == 250) { print "Major "; print "[img=/images/rank8.png]"; } if($ir['level'] == 275) { print "Lieutenant Colonel "; print "[img=/images/rank9.png]"; } if($ir['level'] == 300) { print "colonel "; print "[img=/images/rank10.png]"; } if($ir['level'] == 325) { print "Brigadier General "; print "[img=/images/rank11.png]"; } if($ir['level'] == 350) { print "Major General "; print "[img=/images/rank12.png]"; } if($ir['level'] == 375) { print "Liuetenant General "; print "[img=/images/rank13.png]"; } if($ir['level'] == 400) { print "General "; print "[img=/images/rank14.png]"; } if($ir['level'] == 500) { print "General of the Army "; print "[img=/images/rank15.png]"; } if($ir['level'] == 750) { print "General Of the armies "; print "[img=/images/rank16.png]"; } if($ir['level'] == 1000) { print "General Of Wars "; print "[img=/images/rank17.png]"; }
  7. Re: [V2] SafeHouse I like the log out idea a lot better. and extermination's. I was thinking about a safe house as i went to this site. Thanks for the great mod
  8. Re: [V2] SafeHouse Please re-read. I said someone can go into the safehouse before they log off so people can not attack them.
  9. Re: [V2] SafeHouse the only down fall to this would be everyone that logs off can go to the safe house, this way no one can attack you. maybe an idea for everyone, write in the hour cron for it to take you out after an hour, or write a whole new one where you can set it to take you out in 2 hours or 3 what ever our choice would be
  10. Re: Advance mail box Is there a better mailbox out there that you would recommend
  11. Re: Advance mail box Does anyone read, did i say this is mine? NO. I also said i do not remember who made this and i was wondering if someone could add message archive.
  12. Re: Advance mail box its simply asking for someone that is good in PHP or the creator of the mod can add archives to the code.
  13. this is a code i found, i really like it.. sorry to who created this, i forgot your name. What i would like is there to be an option to save a message, or save all messages, of course save message would be when you are reading the message, and save all would be when view the list of messages. I hope someone can help me.   <?php include "globals.php"; ?><h2>Mailbox</h2><? if($ir[mailban]) { die("<font color=red><h1>ERROR</h1><hr /> You have been mail banned for " . $ir['mailban'] . " days. [b]Reason: " . $ir['mb_reason'] . "</font>[/b]"); } $_GET[iD] = abs((int) $_GET[iD]); switch($_GET[action]) { case 'inbox': mail_inbox(); break; case 'outbox': mail_outbox(); break; case 'compose': mail_compose(); break; case 'delete': mail_delete(); break; case 'send': mail_send(); break; case 'delall': mail_delall(); break; case 'delall2': mail_delall2(); break; case 'read': mail_read(); break; default: mail_inbox(); break; } function mail_inbox() { global $db,$ir,$c,$userid,$h; $q=$db->query("SELECT m.*,u.* FROM mail m LEFT JOIN users u ON m.mail_from=u.userid WHERE m.mail_to=$userid ORDER BY mail_time DESC LIMIT 25"); if(!mysql_num_rows($q)) { die("You have no mails. Go send some <a href=mailbox.php?action=compose><u>here</u></a>"); } ?> Only the last 25 messages sent to you are visible. [[url="mailbox.php?action=compose"] Compose [/url] | [url="mailbox.php?action=outbox"] Outbox [/url] | [url="mailbox.php?action=delall"] Delete All [/url] ] <table width=90% cellspacing="1"> <tr> <td class="h">From</td> <td class="h">Subject</td> <td class="h" width="10%">Status</td> <td class="h" width="10%">Delete</td> </tr> <? $i=0; $current_row = 0; while($r=$db->fetch_row($q)) { $current_row = 1 - $current_row; ?> <tr class="row<? echo $current_row; ?>"><td align="left" style="text-indent:5px"> <? $i++; if($r['userid']) { ?> [url="viewuser.php?u=<? echo $r[userid]; ?>"]<? echo $r[username]; ?>[/url] [<? echo $r[userid]; ?>] <? } else { ?> <font color="#990000">SYSTEM</font> <? } if($r['mail_read'] == 0) { $status="<font color=red>Unread</font>"; } else { $status="<font color=green>Read</font>"; } ?> </td> <td align="left" style="text-indent:10px;"> [b]Subject:[/b] <? if($r[mail_subject]) { ?> [url="mailbox.php?action=read&ID=<? echo $r[mail_id]; ?>"]<? echo $r[mail_subject]; ?>[/url] <? } else { ?> [url="mailbox.php?action=read&ID=<? echo $r[mail_id]; ?>"]No Subject[/url] <? } ?> </td><td align='center'> <? echo $status; ?> </td> <td align=center> [[url="mailbox.php?action=delete&ID=<? echo $r[mail_id]; ?>"]delete[/url]] </td></tr> <? } if($ir['new_mail'] > 0) { $db->query("UPDATE users SET new_mail=0 WHERE userid=$userid"); } ?> </table> <? } function mail_outbox() { global $db,$ir,$c,$userid,$h; $current_row = 0; ?> Only the last 25 messages you have sent are visible. <table width="90%" cellspacing="0"> <tr class="h"> <td width="20%">To</th> <td>Subject/Message</td> </tr> <? $q=$db->query("SELECT m.*,u.* FROM mail m LEFT JOIN users u ON m.mail_to=u.userid WHERE m.mail_from=$userid ORDER BY mail_time DESC LIMIT 25"); while($r=$db->fetch_row($q)) { $current_row = 1 - $current_row; $sent=date('F j, Y, g:i:s a',$r[mail_time]); ?> <tr class="row<? echo $current_row; ?>"> <td>[url="viewuser.php?u=<? echo $r[userid]; ?>"]<? echo $r[username]; ?>[/url] <? echo $r[userid]; ?>]</td> <td><? echo $r[mail_subject]; ?></td> </tr> <tr class="row<? echo $current_row; ?>"> <td>Sent at: <? echo $sent; ?> </td> <td><? echo $r[mail_text]; ?></td> </tr> <? } ?></table><? } function mail_compose() { global $db,$ir,$c,$userid,$h; ?> <form action="mailbox.php?action=send" method="post"> <table width=65% cellspacing="0" class="row1"><tr class="h"><td colspan="2">Compose Mail</td></tr><tr> <td>Users ID:</td><td><input class="textbox" type="text" name="userid" value="<? echo $_GET[iD]; ?>" /></td></tr><tr> <td>Subject:</td> <td><input class="textbox" type="text" name="subject" value="No Subject" /></td></tr><tr> <td>Message:</td> <td> <textarea class="textbox" rows=5 cols=40 name="message"></textarea> </td></tr><tr> <td colspan=2><input type="submit" class="textbox" value="Send" /></td></tr></table></form> <? if($_GET[iD] == 3 || $_GET[iD] == 1) { ?> <font color=brown> I might be a little busy, if you do not get a mail back with in a good reasonable time, (if i am online) it just means i have no time to talk, but i will get back to as soon as i can. </font> <? } if($_GET[iD] == 28 || $_GET[iD] == 38) { ?><font color=#9900CC> Assistants are here to help and will be happy to answer any questions. If you bad mouth staff you will get a harsher punishment. </font> <? } if($_GET[iD]) { ?> <table width="65%" border="0"> <tr class="h"> <td colspan="2">Your last 5 mails to/from this person:</td> </tr> <? $q=$db->query("SELECT m.*,u1.username as sender from mail m left join users u1 on m.mail_from=u1.userid WHERE (m.mail_from=$userid AND m.mail_to={$_GET[iD]}) OR (m.mail_to=$userid AND m.mail_from={$_GET[iD]}) ORDER BY m.mail_time DESC LIMIT 5",$c); $current_row = 0; while($r=$db->fetch_row($q)) { $current_row = 1 - $current_row; $sent=date('F j, Y, g:i:s a',$r[mail_time]); ?><tr class="row<? echo $current_row; ?>"> <td width=35%><? echo $sent; ?></td> <td>[b]<? echo $r[sender]; ?> wrote:[/b] <? echo $r[mail_text]; ?></td> </tr> <? } ?> </table> <? } } function mail_send() { global $db,$ir,$c,$userid,$h; $subj=str_replace(array("\n"),array(" "),strip_tags($_POST[subject])); $msg=str_replace(array("\n"),array(" "),strip_tags($_POST[message])); $from = array( ':)',';)',':o',':D',':S',':(',':@','torncity','register.php?REF','roguevampires','fuck','lostpower', ); $to = array( '[img=images/icons/happy.gif]', '[img=images/icons/wink.gif]', '[img=images/icons/shocked.gif]', '[img=images/icons/bigsmile.gif]', '[img=images/icons/confused.gif]', '[img=images/icons/sad.gif]', '[img=images/icons/angry.gif]', 'banburyco', 'banburyco.com', 'banburyco', '****', 'banburyco', ); $newmail = str_replace($from, $to, $msg); $to= (int) $_POST[userid]; $q=$db->query("SELECT userid FROM users WHERE userid='{$to}'"); if($db->num_rows($q)==0) { die("You cannot send mail to nonexistant users.<hr /> [url='mailbox.php']Back[/url]"); } $to= (int) $_POST[userid]; $db->query("INSERT INTO mail VALUES ('',0,$userid,$to,unix_timestamp(),'$subj','$newmail')"); $db->query("UPDATE users SET new_mail=1 WHERE userid={$to}"); print "Message sent.<hr /> [url='mailbox.php']Back[/url]"; } function mail_delete() { global $db,$ir,$c,$userid,$h; $db->query("DELETE FROM mail WHERE mail_id={$_GET[iD]} AND mail_to=$userid"); print "Message deleted.<hr />[url='mailbox.php']Back[/url]"; } function mail_delall() { global $ir,$c,$userid,$h; ?> This will delete [i]all[/i] the messages in your inbox. <hr /> [url="mailbox.php?action=delall2"]Yes! Do it[/url] [url="mailbox.php"]No, go back[/url] <? } function mail_delall2() { global $db,$ir,$c,$userid,$h; $db->query("DELETE FROM mail WHERE mail_to=$userid"); echo $db->affected_rows(); ?> mails in your inbox were deleted. <hr /> [url="mailbox.php"]Back[/url] <? } function mail_read() { global $db,$ir,$c,$userid,$h; $id= abs((int) $_GET[iD]); $q=$db->query("SELECT m.*,u.* FROM mail m LEFT JOIN users u ON m.mail_from=u.userid WHERE m.mail_id=$id LIMIT 1"); $r=$db->fetch_row($q); $sent=date('F j, Y, g:i:s a',$r['mail_time']); ?> <table width="75%" class="row1" cellspacing="0"> <tr class="h"> <td>From: <? if($r[userid]) { ?> [url="viewuser.php?u=<? echo $r[userid];?>"]<font color="#0000FF"><? echo $r[username]; ?></font>[/url] <? echo '[' . $r[userid] . ']'; } else { ?><font color="#990000">SYSTEM</font><? } ?> </td></tr><tr style='border-bottom: thin solid #666666;'><td colspan='2' align='center'> [[url="mailbox.php?action=compose&ID=<? echo $r[userid]; ?>"]Reply[/url]] [[url="mailbox.php?action=delete&ID=<? echo $r[mail_id]; ?>"]Delete[/url]] [[url="preport.php?ID=<? echo $r[userid]; ?>&report=Fradulent mail:<? echo $fm; ?>"]Report[/url]] </td></tr><tr><td colapan='2' style='border-top: 1px solid #CCCCCC;'> [b]Mail Text:[/b] <? echo $r[mail_text]; ?> </td></tr></table> <? if($r[mail_read] == 0) { $db->query("UPDATE mail SET mail_read=1 WHERE mail_to=$userid AND mail_id=$id LIMIT 1"); $db->query("UPDATE users SET new_mail=new_mail-1 WHERE userid=$userid"); } ?></table><? } $h->endpage(); ?>
×
×
  • Create New...