11.11.2012, 17:24
how can i make it so if a player like this i get 2 messages.. if he has Alias only one to appear and if he doesent hav alias..without the string(Alias:%s)
else // i think like this no?
{
PHP код:
if(PlayerInfo[playerid][pAdmin] >= 1)
{
new str[128];
new name[24];
new plrIP[16];
GetPlayerName(playerid, name, sizeof name);
GetPlayerIp(playerid, plrIP, sizeof(plrIP));
format(str, sizeof(str), "%s a intrat in Server! [[IP: %s]]",name,plrIP);
SendAdminMessage(COLOR_SEA, str);
{ }
{
PHP код:
if(PlayerInfo[playerid][pAdmin] >= 1)
{
new str[128];
new name[24];
new plrIP[16];
GetPlayerName(playerid, name, sizeof name);
GetPlayerIp(playerid, plrIP, sizeof(plrIP));
format(str, sizeof(str), "%s a intrat in Server! [[IP: %s]](Alias:%s)",name,plrIP,pAKA);
SendAdminMessage(COLOR_SEA, str);
}