IP of a player.
#4

So, if I want it to be on this:

pawn Код:
SendClientMessage(playerid, WHITE, "%s has joined the server. IP: %(what here.)");
It would be:

pawn Код:
new IPString[128];
GetPlayerIp(playerid, IPString, sizeof(IPString));
format(string, sizeof(string), "%s has joined the server. IP: %s", IPString);
SendClientMessage(playerid, WHITE, IPString);
Would that be right?, Thanks mate.
Reply


Messages In This Thread
IP of a player. - by iGetty - 07.08.2011, 20:48
Re: IP of a player. - by JaTochNietDan - 07.08.2011, 20:52
Re: IP of a player. - by Anzipane! - 07.08.2011, 20:53
Re: IP of a player. - by iGetty - 07.08.2011, 20:56
Re: IP of a player. - by Anzipane! - 07.08.2011, 21:01
Re: IP of a player. - by iGetty - 07.08.2011, 21:02
Re: IP of a player. - by Basicz - 07.08.2011, 21:03

Forum Jump:


Users browsing this thread: 3 Guest(s)