#1

hello i wana make if player says hacker send message to chat box SendClientMessage "use /report [id]"
but not only if player say like if(strfind(text, "hacker", true)) but if, in other words means and within the sentence to be sent out to the hacker message for hope you understand
Reply
#2

pawn Код:
public OnPlayerText(playerid, text[])
{
    if(strfind(text, "hacker", true) != -1
    {
        SendClientMessage(playerid, -1, "Use: /report [id]");
        return 0;
    }
    return 1;
}
Reply
#3

all text for i say it send me Message Use: /report [id]
Reply
#4

This should fix it.

By the way Silent you were missing a bracket.
pawn Код:
public OnPlayerText(playerid, text[])
{
    if(strfind(text, "hacker", true) != -1)
    {
        SendClientMessage(playerid, -1, "Use: /report [id]");
        return 0;
    }
    return 1;
}
Reply
#5

it work thanks man
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)