Message on server - 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: Message on server (
/showthread.php?tid=580032)
Message on server -
Sc0pion - 01.07.2015
Fixed!
Re: Message on server -
Roko_foko - 01.07.2015
Quote:
Originally Posted by Sc0pion
So when you send a message in samp, it is sent like "Username(id): Your message". Can I just change it to "Username (Id: id): Your message"? Is that possible? If yes, how?
|
It is. You are sending string (list of characters). press CTRL + F in editor and find '%s(%d): %s' or '%s(%i): %s' inside and change it to '%s(Id: %d): %s'. Do that to all occurances.
Re: Message on server -
Abagail - 01.07.2015
If you mean you return 1 in OnPlayerText by default you need to format it yourself and send the message like it would've if the server controlled it, you also need to return 0 to prevent the original SA:MP message from being sent to the server.
Re: Message on server -
Sc0pion - 01.07.2015
Fixed!