SA-MP Forums Archive
Its possible make SendChat("") to send the message only for a player? - 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: Its possible make SendChat("") to send the message only for a player? (/showthread.php?tid=95942)



Its possible make SendChat("") to send the message only for a player? - CTCCoco - 05.09.2009

Its possible make SendChat("") to send the message only for a player?


Re: Its possible make SendChat("") to send the message only for a player? - Daem - 05.09.2009

yes, but not "SendChat" it is possible to send text with nickname and text.


Re: Its possible make SendChat("") to send the message only for a player? - Zezombia - 05.09.2009

Try doing SendPlayerMessageToPlayer, inside the GM/FS using the bot.


Re: Its possible make SendChat("") to send the message only for a player? - V1ceC1ty - 05.09.2009

pawn Код:
SendClientMessage(playerid, "Lalalala");


https://sampwiki.blast.hk/wiki/Main_Page


Re: Its possible make SendChat("") to send the message only for a player? - erorcun - 05.09.2009

It is possible!

Put in npc:

pawn Код:
Wrong codes!
Put in GameMode/OnPlayerCommandText:

pawn Код:
Wrong codes!
Usage:
SendChatToPlayer(receiverid, message[]);


Re: Its possible make SendChat("") to send the message only for a player? - Zezombia - 05.09.2009

Or you chould do it my way...

Quote:
Originally Posted by Zezombia
Try doing SendPlayerMessageToPlayer, inside the GM/FS using the bot.



Re: Its possible make SendChat("") to send the message only for a player? - MaTrIx4057 - 05.09.2009

Quote:
Originally Posted by Zezombia
Or you chould do it my way...

Quote:
Originally Posted by Zezombia
Try doing SendPlayerMessageToPlayer, inside the GM/FS using the bot.
Won't work.


Re: Its possible make SendChat("") to send the message only for a player? - erorcun - 05.09.2009

Quote:
Originally Posted by erorcun
It is possible!

Put in npc:

pawn Код:
Wrong codes!
Put in GameMode/OnPlayerCommandText:

pawn Код:
Wrong codes!
Usage:
SendChatToPlayer(receiverid, message[]);
Use this. :P


Re: Its possible make SendChat("") to send the message only for a player? - erorcun - 06.09.2009

I'm sorry, I was given the wrong codes.

Deleted codes.

Sorry for double post.


Re: Its possible make SendChat("") to send the message only for a player? - Kalcor - 06.09.2009

This is possible by scripting but why not just do: SendCommand("/pm (id) Hello!"); ?