13.04.2016, 07:03
Hi all
Im using ladmin system and i made two different join messages one for player and other for admin but i dont why its not working
code
new IP[128];
if(ServerInfo[ConnectMessages] == 1)
{
GetPlayerIp(playerid,IP,sizeof(IP));
format(string,128,"*** %s [ID:%d] has joined the server.[ Country: %s | IP: %s ] ", PlayerName,playerid, GetPlayerCountryName(playerid),IP);
SendClientMessageToAll(green, string);
}
else
{
if (dUserINT(PlayerName2(playerid)).("Level") >= 1){
switch(PlayerInfo[playerid][Level]) {
case 0: {
format(string,128,"*** [Basic Adm] %s [ID:%d] has joined the server.[ Country: %s | IP: %s ] ", pName(playerid),playerid,GetPlayerCountryName(play erid),IP);
SendClientMessageToAll(green, string);
}
}
}
}
Im using ladmin system and i made two different join messages one for player and other for admin but i dont why its not working
code
new IP[128];
if(ServerInfo[ConnectMessages] == 1)
{
GetPlayerIp(playerid,IP,sizeof(IP));
format(string,128,"*** %s [ID:%d] has joined the server.[ Country: %s | IP: %s ] ", PlayerName,playerid, GetPlayerCountryName(playerid),IP);
SendClientMessageToAll(green, string);
}
else
{
if (dUserINT(PlayerName2(playerid)).("Level") >= 1){
switch(PlayerInfo[playerid][Level]) {
case 0: {
format(string,128,"*** [Basic Adm] %s [ID:%d] has joined the server.[ Country: %s | IP: %s ] ", pName(playerid),playerid,GetPlayerCountryName(play erid),IP);
SendClientMessageToAll(green, string);
}
}
}
}