-
Posts
306 -
Joined
-
Last visited
-
Days Won
1
Everything posted by Klesh
-
Now works, because function get and not eventhandler, thnks and can you give the debug script link pls! Especial Thnks to Solid Snake
-
No more information? omg simple post -.-
-
I will try this one.
-
Isnt created, no appear in score, pls if u can test it. If it is possible antoher function?
-
No works, (deaths) no appears on scoreboard
-
i dont understand, you says i call wrong onPlayerWashted for addEventHandler("onPlayerWashted",getRootElement(),?
-
Hi i have an error but i dont know where i do a server side and client side but no shows at scoreboard, here are the codes ocalPlayer = getLocalPlayer() function addColumns() exports.scoreboard:scoreboardAddColumn("Points") exports.scoreboard:scoreboardAddColumn("Deaths") setElementData(localPlayer,"Points",0) setElementData(localPlayer,"Deaths",0) end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), addColumns) local playerMoney = getPlayerMoney(source) local playerPoints = getElementData(getLocalPlayer(), "Points") local playerWashted = getElementData(getLocalPlayer(), "Deaths") end client-side addEvent("onPlayerDestructionDerbyWin",true) addEventHandler("onPlayerDestructionDerbyWin",getRootElement(), function (winner) outputChatBox(getPlayerName ( winner ) .. " Win and give 3 Points",getRootElement(),0,255,0) setElementData(winner,"Points",tonumber(getElementData(winner,"Points"))+3) end) addEventHandler("onPlayerWashted",getRootElement(), function () setElementData(source,"Deaths",tonumber(getElementData(source,"Deaths"))+1) end) server-side
-
Thanks it works. You are great Aiboforcen
-
i dont understan, can explain better or any code
-
Hi comunity i do a script for race but i wanna add Health Vehicle, but this no shows. Some Health can be good. localPlayer = getLocalPlayer() function addColumns() exports.scoreboard:scoreboardAddColumn("Car Health") setElementData(localPlayer,"Car Health",0) end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), addColumns) local playerHealth = getElementHealth(source) end end
-
This resource is ready? and if it is, when player left and join again, the player still in the team?
-
Can be the meta file, check it if you put the right code like this script src="Tmap.lua" type=="client"/> or script src="Tmap.lua" type="server"/> Try.
-
Mayby try to onPlayerWashted
-
omg Finally really works, for my self, its great thankssssss.
-
The beluga code is right but only shows the window but now the buttons and the letters
-
I dont understand becuase i guied by another script login, i do with gui editor and a functions but the problem is the window login at start no appears, what is wrong ? some help can be good
-
Like this? resourceRoot = getResourceRootElement() GUIEditor_Button = {} Btn_log = guiCreateButton Btn_log = guiCreateButton loginwindow = = guiCreateWindow escript = guiCreateWindow(272,149,433,431,"eSports script by Ghosts/Klesh",false) lb_s = guiCreateLabel(76,38,282,98,"eSports script",true,escript) guiLabelSetColor(lb_s,0,0,255) guiLabelSetVerticalAlign(lb_s,"top") guiLabelSetHorizontalAlign(lb_s,"center",false) guiSetFont(lb_s,"sa-header") lb_u = guiCreateLabel(9,95,422,42,"User name",true,escript) guiLabelSetColor(lb_u,255,255,255) guiLabelSetVerticalAlign(lb_u,"top") guiLabelSetHorizontalAlign(lb_u,"center",false) guiSetFont(lb_u,"sa-header") e_u = guiCreateEdit(64,140,309,45,"",true,escript) but_r = guiCreateButton(102,196,238,50,"register",true,escript) lb_p = guiCreateLabel(5,260,422,42,"Password",true,escript) guiLabelSetColor(lb_p,255,255,255) guiLabelSetVerticalAlign(lb_p,"top") guiLabelSetHorizontalAlign(lb_p,"center",false) guiSetFont(lb_p,"sa-header") e_p = guiCreateEdit(68,309,309,45,"",true,escript) GUIEditor_Button[1] = guiCreateButton(110,364,238,50,"login",true,escript) --- --- --- --- --- guiSetVisible (escript, true) guiSetText(e_u,getPlayerName(getLocalPlayer()) function guiClick (button, state, absoluteX, absoluteY) uname = guiGetText ( e_u ) pass = guiGetText ( e_p ) if ( source == Btn_log ) then triggerServerEvent ("login", getLocalPlayer(), uname, pass) elseif ( source == Btn_reg ) then triggerServerEvent ("register", getLocalPlayer(), uname, pass) end end addEventHandler ("onClientGUIClick", getRootElement(), guiClick) function hide () guiSetVisible ( loginwindow, false ) showCursor (false) end addEvent ( "hide", true ) addEventHandler ( "hide", getLocalPlayer(), hide ) function show () guiSetVisible ( loginwindow, true ) showCursor (true) end addEvent ( "show", true ) addEventHandler ( "show", getLocalPlayer(), show ) function start () triggerServerEvent ( "checkaccname", getLocalPlayer() ) end addEventHandler ( "onClientResourceStart", getResourceRoot,start)
-
I will try thnks, later i will come if works.
-
Thnks but only shows the window and i need to show all, pls help.
-
I do a gui script login when is join to the server, but the gui not show on begin> here is the code resourceRoot = getResourceRootElement() escript = guiCreateWindow(272,149,433,431,"eSports script by Ghosts/Klesh",false) lb_s = guiCreateLabel(76,38,282,98,"eSports script",true,escript) guiLabelSetColor(lb_s,0,0,255) guiLabelSetVerticalAlign(lb_s,"top") guiLabelSetHorizontalAlign(lb_s,"center",false) guiSetFont(lb_s,"sa-header") lb_u = guiCreateLabel(9,95,422,42,"User name",true,escript) guiLabelSetColor(lb_u,255,255,255) guiLabelSetVerticalAlign(lb_u,"top") guiLabelSetHorizontalAlign(lb_u,"center",false) guiSetFont(lb_u,"sa-header") e_u = guiCreateEdit(64,140,309,45,"",true,escript) but_r = guiCreateButton(102,196,238,50,"register",true,escript) lb_p = guiCreateLabel(5,260,422,42,"Password",true,escript) guiLabelSetColor(lb_p,255,255,255) guiLabelSetVerticalAlign(lb_p,"top") guiLabelSetHorizontalAlign(lb_p,"center",false) guiSetFont(lb_p,"sa-header") e_p = guiCreateEdit(68,309,309,45,"",true,escript) GUIEditor_Button[1] = guiCreateButton(110,364,238,50,"login",true,escript) --- --- --- --- --- guiSetVisible (escript, true) guiSetText ( e_u, getPlayerName ( player ) ) end function guiClick (button, state, absoluteX, absoluteY) uname = guiGetText ( e_u ) pass = guiGetText ( e_p ) if ( source == Btn_log ) then triggerServerEvent ("login", getLocalPlayer(), uname, pass) elseif ( source == Btn_reg ) then triggerServerEvent ("register", getLocalPlayer(), uname, pass) end end addEventHandler ("onClientGUIClick", getRootElement(), guiClick) function hide () guiSetVisible ( loginwindow, false ) showCursor (false) end addEvent ( "hide", true ) addEventHandler ( "hide", getLocalPlayer(), hide ) function show () guiSetVisible ( loginwindow, true ) showCursor (true) end addEvent ( "show", true ) addEventHandler ( "show", getLocalPlayer(), show ) function start () triggerServerEvent ( "checkaccname", getLocalPlayer() ) end addEventHandler ( "onClientResourceStart", getResourceRo
-
Hi comunity i have a problem and this is the problem, i do a gui with gui editor (race panel) but i dint know what i have to do to show the gui and the the buttons works, how can i do that? some tutorial to know how create a button or shop event. note the wiki info is not valid. thnx for help
-
Is great idea because to many no want talk with keyboard for a reason and the voicechat in the future version can have bugs or problems like all people speaking at the same time, but if someone can do do that or the comunity, congrats for script or something. GOOD NOTICE.
-
from your script userpanel because your race wins in scoreboard no works and i trying to modify to works, but why you ondestruccionwin? that function exist, what another function can replace ondestruccionderbwin, like onPlayerFinish onPlayerRaceFinish but this is for checkpoint and is for destruccion derby mode. some function to replace OnDestruccionWin