How to make chat display [Playername][ID][Text] -
Mobtiesgangsa - 05.07.2017
Intro
hello ill be showing in this tutorial how to make a simple chat for players only white with displaying playername the player id and the player text
Code:
public OnPlayerText(playerid, text[])
do this
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
Re: How to make chat display [Playername][ID][Text] -
saffierr - 05.07.2017
Unfortunately this is not the purpose of what a 'tutorial' is all about.
You haven't explained anything, but I appreciate your effort.
Try to explain the code brother, just try.
Re: How to make chat display [Playername][ID][Text] -
SteSte - 05.07.2017
Quote:
Originally Posted by Mobtiesgangsa
Intro
hello ill be showing in this tutorial how to make a simple chat for players only white with displaying playername the player id and the player text
Code:
public OnPlayerText(playerid, text[])
do this
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
|
I understand it, but not everyone will, please explain futher.
Don't make tutorials because its easy to, make it because you can explain.
Re: How to make chat display [Playername][ID][Text] -
Astralis - 05.07.2017
Newbies will still not understand.
Re: How to make chat display [Playername][ID][Text] -
Eoussama - 05.07.2017
No, that's just wrong
Re: How to make chat display [Playername][ID][Text] -
GuilhermeNunes - 05.07.2017
-_-

?
WHAT
Re: How to make chat display [Playername][ID][Text] -
Toroi - 05.07.2017
intro
Hello, this is a tutorial
how to build a wooden house.
do this
done +rep me pls
Re: How to make chat display [Playername][ID][Text] -
FailerZ - 05.07.2017
Quote:
Originally Posted by Mobtiesgangsa
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
Re: How to make chat display [Playername][ID][Text] -
Beryllium - 05.07.2017
wot?
Re: How to make chat display [Playername][ID][Text] -
iLearner - 05.07.2017
We are in 2017!
Re: How to make chat display [Playername][ID][Text] -
Codeah - 05.07.2017
Hello guys, today i'll show you how to hack into a website.
Do this :
+rep if it helped
Re: How to make chat display [Playername][ID][Text] -
HoussemGaming - 05.07.2017
Quote:
Originally Posted by Toroi
intro
Hello, this is a tutorial how to build a wooden house.
do this
done +rep me pls
|
Repped xD,
Please make explaintation
Re: How to make chat display [Playername][ID][Text] -
Meller - 05.07.2017
Not a tutorial, plus you don't even yourself understand what return; is. Just.. don't try doing any more non-tutorial tutorials.
Quote:
Originally Posted by Codeah
Hello guys, today i'll show you how to hack into a website.
Do this :
+rep if it helped
|
-rep!! u dont hack in binary!! lmao
Re: How to make chat display [Playername][ID][Text] -
Mobtiesgangsa - 06.07.2017
Quote:
Originally Posted by saffierr
Unfortunately this is not the purpose of what a 'tutorial' is all about.
You haven't explained anything, but I appreciate your effort.
Try to explain the code brother, just try.
|
can i do a update to this tutorial cuz when i posted i was so damn tired and was awake dreaming
Re: How to make chat display [Playername][ID][Text] -
saffierr - 06.07.2017
Yes sure you can, goto your own post and click on the 'edit' button, symbolized as a pencil.
Re: How to make chat display [Playername][ID][Text] -
CodeStyle175 - 06.07.2017
well wtf are you even scripting when you cant complete simple task like this.
Re: How to make chat display [Playername][ID][Text] -
Hansrutger - 06.07.2017
Quote:
Originally Posted by Toroi
intro
Hello, this is a tutorial how to build a wooden house.
do this
done +rep me pls
|
Wrong... You forgot to tell us where to place the house

we were unable to follow this tutorial's formatted instructions!
Re: How to make chat display [Playername][ID][Text] -
Fairuz - 07.07.2017
Quote:
Originally Posted by Toroi
intro
Hello, this is a tutorial how to build a wooden house.
do this
done +rep me pls
|
Your post just made my day

)