14.03.2018, 12:51
'/n' : It's only for dialog text, and you can't use it into a 'SendClientMessage' , it won't work.
Test if it's working
Actually, Sew_Sumi has already noticed it for you
Test if it's working
Actually, Sew_Sumi has already noticed it for you
Quote:
And what you're doing in that format in the first example in admins command, won't work as that's not how you use format, and pass things to SendClientMessage.
|
PHP Code:
CMD:admins(playerid, params[])
{
if(pInfo[playerid][pHour] >= 0)
{
new adminstring[128];
new text[128];
if(IsPlayerConnected(playerid))
{
for (new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(pInfo[i][pAdminLevel] > 0)
{
format(adminstring, sizeof(adminstring),"%s %s / %s", GetAdminName(i), PlayerName(i), ForumName(i));
format(text, sizeof(text),"Administratori Online");
}
}
}
SendClientMessage(playerid,COLOR_WHITE, text);
SendClientMessage(playerid,COLOR_GREEN, adminstring);
}
//else return SendClientMessage(playerid,-1,"*"COL_LGREEN" Nici un admin online"); Currently this message it won't be showed to the players.
}
return 1;
}