SA-MP Forums Archive
SendClientMessageToAll expect one - 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: SendClientMessageToAll expect one (/showthread.php?tid=386914)



SendClientMessageToAll expect one - Larry123 - 22.10.2012

Hello, i want to do a command, which sends ClientMessage to all, expect myself.
I mean, everybody else expect me get this message what i say.


Re: SendClientMessageToAll expect one - Roel - 22.10.2012

Replace SendClientMessageToAll with:
pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i) && playerid != i)
        {
            SendClientMessage(i,YOURCOLOR,"Here your text");
        }
    }
Enter your color and text that you had at your SendClientMessageToAll.