How to format OnPlayerText
#8

PHP код:
public OnPlayerText(playeridtext[]) {    
    new
        
name[MAX_PLAYER_NAME],
        
str[145];
    
GetPlayerName(playeridnameMAX_PLAYER_NAME);
    
format(strsizeof(str), "%s : %s"nametext);
    if(
strfind(str"fuck"true) != -1) {
        
strreplace(str"fuck""****"true);
    }
    
SendClientMessageToAll(-1str);
    return 
0;

Reply


Messages In This Thread
How to format OnPlayerText - by RichKiez - 27.04.2018, 05:53
Re: How to format OnPlayerText - by Dutheil - 27.04.2018, 06:04
Re: How to format OnPlayerText - by RichKiez - 27.04.2018, 06:08
Re: How to format OnPlayerText - by Dutheil - 27.04.2018, 06:11
Re: How to format OnPlayerText - by RichKiez - 27.04.2018, 06:14
Re: How to format OnPlayerText - by Zeus666 - 27.04.2018, 06:18
Re: How to format OnPlayerText - by RichKiez - 27.04.2018, 06:23
Re: How to format OnPlayerText - by Dutheil - 27.04.2018, 06:25
Re: How to format OnPlayerText - by RichKiez - 27.04.2018, 06:30
Re: How to format OnPlayerText - by std - 27.04.2018, 06:34

Forum Jump:


Users browsing this thread: 1 Guest(s)