how i add id in the chat ?
#1

how i add id in the chat ?
mynam; id; and what i wirte ...
Reply
#2

Use:

https://sampwiki.blast.hk/wiki/Format

under:

pawn Код:
public OnPlayerText(playerid, text[])


Reply
#3

yea like that helps alot to a newbie scripter
dont ask me i dont know
Reply
#4

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.
Reply
#5

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.
Reply
#6

that work but its wirte 2 times what i wirte in chat
Reply
#7

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.
Reply
#8

it works but the only colur its withe in the chat
how i fix it ?
Reply
#9

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.
Reply
#10

Quote:
Originally Posted by mavtias
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.
how can i make it do differant colours for every person
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)