• 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!

Command to debug player

Nightimarez

New Member
Joined
Jul 24, 2008
Messages
287
Reaction score
2
Could someone make a command to debug a player's client? So it closes their bot and wouldn't have any scripts turned on.
 
uhm if you wanna piss your players off I guess so.

just make a talkaction that sends an FYI box bigger than their window

doSendPlayerFYI(cid,"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\")

? I don't see the usefulness in this.
 
Can you try to fix this please. I can't get the (doPlayerSendPopupFYI) part correct. Btw, I wan't to use it to close the player's client if they're using a bot.

Code:
function onSay(cid, words, param, channel)
	local pid = 0
	if(param == '') then
		pid = getCreatureTarget(cid)
		if(pid == 0) then
			doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.")
			return true
		end
	else
		pid = getPlayerByNameWildcard(param)
	end

	if(not pid or (isPlayerGhost(pid) and getPlayerGhostAccess(pid) > getPlayerGhostAccess(cid))) then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player " .. param .. " is not currently online.")
		return true
	end

	if(isPlayer(pid) and getPlayerAccess(pid) >= getPlayerAccess(cid)) then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You cannot debug this player.")
		return true
	end

	doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, getCreatureName(pid) .. " has been debuged.")
	doPlayerSendPopupFYI (cid,"debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug")
	return true
end
 
LUA:
function onSay(cid, words, param)
    if(param == "") then
        doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Name required.")
        return TRUE
    end
local z = getPlayerByNameWildcard(param)
if(not z or (isPlayerGhost(z) and getPlayerGhostAccess(z) > getPlayerGhostAccess(cid))) then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player " .. param .. " is not currently online.")
		return true
	end 
if(isPlayer(z) and getPlayerAccess(z) >= getPlayerAccess(cid)) then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You cannot debug this player.")
		return true
	end	
	doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, getCreatureName(pid) .. " has been debuged.")
	doPlayerSendPopupFYI (z,"debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug")
	return true
end
 
Sorry i missed changing one of your Pid's to z. And if that doesnt work (it should) use the one below this.

LUA:
function onSay(cid, words, param)
    if(param == "") then
        doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Name required.")
        return TRUE
    end
local z = getPlayerByNameWildcard(param)
if(not z or (isPlayerGhost(z) and getPlayerGhostAccess(z) > getPlayerGhostAccess(cid))) then
                doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player " .. param .. " is not currently online.")
                return true
        end 
if(isPlayer(z) and getPlayerAccess(z) >= getPlayerAccess(cid)) then
                doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You cannot debug this player.")
                return true
        end     
        doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, getCreatureName(z) .. " has been debuged.")
        doPlayerSendPopupFYI (z,"debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug")
        return true
end

LUA:
function onSay(cid, words, param)
    if(param == "") then
        doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Name required.")
        return TRUE
    end
local z = getPlayerByNameWildcard(param)
        doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, getCreatureName(z) .. " has been debuged.")
        doPlayerSendPopupFYI (z,"debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug")
        return true
end
 
Code:
function onSay(cid, words, param)
	if(param == "") then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Name required.")
		return TRUE
    end
	
local z = getPlayerByNameWildcard(param)

	if(not z or (isPlayerGhost(z) and getPlayerGhostAccess(z) > getPlayerGhostAccess(cid))) then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player " .. param .. " is not currently online.")
		return true
	end
	
	if(isPlayer(z) and getPlayerAccess(z) >= getPlayerAccess(cid)) then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You cannot debug this player.")
		return true
	end    
	doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, getCreatureName(z) .. " has been debuged.")
	doPlayerPopupFYI (z,"debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug-debug")
return true
end
 
Back
Top