Jump to content

Help me Userpanel


Waleedbhai

Recommended Posts

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?

Link to comment
  • 3 weeks later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...