Karuzo
Members-
Posts
1,213 -
Joined
-
Last visited
Everything posted by Karuzo
-
addEventHandler("onPlayerLogin",root, function() local accName = getAccountName ( getPlayerAccount ( source ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "V.I.P" ) ) the spawnPlayer(source,x,y,z) end end )
-
addEventHandler("onPlayerLogin",root, function() local accName = getAccountName ( getPlayerAccount ( source ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "V.I.P" ) ) the spawnPlayer(source,x,y,z) end end )
-
Really useful! Good job.
-
What are you trying to say? If you're trying to decompile a script we won't help you
-
I don't really know the DayZ script but i heard you have to set your servername like the example in the readme file.
-
That option is only from 1.4+. idk what you're trying to do gallagher since you mixed up server and client sided functions
-
!!!!!DOnt use this resource, anti item duplicat for dayz!!!!
Karuzo replied to C[re]ative_w0rk|s's topic in Scripting
He's very well known in the german mta scene, he tried a few times to publish resources with backdoors in it. -
now this will be the final reply! or you all will get reported!
-
What should this be : setElementData(selected3,ComboS) ? You need to set a "key" where you can save the data to. Like setElementData(selected3,"test",ComboS) --client addEventHandler("onClientGUIClick",SureWindow, function (b) if b == "left" and source == SureGive then local selected1 = guiGridListGetItemText(VIP_GiveMainGrid, guiGridListGetSelectedItem(VIP_GiveMainGrid), VIP_GiveVIPName) local selected2 = guiGridListGetItemText(VIP_GiveMainGrid, guiGridListGetSelectedItem(VIP_GiveMainGrid), VIP_GiveVIPRank) local ComboS = guiComboBoxGetItemText(SureCombo,guiComboBoxGetSelected(SureCombo)) if ( selected1 ) then if ComboS ~= "" then local selected3 = getPlayerFromName(selected1) if (selected3) then exports["TopBarChat"]:sendClientMessage("#ff0000* #00ff00You have given VIP to "..selected1,255,255,255,true) triggerServerEvent("giveSelected",localPlayer,localPlayer,selected1,selected2,selected3,ComboS) end end end end end) --server addEventHandler("onPlayerJoin",getRootElement(), function() if ( getPlayerSerial(source) == "D5FF7C8E58745AE326AD72702D60ECA1" ) then setElementData(source, "VIP", "Premium" ) end end) addEvent("giveSelected",true) addEventHandler("giveSelected",getRootElement(), function(lp,selected1,selected2,selected3,ComboS) setElementData(selected3,"test",ComboS) exports["TopBarChat"]:sendClientMessage("#FF0000* #00ff00You have gotten VIP by "..lp,selected3,255,255,255,true) end)
-
https://wiki.multitheftauto.com/wiki/GetElementSpeed https://wiki.multitheftauto.com/wiki/SetElementSpeed
-
So how do you wanna get the front of the player with his position?
-
You should try to get the element's rotation.
-
Ah, sorry, wrote it fast and didn't noticed it actually.
-
If a player uses the "mouse_down" "key" you could make offset = offset - 10. If a player uses the "mouse_up" key you could make offset = offset + 10. You have to do some maths to do this, and you also have to calculate where it should stop, otherwise it would go out of the scoreboard or will show a blank scoreboard ^^
-
Maybe like this? local hours,minutes rootElement = getRootElement() ... function realTime() local time = getRealTime() hours = time.hour minutes = time.minute end addEventHandler("onPlayerQuit",rootElement,realTime) -- Later in my code dbExec(connect,"INSERT INTO DM (lastSeen,timePlayed,cash,moneyUse,moneyWon,timeJoin,toPlayer) VALUES ('"..hours..":"..minutes.."','0','0','0','0','0','"..account.."')") ...
-
I think you don't know what you're talkin bout.
-
You can't use server functions in a clientsided file.
-
Use a variable to define that the eventhandler was added and then just check it
-
His code isn't serverside.
