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

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
Reply
#2

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

Quote:
Originally Posted by Mobtiesgangsa
View Post
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.
Reply
#4

Newbies will still not understand.
Reply
#5

No, that's just wrong
Reply
#6

-_- ?
WHAT
Reply
#7

intro

Hello, this is a tutorial how to build a wooden house.

do this



done +rep me pls
Reply
#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
#9

wot?
Reply
#10

We are in 2017!
Reply
#11

Hello guys, today i'll show you how to hack into a website.

Do this :


+rep if it helped
Reply
#12

Quote:
Originally Posted by Toroi
View Post
intro

Hello, this is a tutorial how to build a wooden house.

do this



done +rep me pls
Repped xD,
Quote:

intro

Please make explaintation
Reply
#13

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
View Post
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
Reply
#14

Quote:
Originally Posted by saffierr
View Post
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
Reply
#15

Yes sure you can, goto your own post and click on the 'edit' button, symbolized as a pencil.
Reply
#16

well wtf are you even scripting when you cant complete simple task like this.
Reply
#17

Quote:
Originally Posted by Toroi
View Post
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!
Reply
#18

Quote:
Originally Posted by Toroi
View Post
intro

Hello, this is a tutorial how to build a wooden house.

do this



done +rep me pls
Your post just made my day )
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)