is this possible? - 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: is this possible? (
/showthread.php?tid=559487)
is this possible? -
b00m112 - 23.01.2015
Is this possible to set letter before name
examle
[M]Name
Re: is this possible? -
JaydenJason - 23.01.2015
Quote:
Originally Posted by b00m112
Is this possible to set letter before name
examle
[M]Name
|
Yeah?
\If you mean in-game yes
Re: is this possible? -
GGW - 23.01.2015
Yes it is Possible
Like this:
PHP код:
public OnPlayerText(playerid, text[])
{
new string[128], playername[MAX_PLAYER_NAME];
new color = GetPlayerColor(playerid);
GetPlayerName(playerid, playername, sizeof(playername));
format(string, sizeof(string), "[M]%s: {FFFFFF}%s", playername, text);
SendClientMessageToAll(color,string);
return 0;
}
Re: is this possible? -
Riso135 - 23.01.2015
It is possible, here is simple example
Код:
new name[MAX_PLAYER_NAME], string[24+MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "[M]%s", name);
SetPlayerName(playerid, string);
Re: is this possible? -
b00m112 - 23.01.2015
thanks, i use this for /aod but if i type /aod to go off at admin duty set default name back.