Jump to content
MakeWebGames

Recommended Posts

Posted

Hello I'm looking for a welcome msg mod so when a new user joins they will get a msg from Id 1 and it would be somthing like this

ex:

Hello, welcome to GameNameHere. Im the games coder and new player helper, so if you need help with anything, just ask me. You can start training and leveling up by doing crimes and training at the enhancement centers on your left side menu. Many new players have found this EXTREMELY helpful when they want to know what different things are and how to play and get set up and settle in.
and then staff would get an event with the new persons name and the Ip they signd up with ex: Mr Evil Chaos Joined from IPHere

 

Thanks guys

Posted

Add a field to the users table called `justjoined` INT 11 DEFAILT 0

 

add this to loggedin.php

 

if ($ir['justjoined'] == 0)
{
echo "
Hello, welcome to GameNameHere. Im the games coder and new player helper,
so if you need help with anything, just ask me. You can start training and 
leveling up by doing crimes and training at the enhancement centers on your
left side menu. Many new players have found this EXTREMELY helpful when they
want to know what different things are and how to play and get set up and settle
in. 
";
mysql_query("UPDATE `users` SET `justjoined` = 1 WHERE (`userid` = $userid)");
event_add(1, "{$ir['username']} just joined with IP Address: {$ir['lastip']}");
}

 

Not tested, but should work ok :thumbsup:

Posted

okay will test it but I want the even to be sent to Admins user lvl 2 and sec user lvl 3 if it is possible xD

and what ID would be sending the msg I would prefer Id to have it sent from his ID? but I will test this code out none the less Thanks :rolleyes:

Posted
Add a field to the users table called `justjoined` INT 11 DEFAILT 0

 

add this to loggedin.php

 

if ($ir['justjoined'] == 0)
{
echo "
Hello, welcome to GameNameHere. Im the games coder and new player helper,
so if you need help with anything, just ask me. You can start training and 
leveling up by doing crimes and training at the enhancement centers on your
left side menu. Many new players have found this EXTREMELY helpful when they
want to know what different things are and how to play and get set up and settle
in. 
";
mysql_query("UPDATE `users` SET `justjoined` = 1 WHERE (`userid` = $userid)");
send_event(1, "{$ir['username']} just joined with IP Address: {$ir['lastip']}");
}

 

Not tested, but should work ok :thumbsup:

YAY Another way to clog up the terrible users table. How about a simple if, check if the user has logged in. (Via last login column)

Posted

If he wants a mail sent to the user, and an event sent to id 1 then going with days old is a bad idea. If they login twice in a day - or more as some people do - they will get a mail each time.

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