OnPlayerText usage?
#5

Quote:
Originally Posted by Ben7544
Посмотреть сообщение
Well, I just wonder how can I make '****' for example, when player sends "fuck" for example.
pawn Код:
public OnPlayerText(playerid, text[])
{
    new string[128], Name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, Name, sizeof(Name));
    if(strcmp(text, "fuck", true) == 0) { format(string, sizeof(string), "%s(%d): ****", Name, playerid); SendClientMessageToAll(color, string); }
    return 1;
}
Reply


Messages In This Thread
OnPlayerText usage? - by Ben7544 - 13.04.2011, 16:07
Re: OnPlayerText usage? - by MP2 - 13.04.2011, 16:10
Re: OnPlayerText usage? - by Ben7544 - 13.04.2011, 16:12
Re: OnPlayerText usage? - by MP2 - 13.04.2011, 16:14
Re: OnPlayerText usage? - by Skylar Paul - 13.04.2011, 16:15
Re: OnPlayerText usage? - by MP2 - 13.04.2011, 16:16
Re: OnPlayerText usage? - by Skylar Paul - 13.04.2011, 16:19
Re: OnPlayerText usage? - by Ben7544 - 13.04.2011, 16:37
Re: OnPlayerText usage? - by WillyP - 13.04.2011, 16:49
Re: OnPlayerText usage? - by MP2 - 14.04.2011, 11:51

Forum Jump:


Users browsing this thread: 1 Guest(s)