29.12.2015, 22:51
Go back to the index page, click on the subforum that supports your language.
Give it a try and seek for your answer there.
You are not able to script, either you go check out some tutorials or either stick to playing servers instead of scripting one. This section is not ment to request scripts at all.
To answer your question:
Use the foreach plugin. (Optional: ZCMD)
Give it a try and seek for your answer there.
You are not able to script, either you go check out some tutorials or either stick to playing servers instead of scripting one. This section is not ment to request scripts at all.
To answer your question:
Use the foreach plugin. (Optional: ZCMD)
Код:
CMD:djs(playerid, params[]) { if(PlayerInfo[playerid][pDJ] > 0) { SendClientMessage(playerid, COLOR_ORANGE, "DJ's Online:"); foreach(Player, i) { if (PlayerInfo[i][pDJ] > 0) { format(string, sizeof(string), "%s", GetPlayerName(i)); SendClientMessage(playerid, COLOR_WHITE, string); } } } return 1; }