SA-MP Forums Archive
How to remove OOC Chat. - 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: How to remove OOC Chat. (/showthread.php?tid=474360)



How to remove OOC Chat. - Bost - 07.11.2013

Hello.
I want to remove OOC Chat from a RP gamemode and the chat to be like in a stunt server.
Anyone can help?


Re: How to remove OOC Chat. - DanishHaq - 07.11.2013

Can you give us some specifics? Like are you talking about a command OOC chat, i.e. /o or just the normal chat, i.e. T > type chat > enter?

If you have a command, you'll find it somewhere in your script. Try and search for the following with CTRL + F:

Код:
• CMD:o
• dcmd_o
• YCMD:o
• "o"
• COMMAND:o
These vary depending on the command processor you're using.

If you find any of these, just simply remove the code to do with it.

Otherwise, if it's the normal chat, then the callback is OnPlayerText(playerid, text[]) that you'll need to find and modify to fit your requirements.


Re: How to remove OOC Chat. - Bost - 07.11.2013

My chat is now with /o
I want it only with T > Text > enter


Re: How to remove OOC Chat. - PakistaniBaba - 07.11.2013

You want that the all people allowed to chat in /o (Like Stunt's Server)


Re: How to remove OOC Chat. - DanishHaq - 07.11.2013

Find the /o command like I told you then, and then simply find the OnPlayerText and show it to us.


Re: How to remove OOC Chat. - Bost - 07.11.2013

Aww..
I want my chat to be like in a stunt server.
Only T > Text > Enter
No other command to type for chat.


Re: How to remove OOC Chat. - Elorreli - 07.11.2013

Quote:
Originally Posted by DanishHaq
Посмотреть сообщение
Find the /o command like I told you then, and then simply find the OnPlayerText and show it to us.
Why would an /o command use OnPlayerText?


Re: How to remove OOC Chat. - DanishHaq - 07.11.2013

Quote:
Originally Posted by Elorreli
Посмотреть сообщение
Why would an /o command use OnPlayerText?
He wants to remove the /o command, and that's what I said.

Quote:
Find the /o command like I told you then, and then simply find the OnPlayerText and show it to us.

And then I said to show us the OnPlayerText.

Quote:

Find the /o command like I told you then, and then simply find the OnPlayerText and show it to us.
If you also look carefully, I did say "like I told you"

Quote:

Find the /o command like I told you then, and then simply find the OnPlayerText and show it to us.

And my previous post represents that:

Quote:

Can you give us some specifics? Like are you talking about a command OOC chat, i.e. /o or just the normal chat, i.e. T > type chat > enter?

If you have a command, you'll find it somewhere in your script. Try and search for the following with CTRL + F:

Код:
• CMD:o
• dcmd_o
• YCMD:o
• "o"
• COMMAND:o
These vary depending on the command processor you're using.

If you find any of these, just simply remove the code to do with it.

Otherwise, if it's the normal chat, then the callback is OnPlayerText(playerid, text[]) that you'll need to find and modify to fit your requirements.

Here I told him what to do to find the command, and then after use that callback. I wasn't going to explain the whole thing again to him. So, that's why I told him that in my previous quote.

------ ON TOPIC -------

Try and search in your filterscripts for the command, and remove it from there. The command has got to exist somewhere if it can be used in the game.


Re: How to remove OOC Chat. - Elorreli - 07.11.2013

Quote:
Originally Posted by DanishHaq
Посмотреть сообщение
He wants to remove the /o command, and that's what I said.



And then I said to show us the OnPlayerText.



If you also look carefully, I did say "like I told you"



And my previous post represents that:



Here I told him what to do to find the command, and then after use that callback. I wasn't going to explain the whole thing again to him. So, that's why I told him that in my previous quote.
Still doesn't explain why you mix in OnPlayerText ;9

On topic, I guess you're using some old soggy edit so it's not very likely it uses any command processor, probably just strcmp so search for /o and remove it.


Re: How to remove OOC Chat. - DanishHaq - 07.11.2013

Quote:
Originally Posted by Elorreli
Посмотреть сообщение
Still doesn't explain why you mix in OnPlayerText ;9

On topic, I guess you're using some old soggy edit so it's not very likely it uses any command processor, probably just strcmp so search for /o and remove it.
It does, look at the thread poster's post:

Quote:
Originally Posted by Bost
Посмотреть сообщение
My chat is now with /o
I want it only with T > Text > enter
He wants to remove /o, I told him how to do that.
He wants to make it so it's just T > Text > Enter, I also told him how we can help him with that because currently it could be like a RP chat, i.e. sending the message to players in range of the sender.