24.09.2011, 13:29
What we do wrong?
Код:
YCMD:admins(playerid, params[], help) { #pragma unused params #pragma unused help new pname[24], admincount = 0; SendClientMessage(playerid, 0x00D90044, "--------------"); SendClientMessage(playerid, 0x00D90044, "Admins Online:"); for (new i = 0; i < GetMaxPlayers(); i++) { if (IsPlayerConnected(i) && (pInfo[playerid][pAdmin] == 0)) { admincount ++; GetPlayerName(i, pname, 24); SendClientMessage(playerid, 0x00D90044, pname); } } if (!admincount) SendClientMessage(playerid, 0x00D90044, "No admins"); SendClientMessage(playerid, 0x00D90044, "--------------"); return 1; }