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.
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
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
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
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
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