Help Dj please :)
#6

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)

Код:
	
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;
}
Reply


Messages In This Thread
Help Dj please :) - by Adornil - 23.12.2015, 10:28
Re: Help Dj please :) - by ChristolisTV - 23.12.2015, 11:34
Re: Help Dj please :) - by Adornil - 29.12.2015, 21:57
Re: Help Dj please :) - by Adornil - 29.12.2015, 22:22
Re: Help Dj please :) - by lucamsx - 29.12.2015, 22:25
Re: Help Dj please :) - by faff - 29.12.2015, 22:51

Forum Jump:


Users browsing this thread: 1 Guest(s)