How to add Texxt? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How to add Texxt? (
/showthread.php?tid=335400)
How to add Texxt? -
Laure - 18.04.2012
How do i write add text to display the players as they Connected.Joining The Game?
Re: How to add Texxt? -
InfinityGamerX - 18.04.2012
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
Re: How to add Texxt? -
ViniBorn - 18.04.2012
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;
}
Re: How to add Texxt? -
iggy1 - 18.04.2012
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.