-
Posts
378 -
Joined
-
Last visited
Everything posted by Sparrow
-
Sorry for this but, when I start my server mins ago and I get this error:
-
I think you need to add "thePlayer" before () in line 11.
-
First of all, create the window gui, then bind it by: function onResourceStart () bindKey ("F1", "down", --the function to show the GUI, Ex: "showGUI"--) guiSetVisible (--The window variable name here--, false) end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), onResourceStart) Complete the rest by yourself
-
function addASecond() local serial = getPlayerSerial(player) local oldData = executeSQLSelect( "TimePlayed", "TimePlayed","serial = '" .. serial .. "'") newData = tonumber(oldData[1]["TimePlayed"]) + 1 setElementData(player,"TimePlayed",tonumber(getElementData(player,"TimePlayed"))+1) executeSQLUpdate ( "TimePlayed", "TimePlayed = '"..newData.."'","serial = '" .. serial .. "'") end addEventHandler ( "onClientRender", getRootElement(), addASecond)
-
He say he want it with dxscoreboard so it's: function Columns() exports.dxscoreboard:scoreboardAddColumn("TimePlayed") setElementData(localPlayer,"TimePlayed",0) end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), Columns)
-
Ok thanks for information
-
I do hours ago fighting style script, but I It to be saved so players didn't need to buy it again. Give me functions needed and I'll try to do it. Thank you.
-
This is the errors @csmit. @SolidSnake, thank you, no errors on it. Thank you both for helping.
-
This are the errors in /debigscript 3
-
Thank you, I'm new scripter for that there is failers on it
-
I'll try this. You only change setTimer(triggerPingKicker,5000,0) ?
-
Is it as that? Client: local maxPing = 350 function checkPing() local ping = getPlayerPing(source) if (ping > 350) then outputChatBox("#FF0000Your ping is high, lower it please.", source) end end addEventHandler("onPlayerJoin", getRootElement(), checkPing) function getPings() if getPlayerPing(getLocalPlayer()) >= maxPing then triggerServerEvent("ping.onKickHighPing",getLocalPlayer(),getPlayerPing(getLocalPlayer())) end end setTimer (5000,0) Server: local maxPing = 350 function onHighPing() kickPlayer(source,source,"Your ping is over the limit. (over "..maxPing..")") outputChatBox("#FF0000"..getPlayerName(source).."#FF0000 has been kicked for high ping.",root,255,0,0,true) end addEvent( "ping.onKickHighPing", true ) addEventHandler( "ping.onKickHighPing", getRootElement(), onHighPing )
-
Hello all, Today visite some severs and I saw that many players lagging, so I think to do a pingkick script. Because I'm new in scripting, I don't know the functions, so can someone post them in reply? I'll try to script this script. Thank you.
-
Hello all, I do a script that only admins, Super Moderator and Moderators canjoin staff team in TAB, it's workign well, but the probletem is the skin, I set it a CJ skin this clothes, I get the skin but the clothes no. This is my script: function setStaffSkin (thePlayer) if (isObjectInACLGroup ("user."..getAccountName(getPlayerAccount(thePlayer)),aclGetGroup("Admin", "Moderator", "SuperModerator"))) then elseif setPedSkin ( thePlayer, 0 ) then addPedClothes ( source, "suit2grn", "suit2", 0 ) addPedClothes ( source, "elvishair", "elvishair", 1 ) addPedClothes ( source, "suit1trblk2", "suit1tr", 2 ) addPedClothes ( source, "shoespatz", "shoe", 3 ) addPedClothes ( source, "neckdollar", "neck", 13 ) addPedClothes ( source, "watchcro2", "watch", 14 ) addPedClothes ( source, "glasses01dark", "glasses01", 15 ) addPedClothes ( source, "boaterblk", "boater", 15 ) end end addCommandHandler ( "staff", setStaffSkin) And this is the errors: Some help please. Thank you.
-
You can use edit button (triple posting in 1 day wow)
-
Bien
-
Yes Castillo, it's from wiki, maybe I messed up with them
-
It seems that no one wanna help me.
-
Hello all, Now I do this script, it's accepting servre rules before start playing IG, I got this probleme when I start the script. This is server side of the script (rules_s): function acceptRules(button,state) if button == "left" and state == "up" then guiSetVisible(rulesWindow, false) showCursor(false,false) outputChatBox("You successfully accept our rules, enjoy playing.") if rulesWarningTimer then killTimer(rulesWarningTimer) rulesWarningTimer = nil end end end function inactivePlayer(status) if status == 1 then outputChatBox("Please accept our rules or you will be kicked.") rulesWarningTimer = setTimer(inactivePlayer,30000,1,2) elseif status == 2 then outputChatBox("Second Warning: Please accept our rules you will be kicked.") rulesWarningTimer = setTimer(inactivePlayer,30000,1,3) elseif status == 3 then outputChatBox("Last Warning: Please accept our rules you will be kicked.") rulesWarningTimer = setTimer(inactivePlayer,30000,1,3) elseif status == 4 then triggerServerEvent("clientKickInactivePlayer",getLocalPlayer()) end end addEvent("clientKickInactivePlayer",true) addEventHandler("clientKickInactivePlayer",root,kickInactivePlayer) Thank you for your help.