anksel Posted May 16, 2012 Share Posted May 16, 2012 function buyMap(thePlayer,mapName) if mapIsAlreadySet == false then if not (mapName == "") then local playerCash = tonumber(loadPlayerData(thePlayer,"cash")) if playerCash >= mapCost then savePlayerData(thePlayer,"cash",playerCash-mapCost) triggerEvent("onExternalNextmapRequest",thePlayer,thePlayer,mapName) outputChatBox("#0FC0FC#* #FFFFFFNextmap: "..getPlayerName(thePlayer).."#FFFFFF has bought a next map!",getRootElement(),255,255,255,true) outputChatBox("#0FC0FC#* #FFFFFFNextmap: #ABCDEF"..mapName,getRootElement(),255,255,255,true) mapIsAlreadySet = true local oldmapbuys = loadPlayerData(thePlayer,"mapBuys") savePlayerData(thePlayer,"mapBuys", oldmapbuys + 1) CheckAchievement(thePlayer,13) scoreboardRefresh(thePlayer) else outputChatBox("#0FC0FC#* #FFFFFFYou don't have enough money to set a map!",thePlayer,255,255,255,true) end else outputChatBox("#0FC0FC#* #FFFFFFPlease select a map from the list first!",thePlayer,255,255,255,true) end else outputChatBox("#0FC0FC#* #FFFFFFA map is already set at the moment! Please try again later.",thePlayer,255,255,255,true) end end Link to comment
Guest Guest4401 Posted May 16, 2012 Share Posted May 16, 2012 This isn't your script and you, yourself don't know what's the error/problem? Link to comment
Jaysds1 Posted May 16, 2012 Share Posted May 16, 2012 This isn't your script and you, yourself don't know what's the error/problem? If this isn't your script then we can not help you, if this came from another scripter then ask them if you could modify there resource, maybe they could even help you with it. Link to comment
TwiX! Posted May 16, 2012 Share Posted May 16, 2012 we not want help to guys, who stole the scripts,close please Link to comment
Castillo Posted May 17, 2012 Share Posted May 17, 2012 We don't help people who steal other's work. Topic locked. Link to comment
Recommended Posts