GetPlayerIp...
#6

....... You are checking if the connected player is an admin, then checking his IP and sending it to EVERYONE...

Код:
new ip[16],name[20],string[150];
GetPlayerIp(playerid, ip, sizeof(ip));
GetPlayerName(playerid,name,sizeof(name));
format(string, 150, "%s has Connected with ip: %s.", name, ip);

for(new i=0;i<MAX_PLAYERS;i++)
{
  if(P_Data[i][pAdmin] >= 1)
 {
SCM(i,COLOR_RED,string);
 }
}
Reply


Messages In This Thread
GetPlayerIp... - by mrsamp - 20.07.2012, 19:21
Re: GetPlayerIp... - by tyler12 - 20.07.2012, 19:25
Re: GetPlayerIp... - by mrsamp - 20.07.2012, 19:33
Re: GetPlayerIp... - by tyler12 - 20.07.2012, 19:42
Re: GetPlayerIp... - by mrsamp - 20.07.2012, 19:51
Re: GetPlayerIp... - by EV007 - 20.07.2012, 19:55
Re: GetPlayerIp... - by mrsamp - 20.07.2012, 20:34

Forum Jump:


Users browsing this thread: 3 Guest(s)