Posts: 19
Threads: 5
Joined: Jan 2011
Reputation:
0
Ok, so when someone logs in, I want to send a message to everyone saying that person logged in. Do I use SendClientMessageToAll? How do I do it?
By the way.. I'm making my first GM, so don't call me a noob : D
Posts: 2,863
Threads: 99
Joined: Nov 2009
Reputation:
0
SendClientMessageToAll(color, message[]);
EDIT:
Too late
Posts: 1,495
Threads: 131
Joined: Jul 2009
Reputation:
0
in your case at OnPlayerConnect, as I doubt you already have a login system
Posts: 244
Threads: 2
Joined: Jul 2010
Reputation:
0
Put it under OnPlayerConnect then try it out, it should work fine.
Also, you can use a similar code for OnPlayerDisconnect, just edit the string.
If you want to say when someone has LOGGED IN, as in, they have entered their password, put the same code, but in the place where the other things happen when a player logs in (in other words, depends on the type of login system you are using and such)