How to hide player text
#1

When player says 'My name is Nam' , it will hide player's text. And how to check Strfind in some sentences. Every sentences has 'Dog' player's text will be hide. Sorry for my bad English
Reply
#2

Yeah, I'm sorry for your bad English too. I didn't understand a thing.
Reply
#3

Quote:
Originally Posted by SickAttack
Посмотреть сообщение
Yeah, I'm sorry for your bad English too. I didn't understand a thing.

Example :
Johnson: My name is Johnson
When Johnson said My name is Johnson, in this sentence, there is 'name'. AAAAAAz
Any sentences has 'name', script will hide this sentence. Do you understand??
Reply
#4

Quote:
Originally Posted by HoangNam
Посмотреть сообщение

Example :
Johnson: My name is Johnson
When Johnson said My name is Johnson, in this sentence, there is 'name'. AAAAAAz
Any sentences has 'name', script will hide this sentence. Do you understand??
This section isn't for requests.

1. Get player's name
2. Use strfind and check if the player's name is in a string
3. Return 0 in OnPlayerText to prevent the message from being sent
Reply
#5

PHP код:
public OnPlayerText(playeridtext[])
{
     if(!
strcmp(pName"John"true))
     {
            return 
0;
     }
     return 
1;

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)