SA-MP Forums Archive
Client Message - 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: Client Message (/showthread.php?tid=350204)



Client Message - Dare Devil..... - 11.06.2012

I wanted to ask you all that id any one know I made a command but when I type it it shows text to me only I want that every one near to the person can see that if any one can help me.
Here is one of the commands
pawn Код:
if (strcmp("/vjump 4", cmdtext, true, 10) == 0)
    {
    SendClientMessage(playerid, 0x8973a1, "((Vampire Jump 4))");
        return 1;
    }



Re: Client Message - kaisersouse - 11.06.2012

Well you can do SendClientMessageToAll so everyone sees it, or a foreach loop that cycles thru all players and uses GetPlayerDistanceFromPoint to see if that player is within a certain range to the player using the command. If they are use
Код:
SendClientMessage(i, 0x8973a1, "((Vampire Jump 4))");
within that loop


Re: Client Message - Dare Devil..... - 11.06.2012

Quote:
Originally Posted by kaisersouse
Посмотреть сообщение
Well you can do SendClientMessageToAll so everyone sees it, or a foreach loop that cycles thru all players and uses GetPlayerDistanceFromPoint to see if that player is within a certain range to the player using the command. If they are use
Код:
SendClientMessage(i, 0x8973a1, "((Vampire Jump 4))");
within that loop
It is as a global I want it for roleplay so I want only a few people can see it.


Re: Client Message - JhnzRep - 11.06.2012

Click here for tutorial on Implenting rp chat.