Hola a todos!, bueno encontré en mi baúl de scripts antiguos y encontre un 'Race-userpanel', lo inicie y pues vi 'Buymap' pero cuando doy a comprar, no sale nada, ademas no hay nada en "/debugscript 3", estaba intentando modificarlo pero igual no funciona =/
Si alguien supiera de esto, por favor ayúdenme D:
se los agradecería bastante.
function buyMap(thePlayer,mapName)
local playerCash = tonumber(loadPlayerData(thePlayer,"cash"))
if mapIsAlreadySet == false then
if not (mapName == "") then
if playerCash >= mapCost then
triggerEvent("onExternalNextmapRequest",thePlayer,thePlayer,mapName)
else
outputChatBox("#0095FF* #FFFFFFYou don't have enough money to set a map!",thePlayer,255,255,255,true)
end
else
outputChatBox("#0095FF* #FFFFFFPlease select a map from the list first!",thePlayer,255,255,255,true)
end
else
outputChatBox("#0095FF* #FFFFFFA map is already set at the moment! Please try again later.",thePlayer,255,255,255,true)
end
end
function resetMapSetStatus()
mapIsAlreadySet = false
end
addEventHandler("onMapStarting",getRootElement(),resetMapSetStatus)
addEvent("onScriptSetNextMap",true)
addEventHandler("onScriptSetNextMap",getRootElement(),
function (mapName)
thePlayer = source
local playerCash = tonumber(loadPlayerData(thePlayer,"cash"))
savePlayerData(thePlayer,"cash",playerCash-mapCost)
outputChatBox("#FFFFFFNextmap: "..getPlayerName(thePlayer).."#FFFFFF has bought a next map!",getRootElement(),255,255,255,true)
outputChatBox("#FFFFFFNextmap: #FF8800"..mapName,getRootElement(),255,255,255,true)
mapIsAlreadySet = true
scoreboardRefresh(thePlayer)
end)
addEvent("onRaceSetNextMap",true)
addEventHandler("onRaceSetNextMap",getRootElement(),
function ()
mapIsAlreadySet = true
end)