Jump to content
MakeWebGames

Strats

Members
  • Posts

    649
  • Joined

  • Last visited

    Never

Everything posted by Strats

  1. Re: Mafia Text Based Game? I don't think the codes would be free. I have seen some being posted about for free. But to be honest if you should pay for them I will not help someone get them for free.   You could change the normal Mccodes into Mafia style, But not to be rude Everyone has a game like that. They get a bit boring ....
  2. Re: [mccode v2] View User With some help from Lithium I think I have made this mod a little better. Adding some more to the profile.   <?php include "globals.php"; $_GET['u'] = abs((int) $_GET['u']); if(!$_GET['u']) { print "Invalid use of file"; } else { $q=$db->query("SELECT u.*,us.*,c.*,h.*,g.*,f.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid LEFT JOIN cities c ON u.location=c.cityid LEFT JOIN houses h ON u.maxwill=h.hWILL LEFT JOIN gangs g ON g.gangID=u.gang LEFT JOIN fedjail f ON f.fed_userid=u.userid WHERE u.userid={$_GET['u']}"); if($db->num_rows($q) == 0) { print "Sorry, we could not find a user with that ID, check your source."; } else { $r=$db->fetch_row($q); if($r['user_level'] == 1) { $userl="Member"; } else if($r['user_level'] == 2) { $userl="Admin"; } else if ($r['user_level'] == 3) { $userl="Secretary"; } else if($r['user_level'] == 0) { $userl="NPC"; } else {$userl="Assistant"; } $lon=($r['laston'] > 0) ?date('F j, Y g:i:s a',$r['laston']) : "Never"; $sup=date('F j, Y g:i:s a',$r['signedup']); $ts=$r['strength']+$r['agility']+$r['guard']+$r['labour']+$r['IQ']; $d=""; if($r['laston'] > 0) { $la=time()-$r['laston']; $unit="seconds"; if($la >= 60) { $la=(int) ($la/60); $unit="minutes"; } if($la >= 60) { $la=(int) ($la/60); $unit="hours"; if($la >= 24) { $la=(int) ($la/24); $unit="days"; } } $str="$la $unit ago"; } else { $str="--"; } if($r['last_login'] > 0) { $ll=time()-$r['last_login']; $unit2="seconds"; if($ll >= 60) { $ll=(int) ($ll/60); $unit2="minutes"; } if($ll >= 60) { $ll=(int) ($ll/60); $unit2="hours"; if($ll >= 24) { $ll=(int) ($ll/24); $unit2="days"; } } $str2="$ll $unit2 ago"; } else { $str2="--"; } if($r['donatordays']) { $r['username'] = "<font color=red>{$r['username']}</font>";$d="[img=donator.gif]"; } if ($r['married']) { $query = "SELECT `username`, `userid` FROM `users` WHERE `userid` = '{$r['married']}'"; $par = mysql_fetch_array(mysql_query($query)); $partner = "[url='viewuser.php?u={$par[']<font color='green'>{$par['username']}</font>[/url]"; } if($r['laston'] >= time()-15*60) { $on="<font color=green>[b]Online[/b]</font>"; } else { $on="<font color=red>[b]Offline[/b]</font>"; } print "<h3>Profile for {$r['username']}</h3> <TABLE STYLE='width:476px;height:280px;border:0px 0px 0px 1px;border-style:solid;border-color:#DBDBDB;' BORDER='0' CELLPADDING='0' CELLSPACING='0'> <TR STYLE='background-color:#000000'> <TD STYLE='width:50px;padding:0px 2px;text-align:right;'> </TD> </TR> <TR> <TD COLSPAN='2' STYLE='background-color:#000066 ;padding:4px 5px 4px 5px;'> <TABLE STYLE='width:100%;height:247px;' BORDER='0'> <TD ROWSPAN='6' STYLE='width:80px;align:right;'>"; $x = ($r['display_pic']) ? $r['display_pic'] : "images/banners/Dpic.jpg"; print " [img={$x}]</A> <CENTER>{$r['username']}</CENTER> </TD> </TR> <TR VALIGN='TOP'> <TR VALIGN='TOP'> <TD>Name : </TD> <TD>[b]{$r['username']} [{$r['userid']}] $d[/b]</TD> </TR> <TR VALIGN='TOP'> <TD>Duties : </TD> <TD>[b]{$r['duties']}[/b]</TD> </TR> <TR VALIGN='TOP'> <TD>Userlevel : </TD> <TD>[b]$userl[/b]</TD> </TR> <TR VALIGN='TOP'> <TD>Level : </TD> <TD>[b]{$r['level']}[/b]</TD> </TR> <TR VALIGN='TOP'> <TD>Online : </TD> <TD>[b]$on[/b]</TD> </TR> <TR VALIGN='TOP'> <TD>Last Active:</TD> <TD>[b]$str[/b]</TD> </TR> <TR VALIGN='TOP'> <TD>Property : </TD> <TD>[b]{$r['hNAME']}[/b]</TD> </TR> <TR VALIGN='TOP'> <TD>Faction : </TD>"; if($r['gang']) { print "<TD>[b][url='gangs.php?action=view&ID={$r[']{$r['gangNAME']}[/url][/b]</TD>"; } else { print "<TD>[b]N/A[/b]</TD>"; } PRINT " </TR> <TR VALIGN='TOP'> <TD>Location : </TD> <TD>[b]{$r['cityname']} [[url='monorail.php?to={$r[']Travel[/url]][/b]</TD> </TR> <TR VALIGN='TOP'> <TD>Days Old : </TD> <TD>[b]{$r['daysold']}[/b]</TD> </TR> <TR VALIGN='TOP'> <TD>Gender : </TD> <TD>[b]{$r['gender']}[/b]</TD> </TR> <TR VALIGN='TOP'> <TD>Married : </TD> <TD>[b]$partner[/b]</TD> </TR> <TR VALIGN='TOP'> <TD>Health : </TD> <TD>[b]{$r['hp']} / {$r['maxhp']}[/b]</TD> </TR> <TR VALIGN='TOP'> <TD>Hospital Time : </TD> <TD>[b]{$r['hospital']}[/b]</TD> </TR> <TR VALIGN='TOP'> <TD>Jail Time : </TD> <TD>[b]{$r['jail']}[/b]</TD> </TR> <TR><TD COLSPAN='3' STYLE='background-color:#DBDBDB;height:2px;'></TD></TR> <TR VALIGN='TOP'> <TD>Violent Actions</TD> <TD>[b] [url='vactions.php?userid={$r[']View Actions[/url] [/b]</TD> </TR> <TR VALIGN='TOP'> <TD>Contact Actions</TD> <TD>[b][url='cactions.php?userid={$r[']View Actions[/url]</TD> </TR>"; if($ir['user_level'] == 2 || $ir['user_level'] == 3 || $ir['user_level'] == 5) { print "<TR VALIGN='TOP'> <TD>Staff Actions </TD> <TD>[b] [url='sactions.php?userid={$r[']View Actions[/url] [/b]</TD> </TR>"; } print "</TABLE>"; if($ir['user_level'] == 2 || $ir['user_level'] == 3 || $ir['user_level'] == 5) { $r['lastiph']=@gethostbyaddr($r['lastip']); $r['lastiph']=checkblank($r['lastiph']); $r['lastip_loginh']=@gethostbyaddr($r['lastip_login']); $r['lastip_loginh']=checkblank($r['lastip_loginh']); $r['lastip_signuph']=@gethostbyaddr($r['lastip_signup']); $r['lastip_signuph']=checkblank($r['lastip_signuph']); print "<h3>Internet Info</h3><table width='100%' border='0' cellspacing='1' class='table'> <tr><td></td><td class='h'>IP</td><td class='h'>Hostname</td></tr> <tr><td class='h'>Last Hit</td><td>$r[lastip]</td><td>$r[lastiph]</td></tr> <tr><td class='h'>Last Login</td><td>$r[lastip_login]</td><td>$r[lastip_loginh]</td></tr> <tr><td class='h'>Signup</td><td>$r[lastip_signup]</td><td>$r[lastip_signuph]</td></tr></table>"; print "<form action='staffnotes.php' method='post'> Staff Notes: <textarea rows=7 cols=40 name='staffnotes'>{$r['staffnotes']}</textarea> <input type='hidden' name='ID' value='{$_GET['u']}' /> <input type='submit' value='Change' /></form>"; } else { print " "; } print "</tr></table>"; } } function checkblank($in) { if(!$in) { return "N/A"; } return $in; } $h->endpage(); ?>   I also made a separate staff page sactions.php   <?php include "globals.php"; if ($_GET['userid']) { $r['userid'] = abs((int) $_GET['userid']); } else { die("Invalid use of file!"); } if($ir['user_level'] == 2 || $ir['user_level'] == 3 || $ir['user_level'] == 5) { print " [[url='jailuser.php?userid={$r[']Jail[/url]] [[url='mailban.php?userid={$r[']MailBan[/url]] [[url='view_events.php?ID={$r[']View Events[/url]] "; } $h->endpage(); ?>   I am not taking any credit or saying this is mine, Just incase someone does not read back. I am just trying to improve the mod.   Here is a the profile default pic too (which is taken from another free mod) http://wrestling-wars.com/images/banners/Dpic.jpg
  3. Re: [McCodes v2] ($3) Database driven voting script with incentive and security   Is it ioncubed ?... if not just remove the code from it lol   Lol I should
  4. Re: [McCodes v2] ($3) Database driven voting script with incentive and security Hmmm none of my voting works. Hopefully he will be able to sort out my license for it Nope :-( License Error: Your license is disabled. Please contact your software vendor for support hi your sript was refunded, that is why.   I had never asked for a refund and not received one.
  5. Re: [V2]Basic Assassination.   I have - Cause I ask lots of questions lol I don't post mods, I just have a crack at making some more tidy
  6. Re: [McCodes v2] ($3) Database driven voting script with incentive and security License Error: Your license is disabled. Please contact your software vendor for support.
  7. Re: [MCODES V2] Userids Probs   Delete the game? lol   :lol:
  8. Re: [mccode v2] Search.php in one | Optimized Thanks! :-)
  9. Re: I accidently deleted my database and it wont read my backup?   Oh okies he should be able to upload all the files piss easy
  10. Re: I need help Please read asap       :| I gave you that game to mess about with. You wont get more help from me now you took me of the game.
  11. Re: I accidently deleted my database and it wont read my backup? Looks like a scammer. If someone donates the money would not go straight on the server would it? You should already of paid for that.
  12. Re: (MCCODES) V2 Layout For Sale $100 is starting bid If you make one for my game I will pay $50!
  13. Re: [V2]Basic Assassination. Just asking as you have lots of -
  14. Re: [V2]Basic Assassination. Is this yours?
  15. I have been working on my user profile and done quiet well I think anyway lol But I can't seem to hide something from non staff. I have this code :   <TD>Violent Actions : </TD> <TD>[b] [url='vactions.php?userid={$r[']View Actions[/url] [/b]</TD> <TD>Contact Actions : </TD> <TD>[b][url='cactions.php?userid={$r[']View Actions[/url]</TD> </TR> <TR VALIGN='TOP'> <TD>Staff Actions : </TD> <TD>[b] [url='sactions.php?userid={$r[']View Actions[/url] [/b]</TD> </TR> </TABLE>";   It brings up pages separate pages for attack, mail ect And also a separate staff page. I thought that this: if($ir['user_level'] == 2 || $ir['user_level'] == 3 || $ir['user_level'] == 5) would hide the staff page from non staff but it's not working for me or probably not being put in the right place. Can someone put it in right for me please, it's getting on my nerves lol I only want this bit hidden :   <TD>Staff Actions : </TD> <TD>[b] [url='sactions.php?userid={$r[']View Actions[/url] [/b]</TD> </TR> </TABLE>";
  16. Re: Hacked :( Jameoo has been back to my game lots lol so I am guessing it's more secure as he hasn't killed it again. But I am so carefull now making sure I back it up regularly
  17. Re: [mccode] Steal Crystals when you Mug someone... Yup infact I would probably put everyone's crystals in their banks to save any trouble lol Stop anyone getting upset
  18. Re: [mccode] Steal Crystals when you Mug someone... I have a crystal bank, If I Do chose to make it so people can mug crystals I would give them plenty of time for them to use the bank lol. I like the idea of mugging crystals it's mean :lol:
  19. Re: [mccode] Steal Crystals when you Mug someone... Lol I could try. It would take me all night when I bet it would take someone else five mins lol But I am gonna have a try :-D I have edited 2 whole codes by myself now :wink: lmao
  20. Re: [mccode] Steal Crystals when you Mug someone... Has anyone done this for v2? If not... maybe some could hint hint lol Would be cool if you could have attackleave attackhospitalize attackmug - money attackmcry - crystals.. Or make attackmug - mug crystals and money
  21. Re: Hacked :( Agreeded
  22. Re: [mccodes V2] Drag n Drop User Menu + Staff Menus [WORKING COPY] Can the javascript.zip be posted here so I can try this out?
  23. Re: Easy Help Tutorial With Admin Feature QUERY ERROR: Unknown column 'helptext' in 'field list' Query was UPDATE helppage SET pagetitle='Game Tutorial', helptext='t' WHERE pageid='1'   Something is not right
  24. Re: Easy Help Tutorial With Admin Feature   Glad you spotted it Bad girl :P
  25. I am trying to re do one I found on here :-) I have done well so far but I am having trouble putting a default picture up for users who have not picked one. I tried to use a bit from another profile :   alt='User Display Pic' title='User Display Pic' /> </center>"; } else { print "<center>[img=http://i38.tinypic.com/29bh8d5.jpg]</center> "; } print "<table width=85% cellpadding=3 class='table' border='0'><div align=center>   But it does not work for me or maybe I did not place it in the right place. Can someone help me out please. I will post up the bit I want to change.   <TD ROWSPAN='6' STYLE='width:80px;align:right;'> [img={$r[]</A> <CENTER>{$r['username']}</CENTER> </TD>     Any help would be great
×
×
  • Create New...