Need help

Need help

Postby tinyCreeper » 16 Aug 2013, 02:57

Is there an event for a player first joining a server?
tinyCreeper
 
Posts: 48
Joined: 05 Jul 2013, 12:21

Re: Need help

Postby Conor » 16 Aug 2013, 04:40

You must take advantage of an event which is called when a player joins the server.

See this thread created by Dzienny which explains it in greater detail: viewtopic.php?f=30&t=1988
Conor (Conanza121)
User avatar
Conor
Coder
 
Posts: 390
Joined: 10 Oct 2012, 21:36
Location: @21Conor

Re: Need help

Postby tinyCreeper » 16 Aug 2013, 06:54

Isn't that for only when a player joins in general though? I mean I need one for when a player joins the server for the first time.
tinyCreeper
 
Posts: 48
Joined: 05 Jul 2013, 12:21

Re: Need help

Postby ismellike » 16 Aug 2013, 18:02

You can put this inside of the event

Code: Select all
if(p.totalLogins==1)
{
  //---your code
}
What a beast...
User avatar
ismellike
Coder
 
Posts: 731
Joined: 31 Oct 2012, 04:04
Location: Kansas


Return to Help in Coding

Who is online

Users browsing this forum: No registered users and 5 guests

cron