How to make that?
#1

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(playeridname,sizeof(name));
     
format(stringsizeof(string), "{FF0000}[SERVER]{FFFFFF}: {CCCCCC}%s {FFFFFF}has joined LSCNR",name);
     
SendClientMessageToAll(0xFFFFFFFstring);
     
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"); 
Reply
#2

For statement to 15, SendClientMessage blank lines by just a space.
Reply
#3

teste it on my server and it worked without disappearing
Reply
#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
#5

Add the command MoTD

you can edit the text ingame yourself.
Reply
#6

Maked my own.

Done.
Reply
#7

Made your own what?
Reply
#8

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

Yes, 3 people just wasted their brain power on you for nothing.
Reply
#10

Thanks to all of you. Except threshould for being childish and insulting me in PM.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)