SendPlayerMessageToPlayer Question
#1

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
Reply
#2

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
Reply
#3

Where it says id do i just have to put the player id (0)? Same with toid?
Reply
#4

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
Reply
#5

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)