17.09.2010, 18:04
I wanna create when someone says a world like the F word. It will display this in chat:
Seven: [0]: Cows give milk and that rules soo bad..
Seven: [0]: Cows give milk and that rules soo bad..
public OnPlayerText(playerid, text[])
{
if(strfind(text, "fuck", true) != -1) //-1 < If the text IS found in the string
{
SendPlayerMessageToAll(playerid, "Cows are freaking awesome you weirdo!");
return 0;
}
public OnPlayerText(playerid, text[])
{
if(strfind(text, "fuck", true) != -1) //-1 < If the text IS found in the string
{
new string[128]; format(string, sizeof string, "[%d]: Cows are freaking awesome you weirdo!");
SendPlayerMessageToAll(playerid, string);
return 0;
}
return 1;
}