• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua little script for not talking choosed words (/, !)

GOD Brotherh00d

New Member
Joined
May 5, 2012
Messages
32
Reaction score
0
hey i need script its globalevent or talkaction if someone say words "/lol" or "!lol" then he got error message that he can't write such things, i mean if he use / or ! can anyone send me this?

- - - Updated - - -

function onSay(cid, words, param)
if (msgcontains(msg, "lol")) then
doPlayerSendCancel(cid, "You can not use such things.")
end
return 1
end

/\ in talkactions not working :/
 
You can make the !lol as talkaction words in the talkactions.xml and then remove the "if (msgcontains(msg, "lol")) then" and the "end" above return 1.
 
Yes, it's possible to do.

Look at this example:
XML:
<talkaction words="!online;/online" event="script" value="online.lua"/>
 
Back
Top