How to remove OOC Chat.
#1

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

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

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

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

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

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

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?
Reply
#8

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

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)