MrXz Posted July 15, 2012 Share Posted July 15, 2012 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) Link to comment
Arsilex Posted July 15, 2012 Share Posted July 15, 2012 una cosa donde ejecuta el comando el script el comando "setmap"??? Link to comment
BorderLine Posted July 16, 2012 Share Posted July 16, 2012 este es el viejo panel de tg, hay bastantes topics con respecto a este tema, busca algo parecido por el foro Link to comment
MrXz Posted July 16, 2012 Author Share Posted July 16, 2012 @Yakuza357 : Que yo sepa, ya no hay temas sobre el panel. @pekio123: No entendí la pregunta. Link to comment
CheiN Posted July 16, 2012 Share Posted July 16, 2012 ROBADO DEL TG PANEL ROBOROBOROBOROBOROBOROBO! NOS CREES PENDEJOS! Link to comment
MrXz Posted July 16, 2012 Author Share Posted July 16, 2012 Robo? ._. Es el viejo panel de TG ... acaso no lees lo que dijo @Yakuza357 Además el panel de TG no se puede robar, ya que casi todas las funciones estan en un script server , lo que estoy posteando es un script "server" asi que deja de decir tonterías Link to comment
Arsilex Posted July 17, 2012 Share Posted July 17, 2012 lo que yo digo es que el script necesita ejecutarlo un comando que es el setmap osea que el setmap ejecuta la funciona bla bla bla y entonces se pone el next yo use este para mi panel.. executeCommandHandler("nextmap",thePlayer,mapName) Link to comment
BorderLine Posted July 17, 2012 Share Posted July 17, 2012 function buyMap(thePlayer,mapName) local playerCash = tonumber(loadPlayerData(thePlayer,"cash")) if mapIsAlreadySet == false then if not (mapName == "") then if playerCash >= mapCost then executeCommandHandler("nextmap",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) me parece ke debes darle derechos de admin al resource Link to comment
Recommended Posts