-
Posts
306 -
Joined
-
Last visited
-
Days Won
1
Everything posted by Klesh
-
addEventHandler("onPlayerFinish", rootElement, raceWin ) addEventHandler("onPlayerFinish",getRootElement(), givePlayerMoney(Wins, 1200) outputChatBox(getPlayerName ( Wins ) .. " has won $1200 as last player alive",getRootElement(),0,255,0) setElementData(wins,"Points",tonumber(getElementData(win,"Points"))+2) setElementData(source,"Wins",tonumber(getElementData(source,"Wins"))+1) end) what not works?
-
I do a script for race, all works fine excep the the races wins. here is the code localPlayer = getLocalPlayer() function addColumns() exports.scoreboard:scoreboardAddColumn("Wins") end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), addColumns) local playerMoney = getPlayerMoney(source) local playerPoints = getElementData(getLocalPlayer(), "Points") local playerWin = getElementData(getLocalPlayer(), "Wins") local playerWashted = getElementData(getLocalPlayer(), "Deaths") end addEventHandler ( "onPlayerQuit", getRootElement ( ), onPlayerQuit ) addEventHandler ( "onPlayerLogin", getRootElement ( ), onPlayerLogin ) addEvent( "onPlayerWin", true ) function onPlayerWin() givePlayerMoney(winner, 1200) outputChatBox(getPlayerName ( win ) .. " has won $1200 as last player alive",getRootElement(),0,255,0) setElementData(wins,"Points",tonumber(getElementData(win,"Points"))+2) setElementData(wins,"Wins",tonumber(getElementData(wins,"Wins"))+1) end) Only is the wins because the deaths and money works fine. Plz help when the player wins this no adds to scoreboard Example Klesh is the final survivor and in the scoreboard appears +1 wins
-
I have a script, is mine but this have deaths in scoreboard and works fine but when quit and join again the deaths are in 0. What i have to do to save the deaths. addEventHandler("onPlayerWasted",getRootElement(), function () setElementData(source,"Deaths",tonumber(getElementData(source,"Deaths"))+1) end) Thnx For the Help.
-
No the letter, the scoreboard column.
-
I want the column exports.scoreboard:scoreboardAddColumn("Points") in small size. Thnx for Help.
-
Hi every comunity, i do a script for race but i want change the size for points column to small size. PlZ HelP and ThnXs
-
what function can replace that event, because i want when the wins gets 1200 cash, but onPlayerDestructionDerbyWin no works. Any idea??? Thnx For HELP PLZ
-
The userpanel by Castillo is good, but something no works and is the race wins, because when someone wins the event no works, i have to do something to this works, thanxs for help.
-
Only a simple post, no link? Delate This Post.
-
The Script is alredy finish?
-
Hi all comunity, i need help in ghostmode vote, i want the size letters small because the current size are too big. Help And Thnx. local sx, sy = guiGetScreenSize() function GMStart() addEventHandler("onClientRender",getRootElement(),GmDefaultText) end addEvent("onGMStart",true) addEventHandler("onGMStart",getRootElement(),GMStart) function GMStop() removeEventHandler("onClientRender",getRootElement(),GmDefaultText) end addEvent("onGMStop",true) addEventHandler("onGMStop",getRootElement(),GMStop) function GmDefaultText() dxDrawText("PRESIONA G PARA VOTAR GHOSTMODE ",0,(567/900)*sy,(1436/1440)*sx,(669/900)*sy,tocolor(0,0,0,255),2.0,"bankgothic","center","center",false,false,false) dxDrawText("PRESIONA G PARA VOTAR GHOSTMODE",(3/1440)*sx,(570/900)*sy,(1439/1440)*sx,(672/900)*sy,tocolor(255,255,255,255),2.0,"bankgothic","center","center",false,false,false) dxDrawText(votecount.."/"..reqPlayers.." VOTOS RECIVIDOS",(2/1440)*sx,(633/900)*sy,(1430/1440)*sx,(707/900)*sy,tocolor(0,0,0,255),1.5,"bankgothic","center","center",false,false,false) dxDrawText(votecount.."/"..reqPlayers.." VOTOS RECIVIDOS",0,(645/900)*sy,(1439/1440)*sx,(701/900)*sy,tocolor(255,255,255,255),1.5,"bankgothic","center","center",false,false,false) end function UpdateCount(VoteCount,PlayerCount) outputChatBox(VoteCount..PlayerCount) reqPlayers = PlayerCount votecount = VoteCount end addEvent("UpdateCount",true) addEventHandler("UpdateCount",getRootElement(),UpdateCount)
-
My dream is complete, thanks man.
-
Thanks if another people wants this resource please contact me.
-
When i Join in the server and in the admin panel "P" put set team and create one, select me like a menber to put in them, the problem is, when i quit or reconnect i dont in the team. How can save the players when i put them or me in the team. Please and thanks.
-
Thank you solidsnake it works. ty very much
-
Don`t Works only convert object to object. I need how can isntall a only file .map. Help
