How to make that?
#4

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


Messages In This Thread
How to make that? - by Glossy42O - 28.10.2014, 04:48
Re: How to make that? - by Sew_Sumi - 28.10.2014, 04:56
Respuesta: How to make that? - by !R1Ch@rD! - 28.10.2014, 05:26
Re: How to make that? - by Threshold - 28.10.2014, 06:54
Re: How to make that? - by kevin_1991 - 28.10.2014, 14:42
Re: How to make that? - by Glossy42O - 28.10.2014, 14:45
Re: How to make that? - by Threshold - 28.10.2014, 14:53
Re: How to make that? - by Glossy42O - 28.10.2014, 15:02
Re: How to make that? - by Threshold - 28.10.2014, 15:07
Re: How to make that? - by Glossy42O - 28.10.2014, 15:10

Forum Jump:


Users browsing this thread: 1 Guest(s)