pirl0
Scripter
- Joined
- Apr 16, 2009
- Messages
- 172
- Reaction score
- 0
Hiho i make script if player swearing then he said
Script :
talkactions/scripts/swearing.lua
In talkactions.xml
Else if is access 3+ then is say normal word.
Code:
~~ Swearing is not allowed on [name ots] ~~
Script :
talkactions/scripts/swearing.lua
Lua:
function onSay(cid, words, param)
if getPlayerAccess(cid) < 3 then
doCreatureSay(cid, "~~ Swearing is not allowed on ".. getConfigInfo('serverName') .." ~~" ,1)
doPlayerSendCancel(cid, "You can't swearing.")
else
return FALSE
end
return TRUE
end
In talkactions.xml
Code:
<talkaction hide="yes" words="fuck" event="script" value="swearing.lua"/>
Else if is access 3+ then is say normal word.