[Help]When People Join the server!
#1

How do i make it say there name, When people join the server?
Reply
#2

Код:
new sendername[MAX_PLAYER_NAME];
new string[256];
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "Welcome to the server %s", sendername);
SendClientMessage(playerid, COLOR_HERE, string);
Reply
#3

If you mean a global message, so everyone sees it, then use:

pawn Код:
new name[MAX_PLAYER_NAME], message[128];
GetPlayerName(playerid, name, sizeof(name));
format(message, sizeof(message), "%s has joined the server", name);
SendClientMessageToAll(COLOR_HERE, message);
Reply
#4

Quote:
Originally Posted by Antonio (dominationrp.netii.net)
Код:
new sendername[MAX_PLAYER_NAME];
new string[256];
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "Welcome to the server %s", sendername);
SendClientMessage(playerid, COLOR_HERE, string);
Very inefficient indeed.

pawn Код:
new
    arr[64];
GetPlayerName(playerid, arr, MAX_PLAYER_NAME);
format(arr, sizeof(arr), "Player %s has joined the server.", arr);
SendClientMessageToAll(0xFFFFFFFF, arr);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)