SendPlayerMessageToPlayer Question - 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: SendPlayerMessageToPlayer Question (
/showthread.php?tid=69187)
SendPlayerMessageToPlayer Question -
Alec24 - 16.03.2009
I would like to send a message to a specific player, with name Alec. I have tried
SendPlayerMessageToPlayer(Alec(yellow, ansmsg));
Basiclly I only want one person to see this person(me) but how do i do it? If there is another/easier way please show me
Re: SendPlayerMessageToPlayer Question -
pspleo - 16.03.2009
You gotta divide it to sections.
pawn Код:
new pName[24];
GetPlayerName(id, pName, MAX_PLAYER_NAME);
SetPlayerName(id, "Alec");
SendPlayerMessageToPlayer(id, toid, "Message");
SetPlayerName(id, pName);
Leopard
Re: SendPlayerMessageToPlayer Question -
Alec24 - 16.03.2009
Where it says id do i just have to put the player id (0)? Same with toid?
Re: SendPlayerMessageToPlayer Question -
pspleo - 16.03.2009
Quote:
|
Originally Posted by AlecRae
Where it says id do i just have to put the player id (0)? Same with toid?
|
Yes. But remove toid, i thought wrong.
Leopard
Re: SendPlayerMessageToPlayer Question -
Alec24 - 16.03.2009
Correct me if im wrong but are you sure you need to SetPlayerName as the name is already Alec. I only want to send a message to that name only.