Base SA-MP OnPlayerText
#1

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.
Reply
#2

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

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)