SA-MP Forums Archive
Removing talk - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Removing talk (/showthread.php?tid=597841)



Removing talk - Swarn - 05.01.2016

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


Re: Removing talk - Lucky13 - 05.01.2016

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.


Re: Removing talk - Swarn - 05.01.2016

Thanks, changed return 1; to return 0; Works perfectly, thanks man. + Rep


Re: Removing talk - Lucky13 - 05.01.2016

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 ^^