new connectstr[128];
format(connectstr, sizeof(connectstr), "* %s (%d) Has Joined The Server.",pNick(playerid),playerid);
SendClientMessageToAll(COLOR_DEAD, connectstr);
new connectstr[128];
format(connectstr, sizeof(connectstr), "* %s (%d) Has Joined The Server - IP: %s.",pNick(playerid),playerid,ip);
SendClientMessageToAll(COLOR_DEAD, connectstr);
if(PlayerInfo[playerid][pAdmin] < 1) { //add code } |
new connectstr[128], ip[16]; GetPlayerIp(playerid, ip, sizeof(ip)) // Assign the IP to the ip string variable format(connectstr, sizeof(connectstr), "* %s (%d) Has Joined The Server - IP: %s.",pNick(playerid),playerid,ip); for(new i; i <= MAX_PLAYERS; i++) //Loop through all players { if(PlayerInfo[i][pAdmin] >= 1) SendClientMessage(i, COLOR_DEAD, connectstr); }
format(connectstr, sizeof(connectstr), "* %s (%d) Has Joined The Server - IP: %s.",pNick(playerid),playerid,ip);
GetPlayerIp(playerid, ip, sizeof(ip));
new connectstr[128], ip[16];
GetPlayerIp(playerid, ip, sizeof(ip)); // Assign the IP to the ip string variable
format(connectstr, sizeof(connectstr), "* %s (%d) Has Joined The Server - IP: %s.",pNick(playerid),playerid,ip);
for(new i; i <= MAX_PLAYERS; i++) //Loop through all players
{
if(PlayerInfo[i][pAdmin] >= 1) SendClientMessage(i, COLOR_DEAD, connectstr);
}