Evil
Умник
Помгите разобратся с этой командой... Ну тоесть у меня сейчас отображается так
[14:05:15] **** Помощники онлайн ****
[14:05:15] **Mikkel13017
[14:05:15] (*) - Чат-Модераторы, (**) - Хелперы-Супербровайзеры
[14:05:15] ___________________________
А надо вот так!
[13:35:56] **** Помощники онлайн ****
[13:35:56] Mikkel** (тел.13017) ,
[13:35:56] (*) - Чат-Модераторы, (**) - Хелперы-Супербровайзеры
[13:35:56] ___________________________
[14:05:15] **** Помощники онлайн ****
[14:05:15] **Mikkel13017
[14:05:15] (*) - Чат-Модераторы, (**) - Хелперы-Супербровайзеры
[14:05:15] ___________________________
А надо вот так!
[13:35:56] **** Помощники онлайн ****
[13:35:56] Mikkel** (тел.13017) ,
[13:35:56] (*) - Чат-Модераторы, (**) - Хелперы-Супербровайзеры
[13:35:56] ___________________________
PHP:
if(!strcmp(cmdtext, "/helpers", true, 8) || !strcmp(cmdtext, "/hl", true, 2))
{
SendClientMessage(playerid, COLOR_GREEN, "**** Помощники онлайн ****");
new x = 0;
#if defined foreach
foreach(new i : Player)
{
if(!PlayerInfo[i][pHelper]) continue;
#else
for(new i = 0, p = GetMaxPlayers(); i != p; ++i)
{
if(!IsPlayerConnected(i) || !PlayerInfo[i][pHelper]) continue;
#endif
strcat(string, (PlayerInfo[i][pHelper] == 2) ? ("*") : ((PlayerInfo[i][pHelper] == 3) ? ("**") : ("")));
GetPlayerName(i, sendername, 24), strcat(string, sendername);
valstr(sendername, PlayerInfo[i][pPnumber]), strcat(string, sendername);
if(++x > 4) x = 0, SendClientMessage(playerid, COLOR_YELLOW2, string), string= "";
}
if(string[0]) SendClientMessage(playerid, COLOR_YELLOW2, string);
SendClientMessage(playerid, COLOR_GREY, "(*) - ЧатМодераторы, (**) - Супербровайзеры");
SendClientMessage(playerid, COLOR_GREEN, "___________________________");
return true ;
}
