SA-MP Forums Archive
Base SA-MP OnPlayerText - 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: Base SA-MP OnPlayerText (/showthread.php?tid=595499)



Base SA-MP OnPlayerText - IzadorO - 03.12.2015

How do you remove the base SA-MP OnPlayerText?

I'm trying to move it so I can create my own. Nothing's under my .pwn's OnPlayerText, but when I type something, it outputs it with an orange name.


Re: Base SA-MP OnPlayerText - CmZxC - 03.12.2015

return 0 on the OnPlayerText, you can add your own stuff there. Direct example from wiki.
PHP код:
public OnPlayerText(playeridtext[])
{
    new 
pText[144];
    
format(pTextsizeof (pText), "(%d) %s"playeridtext);
    
SendPlayerMessageToAll(playeridpText);
    return 
0// ignore the default text and send the custom one