Message Format - 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: Plugin Development (
https://sampforum.blast.hk/forumdisplay.php?fid=18)
+--- Thread: Message Format (
/showthread.php?tid=508128)
Message Format -
RCON1 - 20.04.2014
Could anyone suggest how to create a plugin that would format the message? (I use y_va but want a plugin)
Код:
native SendClientFormatMessage (playerid, color, const format [], {Float, _}: ...);
Re: Message Format -
[WSF]ThA_Devil - 20.04.2014
Quote:
Originally Posted by RCON1
Could anyone suggest how to create a plugin that would format the message? (I use y_va but want a plugin)
Код:
native SendClientFormatMessage (playerid, color, const format [], {Float, _}: ...);
|
This is not ask part of forums,
For this, plugin is unnecessary aswell.
You can use these 3 lines tho:
pawn Код:
new FXF_str[128];
#define SendFormattedClientMessage(%1,%2,%3,%4) format(FXF_str,sizeof(FXF_str),%3,%4); SendClientMessage(%1,%2,FXF_str)
#define SendFormattedClientMessageToAll(%1,%2,%3) format(FXF_str,sizeof(FXF_str),%2,%3); SendClientMessageToAll(%1,FXF_str)
*COPIED FROM CODE BY PSPgamer_10*
https://sampforum.blast.hk/showthread.php?tid=169280
Re: Message Format -
RCON1 - 20.04.2014
Quote:
(I use y_va but want a plugin)
|
He wants to have it to update the plugin
https://sampforum.blast.hk/showthread.php?tid=478044 (wants to rewrite the plugin)
Re: Message Format -
[WSF]ThA_Devil - 20.04.2014
Quote:
Originally Posted by RCON1
|
It looks nice calling yourself in third person.
As I said, It would be really useless to be a plugin, plugin is meant to expand possibilities in sa-mp, not using it to script sa-mp. If you want script sa-mp in C++ there's a thread for that as well.
In this case, You would send 1 function to plugin, to format it, and send back, to sa-mp as client message, which would be just useless to be a plugin.
Sorry to disappoint you, but this is the wrong place to look.
If you still wish to develop it, take look at sources mentioned in that post:
https://sampforum.blast.hk/showthread.php?tid=295798
Otherwise, forget the idea of it being plugin, If you develop it, you're less likely to get much good support.