SA-MP Forums Archive
"Realchat" - 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: "Realchat" (/showthread.php?tid=158331)



"Realchat" - [DK]JaloNik - 09.07.2010

Hey guys!

I want that, when the players write something in just normal chat, it should say: "Name" says: (text).
Normal it just says: "Name": (text)

Okay, so here's what I got:

I put this on OnPlayerText:
pawn Код:
{
    new sendername[MAX_PLAYER_NAME];
    new string[256];
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), "%s says: %s", sendername, text);
    ProxDetector(50.0, playerid, string,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE);
    return 0;
}
When I made this, I wanted it to do what I said, but it doesn't? How can I make it say what I want?

Thanks.

/JaloNik.


Re: "Realchat" - dice7 - 09.07.2010

That should do "Name says: (text)". Compile your code


Re: "Realchat" - [DK]JaloNik - 09.07.2010

Quote:
Originally Posted by dice7
Посмотреть сообщение
That should do "Name says: (text)". Compile your code
I have done it. It doesn't say that "says" And it's exactly what I want it to do.


Re: "Realchat" - [DK]JaloNik - 09.07.2010

MY FAULT! - I failed big time here. I didn't know why it didn't do it! - But I had tested an older version of my script, so I forgot to change the game mode back! xDD That's the reason, lol. xDD


Re: "Realchat" - Cameltoe - 09.07.2010

Quote:
Originally Posted by JaloNik
Посмотреть сообщение
MY FAULT! - I failed big time here. I didn't know why it didn't do it! - But I had tested an older version of my script, so I forgot to change the game mode back! xDD That's the reason, lol. xDD
Hahha! made me laugh x)