How to make server respond with a sendclientmessage?
#1

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 !
Reply
#2

OnPlayerText...

Try to create the code yourself.
Reply
#3

Quote:
Originally Posted by Runn3R
View Post
OnPlayerText...

Try to create the code yourself.
Thanks for giving me the basics
Reply
#4

https://sampwiki.blast.hk/wiki/Strfind
Reply
#5

pawn Code:
public OnPlayerText(playerid, text[])
{  
    if(strfind(text, "text", true) != -1)
    {
        SendClientMessage(playerid, COLOUR, "Message text");
    return 0;
    }
    return 1;
}
Reply
#6

Quote:
Originally Posted by Runn3R
View Post
Thanks
Quote:
Originally Posted by iGetty
View Post
pawn Code:
public OnPlayerText(playerid, text[])
{  
    if(strfind(text, "text", true) != -1)
    {
        SendClientMessage(playerid, COLOUR, "Message text");
    return 0;
    }
    return 1;
}
Thanks Too
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)