SA-MP Forums Archive
Bit rusty. Could use help on this for a moment. - 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: Bit rusty. Could use help on this for a moment. (/showthread.php?tid=590893)



delete. - rangerxxll - 05.10.2015

delete.


AW: Bit rusty. Could use help on this for a moment. - Kaliber - 05.10.2015

Do it like this:

PHP код:
CMD:getmutes(playeridparams[])
{
    if(
PlayerInfo[playerid][pAdmin] < 2) return SCM(pid,COLOR_GREY,ERROR);
    new 
string[75], bool:count;
    for(new 
iMAX_PLAYERSi++)
    {
        if(!
IsPlayerConnected(i) || IsPlayerNPC(i) || !PlayerInfo[i][pMute]) continue;
        
format(string,sizeof(string), "Currently Muted: %s"GetName(i));
        
SendClientMessage(playeridCOLOR_GREENstring),count=true;
    }
        return (!
count) ? SCM(playerid,COLOR_GREY"No one is currently muted.") : 1;




Re: Bit rusty. Could use help on this for a moment. - rangerxxll - 05.10.2015

Fixed.