Guys,I have User panel.Everything works Perfectly just buy map don't work,Please help and tell me which Code i have to post here so that you can help.I am not a scripter.
function()
nextByRedo = true
end)
function resetMapTimer(mapName)
if mapTimer[mapName] then
mapTimer[mapName] = nil
showServerMsg( getRootElement(),"Map",mapName.." can be bought again!")
end
end
function buyMapCommand(player,command,mapString)
local map, errormsg = findMap( mapString )
if not map then
showServerMsg( player,"Next map",errormsg)
return
end
buyMap(player,map,true)
end
addCommandHandler("bm",buyMapCommand)
function onMapStartingStatsReset()
for _,player in ipairs(getElementsByType("player")) do
respawnFix[player] = nil
hunterFix[player] = nil
end
respawnFix = {}
hunterFix = {}
allowPVP()
end
addEvent("onMapStarting",true)
addEventHandler("onMapStarting",getRootElement(),onMapStartingStatsReset)
I thought this will help?