PDA

View Full Version : Removing talk


Swarn
05/01/2016, 06:21 PM
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

Lucky13
05/01/2016, 06:29 PM
It's as easy as pie.


public OnPlayerText(playerid, text[])
{
// Your code here.
return 0;
}


Put your code above the return 0; That will fix it.

Swarn
05/01/2016, 07:25 PM
Thanks, changed return 1; to return 0; Works perfectly, thanks man. + Rep

Lucky13
05/01/2016, 07:29 PM
Thanks, changed return 1; to return 0; Works perfectly, thanks man. + Rep

+rep for you too my friend ^^