Jump to content

Dimos7

Members
  • Posts

    1,546
  • Joined

  • Last visited

Everything posted by Dimos7

  1. guiSetInputMode("no_binds_when_editing")
  2. if you have samp map editor the windows that is easy removed and you can remove them by scripting
  3. addVehicleSirens(car, 1, 2, false, true, true, false) if getVehicleSirensOn then setVehicleSirensOn(car, false) else setVehicleSirensOn(car, true) end local boolv = setVehicleSirens (car, 1, 0, 0, 10, 145, 0, 0, 200, 150) car its not defind in here but there you go
  4. Dimos7

    Mute

    addEventHandler("onClientGUIClick", root, function() if (source == mywind[18]) then local selectedTime = guiGridListGetSelectedItem(mywind[2]) local selectedPlayer = guiGridListGetItemText(mywind[16], guiGridListGetSelectedItem(mywind[16], 1)) if (selectedTime and selectedPlayer) then theselectedPlayer = getPlayerFromName(selectedPlayer) if (not isElement(theselectedPlayer)) then return end muteTime = (selectedTime == 0 and 60*1000 or selectedTime == 1 and 120*1000 or selectedTime == 2 and 180*1000 or selectedTime == 3 and 240*1000 or selectedTime == 4 and 300*1000 or selectedTime == 5 ) triggerServerEvent("onAdminMute", root, theselectedPlayer, muteTime) return end elseif (source == mywind[17]) then local selectedPlayer = guiGridListGetItemText(mywind[16], guiGridListGetSelectedItem(mywind[16], 1)) if (selectedPlayer) then theselectedPlayer = getPlayerFromName(selectedPlayer) if (not isElement(theselectedPlayer)) then return end triggerServerEvent("onAdminMute", root, theselectedPlayer) end end end ) dont put player and again player its confused try it like this its better
  5. can you give the code post it in code button so see what you have
  6. for your information the lights coming from that setVehicleSirens(vehicle, point, x, y, z, red, green, blue, alpha, minaplha)
  7. you need to put that function too getVehicleSirensOn setVehicleSirensOn
  8. because the light are from that function setVehicleSirens
  9. press e then click f and go to remove world object and done
  10. Dimos7

    help!

    you have other script with blips maybe its something bugged with that script or be better if you put the blip same with marker but not attach it just a idea
  11. Dimos7

    help!

    what exacly happening when you driving after some meter the blip its dissapear?
  12. Dimos7

    group panel

    in mysql not connect now idk why
  13. Dimos7

    group panel

    addCommandHandler("group", function(source) if exports.Qacl:isPlayerInGroup(source, "admin") or exports.Qacl:isPlayerInGroup(source, "subadmin") then triggerClientEvent(source, "createWindow", getRootElement()) triggerClientEvent(source, "fillagrid", getRootElement()) triggerClientEvent(source, "fillcgrid", getRootElement()) triggerClientEvent(source, "fillugrid", getRootElement()) end end ) function addGroup(clientname, group) local client=getAccountPlayer(getAccount(clientname)) if isElement(client) then local playerToAdd = getPlayerAccount(client) if not exports.Qacl:isPlayerInGroup(playerToAdd, group)then exports.Qacl:addAccountToGroup(playerToAdd,group) exports.Qcommands:sendMessage("You've been added to: " ..group.. "!", 0, 150, 0, client) end end end addEvent("addPlayerToGroup", true) addEventHandler("addPlayerToGroup", resourceRoot, addGroup) function removeGroup(client, group) local playerToRemove = getPlayerAccount(client) if exports.Qacl:isPlayerInGroup(playerToAdd, group) then exports.Qacl:removeAccountFromGroup(playerToRemove,group) exports.Qcommands:sendMessage("You've been removed from: " ..group.. "!", 0, 150, 0, client) end end addEvent("removePlayerFromGroup", true) addEventHandler("removePlayerFromGroup", resourceRoot, removeGroup) client.lua uniongroups = {"unionrecruit", "unionsoldier" } confedgroups = {"confedrecruit", "confedsoldier"} rpgroups = {"ssmember", "nsamember", "aramember", "lsfdmember", "usocmember"} window = guiCreateWindow(555, 381, 220, 288, "Q:RPG - Group management", false) guiWindowSetSizable(window, false) groupGrid = guiCreateGridList(10, 70, 201, 176, false, window) guiGridListAddColumn(groupGrid, "Groups:", 0.9) addButton = guiCreateButton(10, 254, 95, 25, "Add", false, window) remButton = guiCreateButton(110, 254, 95, 25, "Remove", false, window) closeButton = guiCreateButton(184, 31, 27, 23, "X", false, window) name = guiCreateEdit(0.05, 0.09, 0.75, 0.11, "Enter account name", false, window) function openWindow() showCursor(true) guiSetVisible(window,true) end addEvent("createWindow", true) addEventHandler("createWindow", root, openWindow) function fillUnionGrids() for i,v in ipairs(uniongroups) do guiGridListSetItemText(groupGrid, guiGridListAddRow(groupGrid), 1, v, false, false) end end addEvent("fillugrid", true) addEventHandler("fillugrid", root, fillUnionGrids) function fillConfGrids() for i,v in ipairs(confedgroups) do guiGridListSetItemText(groupGrid, guiGridListAddRow(groupGrid), 1, v, false, false) end end addEvent("fillcgrid", true) addEventHandler("fillcgrid", root, fillConfGrids) function fillAdminGrids() for i,v in ipairs(rpgroups) do guiGridListSetItemText(groupGrid, guiGridListAddRow(groupGrid), 1, v, false, false) end end addEvent("fillagrid", true) addEventHandler("fillagrid", root, fillAdminGrids) function close() if (source == closeButton) then guiSetVisible(window, false) showCursor(false) elseif source==name then guiSetText(source,'') end end addEventHandler("onClientGUIClick", root, close) function addThePlayer(thePlayer) if (source==addButton) then triggerServerEvent("addPlayerToGroup", getRootElement(), guiGetText(name), guiGridListGetSelectedItem(groupGrid)) end end addEventHandler("onClientGUIClick", root, addThePlayer) function removeThePlayer(thePlayer) if (source==remButton) then triggerServerEvent("addPlayerFromGroup", getRootElement(), guiGetText(name), guiGridListGetSelectedItem(groupGrid)) end end addEventHandler("onClientGUIClick", root, removeThePlayer)
  14. Dimos7

    group panel

    i didn't change the client for textbox omg no memo name = guiCreateEdit(0.05, 0.09, 0.75, 0.11, "Enter account name", false, window)
  15. Dimos7

    group panel

    addCommandHandler("group", function(source) if exports.Qacl:isPlayerInGroup(source, "admin") or exports.Qacl:isPlayerInGroup(source, "subadmin") then triggerClientEvent(source, "createWindow", getRootElement()) triggerClientEvent(source, "fillagrid", getRootElement()) triggerClientEvent(source, "fillcgrid", getRootElement()) triggerClientEvent(source, "fillugrid", getRootElement()) end end ) function addGroup(clientname, group) local client=getAccountPlayer(getAccountName(clientname)) if isElement(client) then local playerToAdd = getPlayerAccount(client) if not exports.Qacl:isPlayerInGroup(playerToAdd, group)then exports.Qacl:addAccountToGroup(playerToAdd,group) exports.Qcommands:sendMessage("You've been added to: " ..group.. "!", 0, 150, 0, client) end end end addEvent("addPlayerToGroup", true) addEventHandler("addPlayerToGroup", resourceRoot, addGroup) function removeGroup(client, group) local playerToRemove = getPlayerAccount(client) if exports.Qacl:isPlayerInGroup(playerToAdd, group) then exports.Qacl:removeAccountFromGroup(playerToRemove,group) exports.Qcommands:sendMessage("You've been removed from: " ..group.. "!", 0, 150, 0, client) end end addEvent("removePlayerFromGroup", true) addEventHandler("removePlayerFromGroup", resourceRoot, removeGroup) client.lua uniongroups = {"unionrecruit", "unionsoldier" } confedgroups = {"confedrecruit", "confedsoldier"} rpgroups = {"ssmember", "nsamember", "aramember", "lsfdmember", "usocmember"} window = guiCreateWindow(555, 381, 220, 288, "Q:RPG - Group management", false) guiWindowSetSizable(window, false) groupGrid = guiCreateGridList(10, 70, 201, 176, false, window) guiGridListAddColumn(groupGrid, "Groups:", 0.9) addButton = guiCreateButton(10, 254, 95, 25, "Add", false, window) remButton = guiCreateButton(110, 254, 95, 25, "Remove", false, window) closeButton = guiCreateButton(184, 31, 27, 23, "X", false, window) name = guiCreateMemo(0.05, 0.09, 0.75, 0.11, "Enter account name", false, window) function openWindow() showCursor(true) guiSetVisible(window,true) end addEvent("createWindow", true) addEventHandler("createWindow", root, openWindow) function fillUnionGrids() for i,v in ipairs(uniongroups) do guiGridListSetItemText(groupGrid, guiGridListAddRow(groupGrid), 1, v, false, false) end end addEvent("fillugrid", true) addEventHandler("fillugrid", root, fillUnionGrids) function fillConfGrids() for i,v in ipairs(confedgroups) do guiGridListSetItemText(groupGrid, guiGridListAddRow(groupGrid), 1, v, false, false) end end addEvent("fillcgrid", true) addEventHandler("fillcgrid", root, fillConfGrids) function fillAdminGrids() for i,v in ipairs(rpgroups) do guiGridListSetItemText(groupGrid, guiGridListAddRow(groupGrid), 1, v, false, false) end end addEvent("fillagrid", true) addEventHandler("fillagrid", root, fillAdminGrids) function close() if (source == closeButton) then guiSetVisible(window, false) showCursor(false) elseif source==name then guiSetText(source,'') end end addEventHandler("onClientGUIClick", root, close) function addThePlayer(thePlayer) if (source==addButton) then triggerServerEvent("addPlayerToGroup", getRootElement(), guiGetText(name), guiGridListGetSelectedItem(groupGrid)) end end addEventHandler("onClientGUIClick", root, addThePlayer) function removeThePlayer(thePlayer) if (source==remButton) then triggerServerEvent("addPlayerFromGroup", getRootElement(), guiGetText(name), guiGridListGetSelectedItem(groupGrid)) end end addEventHandler("onClientGUIClick", root, removeThePlayer) try like that idk if it will work
  16. Dimos7

    help!

    the localPlayer not needed on blipattach aslo any error or warning from debugscript?
  17. you mean like health bar with line close rectangle ? if yes then DxDrawBorderedRectangle its a useful function
  18. what is there errors also post the code with code button
  19. with ids in a table yes
  20. function Tags (mensaje, tipo) local cuenta = getAccountName(getPlayerAccount(source)) local nombre = getPlayerName(source) local rojo, verde, azul = getPlayerNametagColor(source) local playerTeam = getPlayerTeam(source) local teamName = getTeamName(playerTeam) if teamName == your team name here and isObjectInACLGroup("user."..cuenta, aclGetGroup("Admin")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("[Dueño] "..getPlayerName(source)..": #FFFFFF"..getPlayerNametagColor(source)..message, root, rojo, verde, azul, true ) outputServerLog("[^Admin^] "..nombre..": "..mensaje)
  21. you can create a gun same with it and replace with the txd you want
  22. so all i need is that 5 functions? set not get?
  23. function makeZombie() if getPlayerTeam(source) == "Infected" then setElementData(source, "zombie", true) end end addEventHandler("onPlayerSpawn", getRootElement(), makeZombie) function removeZombie() if getElementData(source, "zombie") == true then removeElementData(source, "zombie") end end addEventHandler("onPlayerWasted", getRootElement(), removeZombie)
  24. Hello guyes i just wander what function need for make a cruise cotnrol i guess need what else? getElementVelocity setTimer bindKey
×
×
  • Create New...