04.05.2010, 02:56
How do i make it say there name, When people join the server?
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);
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);
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); |
new
arr[64];
GetPlayerName(playerid, arr, MAX_PLAYER_NAME);
format(arr, sizeof(arr), "Player %s has joined the server.", arr);
SendClientMessageToAll(0xFFFFFFFF, arr);