public on player connect+rep
#1

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!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)