God tiburons
New Member
- Joined
- Dec 18, 2010
- Messages
- 25
- Reaction score
- 0
Help i need remove all mount form all player? db?? game?? help
<talkaction words="/rmounts" separator=" " script="removemounts.lua" />
function onSay(player, words, param)
if not player:getGroup():getAccess() then
return true
end
local target
if param == '' then
target = player:getTarget()
if not target then
player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, 'Locks all mounts for certain player. Usage: /mounts <player name>')
return false
end
else
target = Player(param)
end
if not target then
player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, 'Player ' .. param .. ' is not currently online.')
return false
end
if target:getAccountType() >...
In the end, threads like these wind up as the TOP RESULT in google searches for similar issue.
I really hate when i see these, can the thread not be deleted?
10002001 + mountId / 31
<talkaction words="/rmounts" separator=" " script="removemounts.lua" />
function onSay(player, words, param)
if not player:getGroup():getAccess() then
return true
end
local target
if param == '' then
target = player:getTarget()
if not target then
player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, 'Locks all mounts for certain player. Usage: /mounts <player name>')
return false
end
else
target = Player(param)
end
if not target then
player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, 'Player ' .. param .. ' is not currently online.')
return false
end
if target:getAccountType() > player:getAccountType() then
player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, 'Cannot perform action.')
return false
end
for i = 1, 47 do
target:removeMount(i)
end
player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, 'All mounts removed for: ' .. target:getName())
target:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, '[Server] All mounts removed.')
return false
end
]target:addMount(i)
-- INSTEAD OF
target:removeMount(i)