SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 05/01/2016, 06:21 PM   #1
Swarn
Big Clucker
 
Join Date: Sep 2015
Posts: 135
Reputation: 19
Default Removing talk

So, when you load the script 'grandlarc' and you type anything in game, it sends the whole message you wrote to everyone, I am working on a RPG server and want it like a RP text type, proxdetector. I got the proxdetector working I just need to disable the original text thing. Heres an image of what is currently happening. http://imgur.com/iq3UU4A I want the top line of text, not the second line. Thanks
Swarn is offline   Reply With Quote
Old 05/01/2016, 06:29 PM   #2
Lucky13
Huge Clucker
 
Lucky13's Avatar
 
Join Date: Dec 2015
Location: Romania
Posts: 276
Reputation: 70
Default Re: Removing talk

It's as easy as pie.

Code:
public OnPlayerText(playerid, text[])
{
        // Your code here.
	return 0;
}
Put your code above the return 0; That will fix it.
Lucky13 is offline   Reply With Quote
Old 05/01/2016, 07:25 PM   #3
Swarn
Big Clucker
 
Join Date: Sep 2015
Posts: 135
Reputation: 19
Default Re: Removing talk

Thanks, changed return 1; to return 0; Works perfectly, thanks man. + Rep
Swarn is offline   Reply With Quote
Old 05/01/2016, 07:29 PM   #4
Lucky13
Huge Clucker
 
Lucky13's Avatar
 
Join Date: Dec 2015
Location: Romania
Posts: 276
Reputation: 70
Default Re: Removing talk

Quote:
Originally Posted by Swarn View Post
Thanks, changed return 1; to return 0; Works perfectly, thanks man. + Rep
+rep for you too my friend ^^
Lucky13 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
Removing other player icons from the map and removing the yellow arrow. davelord Scripting Help 2 10/01/2012 03:07 PM
Talk help Tutrix Help Archive 1 16/12/2010 04:58 PM
[HELP] How to talk the talk, then what name the pipeline on the head. uplovethai Help Archive 3 11/12/2009 02:33 PM


All times are GMT. The time now is 04:52 PM.


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