07.08.2011, 20:48
I've had this before, but I can't seem to find it now? :S
I have this on when a player connects for an admin to see:
"%s has joined the server.", I would like it with:
"%s has joined the server. IP: %(what here.)", Ipgetting thing here);
But I can't seem to get it, I tried GetPlayerIp, but it just shows
How do I get it to SHOW the IP of a player?
Thanks.
I have this on when a player connects for an admin to see:
"%s has joined the server.", I would like it with:
"%s has joined the server. IP: %(what here.)", Ipgetting thing here);
But I can't seem to get it, I tried GetPlayerIp, but it just shows
pawn Код:
public OnPlayerConnect(playerid)
{
new plrIP[16];
GetPlayerIp(playerid, plrIP, sizeof(plrIP));
if(!strcmp(plrIP, "127.0.0.1"))
SendClientMessage(playerid, 0xFFFFFFFF, "Welcome to your server, master :)");
return 1;
}
Thanks.