OnPlayerText -> do an action at a word?
#8

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
Reply


Messages In This Thread
OnPlayerText -> do an action at a word? - by Rodri99 - 16.07.2015, 14:39
Re: OnPlayerText -> do an action at a word? - by notime - 16.07.2015, 14:39
Re: OnPlayerText -> do an action at a word? - by Rodri99 - 16.07.2015, 14:41
AW: OnPlayerText -> do an action at a word? - by Mencent - 16.07.2015, 14:43
Re: OnPlayerText -> do an action at a word? - by nezo2001 - 16.07.2015, 14:43
Re: OnPlayerText -> do an action at a word? - by lwilson - 16.07.2015, 14:44
AW: OnPlayerText -> do an action at a word? - by Mencent - 16.07.2015, 14:45
Re: OnPlayerText -> do an action at a word? - by Rodri99 - 16.07.2015, 14:52

Forum Jump:


Users browsing this thread: 1 Guest(s)