How to make server respond with a sendclientmessage? - 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: How to make server respond with a sendclientmessage? (
/showthread.php?tid=611282)
How to make server respond with a sendclientmessage? -
Youssefree - 04.07.2016
Hello,
How to make a reponse client message,
Ex.: If the play write "anything" in the chatbox , the server will respond with a SendClientMessage , pls help !
Re: How to make server respond with a sendclientmessage? -
Runn3R - 04.07.2016
OnPlayerText...
Try to create the code yourself.
Re: How to make server respond with a sendclientmessage? -
Youssefree - 04.07.2016
Quote:
Originally Posted by Runn3R
OnPlayerText...
Try to create the code yourself.
|
Thanks for giving me the basics
Re: How to make server respond with a sendclientmessage? -
Runn3R - 04.07.2016
https://sampwiki.blast.hk/wiki/Strfind
Re: How to make server respond with a sendclientmessage? -
iGetty - 04.07.2016
pawn Code:
public OnPlayerText(playerid, text[])
{
if(strfind(text, "text", true) != -1)
{
SendClientMessage(playerid, COLOUR, "Message text");
return 0;
}
return 1;
}
Re: How to make server respond with a sendclientmessage? -
Youssefree - 04.07.2016
Quote:
Originally Posted by Runn3R
|
Thanks
Quote:
Originally Posted by iGetty
pawn Code:
public OnPlayerText(playerid, text[]) { if(strfind(text, "text", true) != -1) { SendClientMessage(playerid, COLOUR, "Message text"); return 0; } return 1; }
|
Thanks Too