19.06.2014, 05:46
pwn code
public OnPlayerConnect(playerid)
{
new pName[MAX_PLAYER_NAME], string[39 + MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "%s [ID:%d] has joined the server. [Connected]", pName, playerid);
SendClientMessageToAll(COLOR_GREY, string);
++++++++This showing the msg player(0) has joined the server in grey colour but i want the output must be like this:
Player(0) [in green colour] has joined the server.(country name)[in red colour]
can anyone tell me the pwn code for this
public OnPlayerConnect(playerid)
{
new pName[MAX_PLAYER_NAME], string[39 + MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "%s [ID:%d] has joined the server. [Connected]", pName, playerid);
SendClientMessageToAll(COLOR_GREY, string);
++++++++This showing the msg player(0) has joined the server in grey colour but i want the output must be like this:
Player(0) [in green colour] has joined the server.(country name)[in red colour]
can anyone tell me the pwn code for this