messages
#14

Quote:
Originally Posted by JeNkStAX
Quote:
Originally Posted by [K4L
Leopard ]
Quote:
Originally Posted by sk1llz
Quote:
Originally Posted by JeNkStAX
Post your code
Код:
public OnPlayerText(playerid, text[])
{
  new string[128];
	format(string, sizeof(string), "[%d] %s",playerid,text);
	SendPlayerMessageToAll(playerid,string);
  return 0;
}
Код:
public OnPlayerText(playerid, text[])
{
  new string[128], pName[24];
  GetPlayerName(playerid, pName, 24); //gets player name
  format(string, sizeof(string), "%s [ID: %d]",pName, playerid); //formats name ("Leopard [ID: 0]")
  SetPlayerName(playerid, string);
  SendPlayerMessageToAll(playerid,text);
  SetPlayerName(playerid, pName); //sets player name back to original
  return 0;
}
brett7's and Jenksta's code will output: "Leopard: Leopard(ID: 0) <text>"

Mine will probably do what you want.
No it wont lol, If you return 0; then it will cancel out everything automaticlly, Use my code, It will work
Well, no it won't, afaik. It will only cancel the original text output (the text showing by sa-mp core) but it won't stop SendPlayerMessageToAll.
Reply


Messages In This Thread
messages - by sk1llz - 07.02.2009, 18:17
Re: messages - by Marcel - 07.02.2009, 18:22
Re: messages - by sk1llz - 07.02.2009, 18:38
Re: messages - by ICECOLDKILLAK8 - 07.02.2009, 18:39
Re: messages - by sk1llz - 07.02.2009, 18:42
Re: messages - by ICECOLDKILLAK8 - 07.02.2009, 18:44
Re: messages - by sk1llz - 07.02.2009, 18:47
Re: messages - by ICECOLDKILLAK8 - 07.02.2009, 18:50
Re: messages - by brett7 - 07.02.2009, 18:50
Re: messages - by ICECOLDKILLAK8 - 07.02.2009, 18:52
Re: messages - by pspleo - 07.02.2009, 18:52
Re: messages - by ICECOLDKILLAK8 - 07.02.2009, 18:54
Re: messages - by brett7 - 07.02.2009, 18:55
Re: messages - by pspleo - 07.02.2009, 18:57
Re: messages - by Nimphious - 07.02.2009, 18:58
Re: messages - by pspleo - 07.02.2009, 19:00
Re: messages - by Nimphious - 07.02.2009, 19:03
Re: messages - by sk1llz - 07.02.2009, 19:06
Re: messages - by brett7 - 07.02.2009, 19:08
Re: messages - by ICECOLDKILLAK8 - 07.02.2009, 19:10
Re: messages - by sk1llz - 07.02.2009, 19:10
Re: messages - by ICECOLDKILLAK8 - 07.02.2009, 19:12
Re: messages - by sk1llz - 07.02.2009, 19:13
Re: messages - by ICECOLDKILLAK8 - 07.02.2009, 19:15
Re: messages - by sk1llz - 07.02.2009, 19:17
Re: messages - by pspleo - 07.02.2009, 19:22
Re: messages - by ICECOLDKILLAK8 - 07.02.2009, 19:24

Forum Jump:


Users browsing this thread: 2 Guest(s)