25.12.2018, 21:47
So I'm trying to figure out how to make a pause system for admins. I would like it to say tabbed in /admins when you're actually tabbed
This is what I've got so far:
The part where the pause is included doesn't work, p much fucks up the entire tab system
Need guidance
This is what I've got so far:
Код:
CMD:admins(playerid) { new bool:flag, str[128]; SendClientMessage(playerid, COLOR_AQUA, "Administrators online:"); foreach(new i:Player) { if(PlayerInfo[i][pAdmin] > 0) { flag = true; if(PlayerPaused[i] == 1) format(str, sizeof(str), "{00ff6b}[Paused]{FFFFFF} %s: %s", ReturnAdminLevel(i), ReturnName(i)); else if(PlayerInfo[i][pAdminDuty] == 1) format(str, sizeof(str), "{00ff6b}[Available]{FFFFFF} %s: %s", ReturnAdminLevel(i), ReturnName(i)); else format(str, sizeof(str), "{FF0000}[Unavailable]{FFFFFF} %s: %s", ReturnAdminLevel(i), ReturnName(i)); SendClientMessage(playerid, -1, str); } } if(!flag) SendClientMessage(playerid, -1, "There are no admins available currently."); return 1; }
Need guidance