how i add id in the chat ? - 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: how i add id in the chat ? (
/showthread.php?tid=137890)
how i add id in the chat ? -
rong13 - 30.03.2010
how i add id in the chat ?
mynam; id; and what i wirte ...
Re: how i add id in the chat ? -
FireFox_ - 30.03.2010
Use:
https://sampwiki.blast.hk/wiki/Format
under:
pawn Код:
public OnPlayerText(playerid, text[])
Re: how i add id in the chat ? -
jamesbond007 - 30.03.2010
yea like that helps alot to a newbie scripter
dont ask me i dont know
Re: how i add id in the chat ? -
Ragidon - 30.03.2010
Quote:
Originally Posted by jamesbond007
yea like that helps alot to a newbie scripter
dont ask me i dont know
|
Look at my amount of posts. I started scripting yesterday. I get this.
Re: how i add id in the chat ? -
Correlli - 30.03.2010
pawn Код:
public OnPlayerText(playerid, text[])
{
new
myArray[128];
GetPlayerName(playerid, myArray, MAX_PLAYER_NAME);
format(myArray, sizeof(myArray), "%s (%i): %s", myArray, playerid, text);
SendClientMessageToAll(0xFFFFFFFF, myArray);
return true;
}
Quote:
Originally Posted by jamesbond007
dont ask me i dont know
|
Then don't post.
Re: how i add id in the chat ? -
rong13 - 30.03.2010
that work but its wirte 2 times what i wirte in chat
Re: how i add id in the chat ? -
Zimon95 - 30.03.2010
Quote:
Originally Posted by Don Correlli
pawn Код:
public OnPlayerText(playerid, text[]) { new myArray[128]; GetPlayerName(playerid, myArray, MAX_PLAYER_NAME); format(myArray, sizeof(myArray), "%s (%i): %s", myArray, playerid, text); SendClientMessageToAll(0xFFFFFFFF, myArray); return true; }
|
pawn Код:
public OnPlayerText(playerid, text[])
{
new
myArray[128];
GetPlayerName(playerid, myArray, MAX_PLAYER_NAME);
format(myArray, sizeof(myArray), "%s (%i): %s", myArray, playerid, text);
SendClientMessageToAll(0xFFFFFFFF, myArray);
return false; //The original message will not be sent
}
Try this.
Re: how i add id in the chat ? -
rong13 - 31.03.2010
it works but the only colur its withe in the chat
how i fix it ?
Re: how i add id in the chat ? -
Mike Garber - 31.03.2010
pawn Код:
SendClientMessageToAll(0xFFFFFFFF, myArray);
SendClientMessageToAll(
0xFFFFFFFF, myArray);
The
bold text defines the color.
Use this (
http://www.gtavision.com/index.php?s...wnload&id=1974 ) to generate colors.
Re: how i add id in the chat ? -
johnathon956 - 01.04.2010
Quote:
Originally Posted by mavtias
|
how can i make it do differant colours for every person