connect msg need help
#1

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
Reply
#2

pawn Код:
new pName[MAX_PLAYER_NAME], string[128];
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "%s [ID:%d] {00FF40}has joined the server. [Connected]", pName, playerid);
SendClientMessageToAll(COLOR_GREY, string);
Reply
#3

Quote:
Originally Posted by SickAttack
Посмотреть сообщение
pawn Код:
new pName[MAX_PLAYER_NAME], string[128];
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "%s [ID:%d] {00FF40}has joined the server. [Connected]", pName, playerid);
SendClientMessageToAll(COLOR_GREY, string);
but i think he needs that ip think try looking over this one have a look at this one

CLICK HERE
Reply
#4

I also need country name ...is their is any plugin needed
Reply
#5

https://sampforum.blast.hk/showthread.php?tid=436115
Also gives code.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)