How to make that? -
Glossy42O - 28.10.2014
Hello first of all i have when player connects it says Stuun has joined LSCNR
For all but i want for ME not for all to make this disappear but i can press page up to see this but when it disappears
I want it to show (Welcome to LSCNR Cops and robbers and under it)
Under it this(------------------------------------------------------)
Then under that this
(Please read {FF0000}(/rules,/help,/commands) {ffffff} before you play)
I did all that but how can i make the has joined disappear ?!?
PHP код:
new name[MAX_PLAYER_NAME], string[589+MAX_PLAYER_NAME];
GetPlayerName(playerid, name,sizeof(name));
format(string, sizeof(string), "{FF0000}[SERVER]{FFFFFF}: {CCCCCC}%s {FFFFFF}has joined LSCNR",name);
SendClientMessageToAll(0xFFFFFFF, string);
SendClientMessage(playerid, -1, "Welcome to LSCNR {0066CC} cops {FFFFFF} and {FF0000} robbers");
SendClientMessage(playerid, -1, "-------------------------------------------------------------");
SendClientMessage(playerid, -1, "Please read {FF0000}(/rules,/help,/commands) {ffffff} before you play");
Re: How to make that? -
Sew_Sumi - 28.10.2014
For statement to 15, SendClientMessage blank lines by just a space.
Respuesta: How to make that? -
!R1Ch@rD! - 28.10.2014
teste it on my server and it worked without disappearing
Re: How to make that? -
Threshold - 28.10.2014
You have two alternatives here.
Send the message to everyone EXCEPT the player joining:
pawn Код:
new name[MAX_PLAYER_NAME], string[85];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "{FF0000}[SERVER]{FFFFFF}: {CCCCCC}%s {FFFFFF}has joined LSCNR", name);
for(new i = 0; i < MAX_PLAYERS; i++) //I would recommend using foreach instead.
{
if(!IsPlayerConnected(i)) continue; //Remove this if you use foreach.
if(i == playerid) continue;
SendClientMessage(i, 0xFFFFFFF, string);
}
SendClientMessage(playerid, -1, "Welcome to LSCNR {0066CC}cops {FFFFFF}and {FF0000}robbers");
SendClientMessage(playerid, -1, "-------------------------------------------------------------");
SendClientMessage(playerid, -1, "Please read {FF0000}(/rules, /help, /commands) {FFFFFF}before you play");
or
Send extra lines to the player to 'hide' the join message:
pawn Код:
new name[MAX_PLAYER_NAME], string[85];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "{FF0000}[SERVER]{FFFFFF}: {CCCCCC}%s {FFFFFF}has joined LSCNR", name);
SendClientMessageToAll(0xFFFFFFFF, string);
for(new i = 0; i < 100; i++) SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, "Welcome to LSCNR {0066CC}cops {FFFFFF}and {FF0000}robbers");
SendClientMessage(playerid, -1, "-------------------------------------------------------------");
SendClientMessage(playerid, -1, "Please read {FF0000}(/rules, /help, /commands) {FFFFFF}before you play");
Note that it is actually more efficient to add 100 lines of 'SendClientMessage' rather than using it in a loop. But who wants to do that, right?
Those are your two options, choose your preference.
Re: How to make that? -
kevin_1991 - 28.10.2014
Add the command MoTD
you can edit the text ingame yourself.
Re: How to make that? -
Glossy42O - 28.10.2014
Maked my own.
Done.
Re: How to make that? -
Threshold - 28.10.2014
Made your own what?
Re: How to make that? -
Glossy42O - 28.10.2014
Please don't ever post a comment on my threads.
Cause you just pm'ed me and you told me "Fuck you" I mean seriously you are childish.
So i didn't say "Thanks for helping tho" does it mean you need to say "Fuck you" i mean really?
Grow up.
Re: How to make that? -
Threshold - 28.10.2014
Yes, 3 people just wasted their brain power on you for nothing.
Re: How to make that? -
Glossy42O - 28.10.2014
Thanks to all of you. Except threshould for being childish and insulting me in PM.