#1

how can i detect if a play'a does OnPlayerText ex:
/q or best tele ever /q
if he does so kick player and sendclientmessage you sir are a moron
Reply
#2

https://sampwiki.blast.hk/wiki/Strfind

pawn Код:
public OnPlayerText(playerid, text[]) {
if(strfind(text, "/q", true) != -1)
{
    SendClientMessage(playerid, 0xFFFFFFFF, "you sir are a moron");
}
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)