SA-MP Forums Archive
Need help with local messages - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Need help with local messages (/showthread.php?tid=125710)



Need help with local messages - Fugative. - 05.02.2010

I tried to search this but I can find anything to match what I'm looking for.

I want to send all players a message if someone is near another player so for example.

pawn Код:
{
            if(Health >= 90.0)
              {
                return SendClientMessage(playerid, RED, "ERROR: You already have enough health.");
                    }
              SendClientMessage(playerid, WHITE, ">> You ate a banana cluster and your health was fully restored.");
              SetPlayerHealth(playerid, 100);
Sendallclientmessage " OMG HE ATE TEH BANANAZ" << This should work if other people are near this person.
            }