help about Dj - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: help about Dj (
/showthread.php?tid=596368)
help about Dj -
Adornil - 16.12.2015
i want to create /djs it will show online dj, any one help me?
Re: help about Dj -
prineside - 16.12.2015
Help you? Do you need a moral support? Yup, sure, go on, we believe in you, you can do that!
Or maybe you are waiting for someone who will read your mind and write scripts for you? Here you are:
https://sampforum.blast.hk/showthread.php?tid=447813
Re: help about Dj -
malackov - 16.12.2015
PHP код:
new foundDJs;
foreach(Player, i) // or for(new i = 0; i != MAX_PLAYERS; i++) with a IsPlayerConnected check
{
if(pInfo[i][pDJ])
{
foundDJs ++;
// display DJs name or whatever
}
}
if(!foundDJs)
{
// No djs were found.
}
found this on the forum