11.09.2015, 12:24
PHP Code:
if(ServerInfo[ConnectMessages] == 1)
{
new mess[128], IP[128], ircMsg[128];
GetPlayerIp(playerid,IP,sizeof(IP));
if(PlayerInfo[playerid][Level] == 0) {
format(string, sizeof(string), "*** %s [ID:%d] has joined the server. [ Country: %s | IP Address: %s ]",PlayerName, playerid, GetPlayerCountryName(playerid), IP);
SendClientMessageToAll(green, string);
printf(mess);
} else if(PlayerInfo[ playerid ][Level] == 1) {
format(string, sizeof(string), "***[Level1] %s [ID:%d] has joined the server. [ Country: %s | IP Address: %s ]",PlayerName, playerid, GetPlayerCountryName(playerid), IP);
SendClientMessageToAll(green, string);
printf(mess);
} else if(PlayerInfo[ playerid ][Level] == 2) {
format(string,sizeof(string), "***[Level2] %s [ID:%d] has joined the server. [ Country: %s | IP Address: %s ]",PlayerName, playerid, GetPlayerCountryName(playerid), IP);
SendClientMessageToAll(green, string);
printf(mess);
} else if(PlayerInfo[ playerid ][Level] == 3) {
format(string,sizeof(string), "***[Level3] %s [ID:%d] has joined the server. [ Country: %s | IP Address: %s ]",PlayerName, playerid, GetPlayerCountryName(playerid), IP);
SendClientMessageToAll(green, string);
printf(mess);
} else if(PlayerInfo[ playerid ][Level] == 4) {
format(string,sizeof(string), "***[Level4] %s [ID:%d] has joined the server. [ Country: %s | IP Address: %s ]",PlayerName, playerid, GetPlayerCountryName(playerid), IP);
SendClientMessageToAll(green, string);
printf(mess);
} else if(PlayerInfo[ playerid ][Level] == 5) {
format(string,sizeof(string), "***[Level5] %s [ID:%d] has joined the server. [ Country: %s | IP Address: %s ]",PlayerName, playerid, GetPlayerCountryName(playerid), IP);
SendClientMessageToAll(green, string);
printf(mess);
}
format(ircMsg, sizeof(ircMsg), "9*** %s [ID:%d] has joined the server. [ Country: %s | IP Address: %s ]", PlayerName, playerid, GetPlayerCountryName(playerid), IP);
IRC_GroupSay(gGroupID, IRC_CHANNEL, ircMsg);
TeleTime[playerid] = 0;
Heal[playerid] = 0;
}