Posts: 152
Threads: 68
Joined: Dec 2014
How can i send a client message of lock when a player tell a specify word?
I just need the line and i will make stocks, thanks
Posts: 198
Threads: 3
Joined: Nov 2008
Reputation:
0
What do you want to happen, explain in detail? o.O
Posts: 152
Threads: 68
Joined: Dec 2014
For example if a player tell: commands help, automatically a message will appear on chat telling : use /cmds, how can i do an action on a player word, it's some hard to explain? That's easy man, otherwise thanks.
Posts: 196
Threads: 83
Joined: May 2014
Reputation:
0
You mean /help will automatically send a message "use /cmds" ?
Posts: 152
Threads: 68
Joined: Dec 2014
watch guys
if(strfind(text, "sony commands help", true) != -1 || strfind(text, "commands help", true) != -1){
if(sony[playerid] == 1){
if(stringContainsIP(text))
{
SendClientMessage(playerid, white, "Sir, i am just a ChatBot i can't play other Servers");
return 1;
}
new str[128];
format(str, sizeof(str), "Sir %s, to watch Server Commands use /cmds, /ohelp, /help or /sdcteles", PlayerName2(playerid));
SendClientMessage(playerid, white, str);
} else {
SendClientMessage(playerid,white,"Sorry Sir, but i cannot understand very well your request, make a simple word");
return 1;
}
}
but when sony = 1 no message appears, and when sony = 0 appear the : i cant understand your request, i am making a bot but it doesnt work like i want