How to add Texxt?
#1

How do i write add text to display the players as they Connected.Joining The Game?
Reply
#2

pawn Код:
public OnPlayerConnect(playerid)
{
    new IP[256],MainString[500];
    new PlayerName[MAX_PLAYER_NAME];
    GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
    GetPlayerIp(playerid,IP,sizeof(IP));
    format(MainString, 500, "[JOIN]: %s | {FF00EA}[ID]: %d | {FFFFFF}[IP]: %s", PlayerName,playerid,IP);
    SendClientMessageToAll(0xFF0000AA, MainString);
    return 1;
}
+1 reputation
Reply
#3

Quote:
Originally Posted by InfinityGamerX
Посмотреть сообщение
pawn Код:
public OnPlayerConnect(playerid)
{
    new IP[256],MainString[500];
    new PlayerName[MAX_PLAYER_NAME];
    GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
    GetPlayerIp(playerid,IP,sizeof(IP));
    format(MainString, 500, "[JOIN]: %s | {FF00EA}[ID]: %d | {FFFFFF}[IP]: %s", PlayerName,playerid,IP);
    SendClientMessageToAll(0xFF0000AA, MainString);
    return 1;
}
Doing this you are wasting cells

pawn Код:
public OnPlayerConnect(playerid)
{
    new IP[16],VBString[76],VBName[MAX_PLAYER_NAME];
    GetPlayerName(playerid,VBName,MAX_PLAYER_NAME);
    GetPlayerIp(playerid,IP,sizeof(IP));
    format(VBString, 76, "[JOIN]: %s | {FF00EA}[ID]: %d | {FFFFFF}[IP]: %s", VBName,playerid,IP);
    SendClientMessageToAll(0xFF0000AA, VBString);
    return 1;
}
Reply
#4

Quote:
Originally Posted by InfinityGamerX
Посмотреть сообщение
pawn Код:
public OnPlayerConnect(playerid)
{
    new IP[256],MainString[500];
    new PlayerName[MAX_PLAYER_NAME];
    GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
    GetPlayerIp(playerid,IP,sizeof(IP));
    format(MainString, 500, "[JOIN]: %s | {FF00EA}[ID]: %d | {FFFFFF}[IP]: %s", PlayerName,playerid,IP);
    SendClientMessageToAll(0xFF0000AA, MainString);
    return 1;
}
+1 reputation
WOW I guess that's why your banned.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)