#Paper Posted January 14, 2011 Share Posted January 14, 2011 How i can make a command for rename a TopTime? addCommandHandler( "deletetime", function( player, cmd, place ) if not _TESTING and not isPlayerInACLGroup(player, g_Settings.admingroup) then return end if g_SToptimesManager and g_SToptimesManager.mapTimes then local row = g_SToptimesManager.mapTimes:deletetime(place) if row then g_SToptimesManager:updateTopText() local mapName = tostring(g_SToptimesManager.mapTimes.mapName) local placeText = place and " #" .. tostring(place) or "" outputChatBox( "#ff0000INFO: #00ff00Top time "..placeText.." from '" .. tostring(row.playerName) .. "' deleted by " .. getPlayerName(player), 255, 55, 00, true) outputServerLog( "INFO: Top time"..placeText.." from '" ..tostring(row.playerName).. "' (" ..tostring(row.timeText).. " in " ..mapName.. ") deleted by " .. getAdminNameForLog(player) ) end end end ) This is the command for delete. Link to comment
SDK Posted January 14, 2011 Share Posted January 14, 2011 This is not a request forum. Make it yourself using executeSQLUpdate, or request it at the original author, since this code is copy pasted. Link to comment
#Paper Posted January 15, 2011 Author Share Posted January 15, 2011 This is not a request forum. Make it yourself using executeSQLUpdate, or request it at the original author, since this code is copy pasted. ok, but what tables i must modify? Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now