SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Tutorials

Reply
 
Thread Tools Display Modes
Old 05/07/2017, 12:25 AM   #1
Mobtiesgangsa
Little Clucker
 
Mobtiesgangsa's Avatar
 
Join Date: Oct 2016
Location: Skopje, Macedonia
Posts: 15
Reputation: 0
Default !

DELETED

Last edited by Mobtiesgangsa; 19/07/2017 at 03:23 AM. Reason: Deleted
Mobtiesgangsa is offline   Reply With Quote
Old 05/07/2017, 12:29 AM   #2
saffierr
High-roller
 
saffierr's Avatar
 
Join Date: Jul 2013
Location: GetPlayerGirlHouse(targetplayer);
Posts: 1,153
Reputation: 36
Default Re: How to make chat display [Playername][ID][Text]

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.
saffierr is offline   Reply With Quote
Old 05/07/2017, 12:56 AM   #3
SteSte
Huge Clucker
 
SteSte's Avatar
 
Join Date: Aug 2015
Location: United States
Posts: 200
Reputation: 19
Default Re: How to make chat display [Playername][ID][Text]

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.
__________________
Working On:
Superhuman - Roleplay
PM me if your interested in helping.
SteSte is offline   Reply With Quote
Old 05/07/2017, 01:07 AM   #4
Astralis
High-roller
 
Join Date: Sep 2009
Location: France
Posts: 2,793
Reputation: 351
Default Re: How to make chat display [Playername][ID][Text]

Newbies will still not understand.
__________________
Astralis is offline   Reply With Quote
Old 05/07/2017, 01:15 AM   #5
Eoussama
Gangsta
 
Eoussama's Avatar
 
Join Date: Jul 2016
Location: Kingdom of Morocco // Tangier
Posts: 759
Reputation: 101
Default Re: How to make chat display [Playername][ID][Text]

No, that's just wrong
Eoussama is offline   Reply With Quote
Old 05/07/2017, 05:44 AM   #6
GuilhermeNunes
Huge Clucker
 
GuilhermeNunes's Avatar
 
Join Date: Feb 2017
Location: não sei
Posts: 411
Reputation: 4
Default Re: How to make chat display [Playername][ID][Text]

-_- ?
WHAT
__________________
GuilhermeNunes is online now   Reply With Quote
Old 05/07/2017, 05:47 AM   #7
Toroi
Gangsta
 
Toroi's Avatar
 
Join Date: Feb 2017
Location: Venezuela
Posts: 750
Reputation: 133
Default Re: How to make chat display [Playername][ID][Text]

intro

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

do this



done +rep me pls
__________________
Scripting Help in a nutshell

Quote:
Originally Posted by Thanks View Post
So.. hey everyone im trying to searching at google how to make leaderboard with Textdraws so i find many but Not in my brain...
Toroi is offline   Reply With Quote
Old 05/07/2017, 06:43 AM   #8
FailerZ
Big Clucker
 
FailerZ's Avatar
 
Join Date: Oct 2013
Posts: 185
Reputation: 18
Default Re: How to make chat display [Playername][ID][Text]

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
__________________
[FilterScript]Digital Health & Armour [DHA]
[FilterScript]Labels Creator [LC]
[FilterScript]Debug Mode [D-Mode]
[FilterScript]Advance Fish System [AFS]
FailerZ is offline   Reply With Quote
Old 05/07/2017, 07:22 AM   #9
Beryllium
Big Clucker
 
Join Date: May 2017
Location: Egypt.
Posts: 69
Reputation: 4
Default Re: How to make chat display [Playername][ID][Text]

wot?
Beryllium is offline   Reply With Quote
Old 05/07/2017, 11:39 AM   #10
iLearner
Huge Clucker
 
iLearner's Avatar
 
Join Date: Apr 2017
Posts: 289
Reputation: 64
Default Re: How to make chat display [Playername][ID][Text]

We are in 2017!
iLearner is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
TEXT DISPLAY BUG SilverStand Scripting Help 3 25/03/2017 01:01 PM
How to make radio codes or commands that send text in the chat? Logic_ Scripting Help 7 24/09/2015 11:48 AM
3D TEXT not display kloning1 Scripting Help 5 23/06/2014 11:41 AM
how to make Audio Stream: text not display stlane Scripting Help 2 02/07/2013 10:16 PM
PlayerName in text does not work properly Remi-X Help Archive 17 17/06/2009 10:28 PM


All times are GMT. The time now is 02:52 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.