20.07.2012, 19:55
....... 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); } }