johnnydean1 wrote:
Mods remove that spam please (The html tags).
Thanks for letting us know, but please use the report button next time - it helps us find stuff quicker
Offline
I attempted to... but it wouldnt let me at the time.
Offline
I had already reported it.
Offline
Magnie wrote:
stickdude123 wrote:
heres an idea!
![]()
there is one buttion in a new category,the buttions called create new user! but under the buttion before you make the user there are a couple blocks
blocks before making user:
create new user named [some guy]
blocks when making new user:
ban [user]
monitor [user] {MONITOR NOT MODERATOR}
make moderator[some user]
and thos might helpCreating blocks for a single project isn't a very good idea, basically useless, as this is going to be done in PHP, all users and stuff will be done on a PHP page, so when you load a web page "scratchonlinephp.tld/game/createuser.php?username=Magnie&password=mypassword". The page would create the user:
Code:
<?php $con = mysql_connect("localhost","account","password"); if (!$con) { die('Could not connect: ' . mysql_error()); } else { $page = "Connection Successful<BR><BR>"; } $un = $_GET['username']; $pw = $_GET['password']; $pw = md5($pw); $result = mysql_query("SELECT * FROM table.accounts", $con); $num_rows = mysql_num_rows($result); if ($un) { $add_user = mysql_query("INSERT INTO table.accounts (`id`,`username`,`password`) VALUES ('$num_rows', '$un', '$pw')"); echo $un." ( with ID#".$num_rows." ) has been added."; } ?>Adding a few other things you can add Membership groups, like Owner, Admin, Moderator, Banned, Member.
There isn't any need to make a block as far as I'm concerned.
D:
Offline
Wolfie1996 wrote:
johnnydean1 wrote:
Mods remove that spam please (The html tags).
Thanks for letting us know, but please use the report button next time - it helps us find stuff quicker
![]()
i use report buttion
please dont report
Offline
Necrobump
It was on page ten, far too low down.
Offline
How can i help?
Offline
johnnydean1 wrote:
rdococ wrote:
I would have these blocks:
'Register'
Requests player to create an account. An command block.
JD1:
All this would need be would be 2 ask blocks (user and pass) and then a PHP script that writes them to a database
'login to server %server'
Requets player to login. An command block.
JD1:
All this would need to be is a block to acess a PHP script to write the IP to a database
'online players on server %server'
Reports a list of online players on selected server. An list reporter - shared.
JD1:
Just a simple webpage reporter.
'play online game %onlineGamesDownloaded'
Finds other players to play with. Then it plays selected online game. An command block.
JD1:
This may not be easy but can be done with other blocks. E.G these blocks make the game
'rank'
Reports rank on winning games. An variable reporter.
JD1:
Easy reads of a webpage.
Basic PHP to change a variable in a database when ranking up.
'chat'
Reports chat history, able to add text to list. An list reporter - shared.
JD1:
Reports a database used for chatting. Same as rank for code.
'status'
Reports status. You can change it to online, brb, idle, busy, away or offline. An variable reporter.
JD1:
Same as chat
'log off'
Logs player off the server.
JD1:
Simple PHP to remove IP from database
All go in a new category called 'online' Color = grey
There is a problem with my enter key. (not anymore)
Err-
Windows found a virus. Virus name: JD1
Reason: Aggressively "correcting" suggestions
Delete?
[Yes]
Offline
How can I help>
Offline
Well I got bored of waiting so had a go myself. See here.
Offline
talking about PHP trust me mate Javascript is a very b8r option for it rather then scratch .!, cuz i am making a JAVAscript Based MMO and i really find Javascript a faster way to that using xmlhttprequest or JSON based datasharing to downlink data and forms to send variables
Talking about php servers ..
110mb.com provides epic hosting for free ** Though u might have to fill a form now
Last edited by fanofcena (2011-04-12 10:36:09)
Offline
Hi mathwizz!
Offline