[Tutorial] How to make chat display [Playername][ID][Text]
#8

Quote:
Originally Posted by Mobtiesgangsa
View Post
Code:
new str[128], playername[MAX_PLAYER_NAME];
GetPlayerName(playername, sizeof(playername));
format(str, sizeof(str), "%s (%i): %s ",playername, playerid, text);
SendClientMessageToAll(-1,str);
return 0; < if you return 0 this will send the costum made message
This is wrong explanation.
The correct one is that the SendClientMessageToAll will print the custom made message
But the return 0 will stop the original text from being displayed
Reply


Messages In This Thread
How to make chat display [Playername][ID][Text] - by Mobtiesgangsa - 05.07.2017, 00:25
Re: How to make chat display [Playername][ID][Text] - by saffierr - 05.07.2017, 00:29
Re: How to make chat display [Playername][ID][Text] - by SteSte - 05.07.2017, 00:56
Re: How to make chat display [Playername][ID][Text] - by Astralis - 05.07.2017, 01:07
Re: How to make chat display [Playername][ID][Text] - by Eoussama - 05.07.2017, 01:15
Re: How to make chat display [Playername][ID][Text] - by GuilhermeNunes - 05.07.2017, 05:44
Re: How to make chat display [Playername][ID][Text] - by Toroi - 05.07.2017, 05:47
Re: How to make chat display [Playername][ID][Text] - by FailerZ - 05.07.2017, 06:43
Re: How to make chat display [Playername][ID][Text] - by Beryllium - 05.07.2017, 07:22
Re: How to make chat display [Playername][ID][Text] - by iLearner - 05.07.2017, 11:39
Re: How to make chat display [Playername][ID][Text] - by Codeah - 05.07.2017, 18:53
Re: How to make chat display [Playername][ID][Text] - by HoussemGaming - 05.07.2017, 18:56
Re: How to make chat display [Playername][ID][Text] - by Meller - 05.07.2017, 19:37
Re: How to make chat display [Playername][ID][Text] - by Mobtiesgangsa - 06.07.2017, 02:13
Re: How to make chat display [Playername][ID][Text] - by saffierr - 06.07.2017, 02:25
Re: How to make chat display [Playername][ID][Text] - by CodeStyle175 - 06.07.2017, 11:34
Re: How to make chat display [Playername][ID][Text] - by Hansrutger - 06.07.2017, 13:53
Re: How to make chat display [Playername][ID][Text] - by Dice_ - 07.07.2017, 03:48

Forum Jump:


Users browsing this thread: 1 Guest(s)