SA-MP Forums Archive
public on player connect+rep - 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: public on player connect+rep (/showthread.php?tid=528833)



public on player connect+rep - PrinXe - 30.07.2014

This is my code:-

public OnPlayerConnect(playerid)
{
removebuilding(playerid);
marker[playerid] = 1;
playertele[playerid] = 0;
playerpm[playerid] = 1;
boost[playerid] = 1;
afk[playerid] = 0;
lastpm[playerid] = 0;
reset[playerid] = 0;
SendClientMessage(playerid, white, "Welcome to [SDC] Build 01");
SendClientMessage(playerid, white,"Type /cmds to view the command list");
new mess[256],pmess[256],IP[256];
GetPlayerIp(playerid,IP,sizeof(IP));
format(mess,sizeof(mess),"%s has joined the server. Country: %s | IP Address: %s",GetPName(playerid),GetPlayerCountryName(player id),IP);
printf(mess);
connectionlog(mess);
MessageToAdmins(blue,mess);
format(pmess,sizeof(pmess),"%s has joined the server from %s.",GetPName(playerid),GetPlayerCountryName(playe rid));



Outputlayer has joined the server[Country] :-its showing this in yellow colour +its not showing his ip

i want like this can anyone help me?

Player[0]{green colour} has joined the server.[Country][in green colour] then [IP][in red colour]

+tell me the things that i have to defineed really confused!