Jump to content

Karuzo

Members
  • Posts

    1,213
  • Joined

  • Last visited

Everything posted by Karuzo

  1. Karuzo

    [HELP] Spawn

    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 )
  2. Karuzo

    spawn event

    Could you be more specific?
  3. Karuzo

    [HELP] Spawn

    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 )
  4. Karuzo

    headlight

    Where is thePlayer defined?
  5. Karuzo

    [HELP] Question

    What are you trying to say? If you're trying to decompile a script we won't help you
  6. I don't really know the DayZ script but i heard you have to set your servername like the example in the readme file.
  7. That option is only from 1.4+. idk what you're trying to do gallagher since you mixed up server and client sided functions
  8. He's very well known in the german mta scene, he tried a few times to publish resources with backdoors in it.
  9. Karuzo

    The last reply

    now this will be the final reply! or you all will get reported!
  10. 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)
  11. https://wiki.multitheftauto.com/wiki/GetElementSpeed https://wiki.multitheftauto.com/wiki/SetElementSpeed
  12. So how do you wanna get the front of the player with his position?
  13. You should try to get the element's rotation.
  14. Ah, sorry, wrote it fast and didn't noticed it actually.
  15. Karuzo

    Scrolling

    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 ^^
  16. 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.."')") ...
  17. I think you don't know what you're talkin bout.
  18. You can't use server functions in a clientsided file.
  19. Use a variable to define that the eventhandler was added and then just check it
  20. His code isn't serverside.
×
×
  • Create New...