text - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: text (
/showthread.php?tid=483212)
text -
Configuration - 24.12.2013
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
Re: text -
SilentSoul - 24.12.2013
pawn Код:
public OnPlayerText(playerid, text[])
{
if(strfind(text, "hacker", true) != -1
{
SendClientMessage(playerid, -1, "Use: /report [id]");
return 0;
}
return 1;
}
Re: text -
Configuration - 24.12.2013
all text for i say it send me Message Use: /report [id]
Re: text -
Tayab - 24.12.2013
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;
}
Re: text -
Configuration - 24.12.2013
it work thanks man