5. Incomplete Problem Description:
- Post as much useful information as possible. If the problem is about something on your server, post the server version and client version. Also always post the errors you get and the scripts with the problems.
https://otland.net/threads/updated-block-ips-0-3-6.93613
and some sort of;
if isPlayer(cid) and (check if channel parameter is private) and getPlayerStorageValue(cid,BLOCKKEY) == 1 then
return true
end
could work i guess. But that would block people using spells aswell if typing it in private channel
Nono this is a way of blocking certain people from typing in Private meddage as i said, implement this source edit and ill fix the lua script for you later todayI already tried IP blocking the guy, but he keeps changing his IP so it makes no difference. I guess blocking his private channel communications would solve it.
Nono this is a way of blocking certain people from typing in Private meddage as i said, implement this source edit and ill fix the lua script for you later today
you might already have this function included in tfs 0.4, not sure, try it out;I don't know what do add/replace in the .cpp file(s). I'm not a programmer, sorry.
<talkaction words="illegalWords" default="1" script="blocktalk.lua"/>
function onSay(cid, words, param, channel)
local block_private_msg = 68696
if isPlayer(cid) and getPlayerStorageValue(cid,block_private_msg) > 0 and channel == CHANNEL_PRIVATE then
return true
end
return false
end
you might already have this function included in tfs 0.4, not sure, try it out;
XML:<talkaction words="illegalWords" default="1" script="blocktalk.lua"/>
blocktalk.lua
Lua:function onSay(cid, words, param, channel) local block_private_msg = 68696 if isPlayer(cid) and getPlayerStorageValue(cid,block_private_msg) > 0 and channel == CHANNEL_PRIVATE then return true end return false end
and set storage of player 68696 to above 0 in order for it to block him talking in private chat
He will just create a new char and the limitations will be gone yet again. You can't prevent this other than disallowing people from posting his ip adress / domain name.As I have already said: "I already tried IP blocking the guy, but he keeps changing his IP so it makes no difference. I guess blocking his private channel communications would solve it."
Alright, I will try the script. But what if the player storage doesn't appear?