Jump to content

WASSIm.

Members
  • Posts

    1,411
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by WASSIm.

  1. But i have moree, full function: addEventHandler("onClientGUIClick", resourceRoot, function() -- Player Tab local name = exports["ZA-system"]:guiGridListGetSelectedText(GUIMain.gridlist[1]) if (source == GUIMain.gridlist[1]) then local name = exports["ZA-system"]:guiGridListGetSelectedText(GUIMain.gridlist[1]) triggerServerEvent("onAdminCheckPayer", localPlayer, name) elseif (source == GUIMain.button[1]) then triggerEvent("onClientAdminEditPanel", localPlayer, "ban", name, nil, "Reason..") elseif (source == GUIMain.button[2]) then triggerEvent("onClientAdminEditPanel", localPlayer, "kick", name, nil, "Reason..") elseif (source == GUIMain.button[3]) then triggerServerEvent("onAdminEditPanel", localPlayer, "freeze", name) elseif (source == GUIMain.button[4]) then triggerEvent("onClientAdminEditPanel", localPlayer, "mute", name, nil, "Reason..") elseif (source == GUIMain.button[5]) then triggerServerEvent("onAdminEditPanel", localPlayer, "kill", name) elseif (source == GUIMain.button[6]) then triggerServerEvent("onAdminEditPanel", localPlayer, "see", name) elseif (source == GUIMain.button[7]) then -- NOTHING elseif (source == GUIMain.button[8]) then triggerEvent("onClientAdminEditPanel", localPlayer, "set", name, "armour", "100") elseif (source == GUIMain.button[9]) then triggerEvent("onClientAdminEditPanel", localPlayer, "set", name, "health", "200") elseif (source == GUIMain.button[10]) then triggerEvent("onClientAdminEditPanel", localPlayer, "set", name, "level", "1") elseif (source == GUIMain.button[11]) then triggerEvent("onClientAdminEditPanel", localPlayer, "set", name, "weapon", "0") elseif (source == GUIMain.button[12]) then triggerEvent("onClientAdminEditPanel", localPlayer, "set", name, "nick", name) elseif (source == GUIMain.button[13]) then triggerEvent("onClientAdminEditPanel", localPlayer, "set", name, "money", "0") elseif (source == GUIMain.button[14]) then triggerServerEvent("onAdminEditPanel", localPlayer, "fixvehicle", name) elseif (source == GUIMain.button[15]) then triggerServerEvent("onAdminEditPanel", localPlayer, "blowvehicle", name) elseif (source == GUIMain.button[16]) then triggerServerEvent("onAdminEditPanel", localPlayer, "warpme", name) elseif (source == GUIMain.button[17]) then triggerServerEvent("onAdminEditPanel", localPlayer, "warphim", name) elseif (source == GUIMain.button[18]) then triggerEvent("onClientAdminEditPanel", localPlayer, "smessage", name, nil, "...") elseif (source == GUIMain.button[19]) then triggerServerEvent("onAdminEditPanel", localPlayer, "takescreenshot", name) -- Other Window elseif (source == GUIBan.button[1]) then local reason, time = guiGetText(GUIBan.edit[1]), guiGetText(GUIBan.edit[2]) local timetype = exports["ZA-system"]:guiGridListGetSelectedText(GUIBan.gridlist[1]) local serial = guiCheckBoxGetSelected(GUIBan.checkbox[1]) local ip = guiCheckBoxGetSelected(GUIBan.checkbox[2]) local account = guiCheckBoxGetSelected(GUIBan.checkbox[3]) triggerServerEvent("onAdminEditPanel", localPlayer, "ban", name, reason, time, timetype, serial, ip, account) elseif (source == GUIBan.button[2]) then exports["ZA-system"]:guiWindowShow(GUIBan.window[1], false) elseif (source == GUIOther.button[1]) then local text = guiGetText(GUIOther.edit[1]) local type = getElementData(GUIOther.window[1], "type") if (type == "kick") or (type == "smessage") then triggerServerEvent("onAdminEditPanel", localPlayer, type, name, text) else triggerServerEvent("onAdminEditPanel", localPlayer, "set", name, type, text) end elseif (source == GUIOther.button[2]) then exports["ZA-system"]:guiWindowShow(GUIOther.window[1], false) elseif (source == GUIMute.button[1]) then local reason, time = guiGetText(GUIMute.edit[1]), guiGetText(GUIMute.edit[2]) local timetype = exports["ZA-system"]:guiGridListGetSelectedText(GUIMute.gridlist[1]) local global = guiCheckBoxGetSelected(GUIMute.checkbox[1]) local team = guiCheckBoxGetSelected(GUIMute.checkbox[2]) local localc = guiCheckBoxGetSelected(GUIMute.checkbox[3]) triggerServerEvent("onAdminEditPanel", localPlayer, "mute", {name, reason, time, timetype, global, team, localc}) elseif (source == GUIMute.button[2]) then exports["ZA-system"]:guiWindowShow(GUIMute.window[1], false) end -- Ban -- Speaker local url = guiGetText(GUIMain.edit[3]) --local name = exports["ZA-system"]:guiGridListGetSelectedText(GUIMain.gridlist[1], 1) --local url2 = exports["ZA-system"]:guiGridListGetSelectedText(GUIMain.gridlist[1], 2) if (source == GUIMain.button[23]) then triggerServerEvent("onAdminEditPanel", localPlayer, "music", url) elseif (source == GUIMain.button[24]) then triggerServerEvent("onAdminEditPanel", localPlayer, "music", url) elseif (source == GUIMain.button[25]) then triggerServerEvent("onAdminEditPanel", localPlayer, "attachmusic", url) elseif (source == GUIMain.button[26]) then triggerServerEvent("onAdminEditPanel", localPlayer, "movemusic", url) elseif (source == GUIMain.button[27]) then triggerServerEvent("onAdminEditPanel", localPlayer, "removemusic", url) elseif (source == GUIMain.button[27]) then triggerServerEvent("onAdminEditPanel", localPlayer, "pausemusic", url) end end)
  2. Hi guys, i working on custom admin panel and when kick someone with panel its says "Please pute kick reason" but when use command on console the player got kicked, please help Client triggerServerEvent("onAdminEditPanel", localPlayer, type, name, text) Server addEvent("onAdminEditPanel", true) addEventHandler("onAdminEditPanel", root, function (command, ...) if (command) and (...) then outputDebugString(table.concat({...}, ", ")) executeCommandHandler("c"..command, source, ...) end end) addCommandHandler("ckick", function (theAdmin, _, name, reason) local thePlayer = getPlayerFromName(name) if not (thePlayer) then exports["ZA-hud"]:outputDxHelp("The player is not found", theAdmin, 255, 0, 0) return end if not (reason) or (reason == "") then exports["ZA-hud"]:outputDxHelp("Please pute kick reason", theAdmin, 255, 0, 0) return end kickPlayer(thePlayer, theAdmin, reason) end)
  3. Slm, Normalment wa7ed ibi3 fi servers 3andou site, inti le a3titna proof raw flous madhmona wala proof raw mafomach lag wala proof raw host 9wi wala 7ata info 3al server (slot/localtion...) wala info 3al payment wala server test wa kamal 3abad mata3tich thi9a fi hosts mta3 la3rab ala5tr kothro 9aleba wa d8of Monich n3ayer fik just nansa7 fik wa rabi m3ak
  4. outputChatBox("Alina wa 3alik", getPlayerFromName("IHEB"))
  5. can you give us more info what do you want to do ?
  6. HI GUYS, so i have problem with this, sometime bot die and don't triggered on event onPedWasted
  7. Stolen from my server: https://community.multitheftauto.com/ind ... s&id=11566 DONE
  8. you can download one exmple from MTA Community
  9. 7ot IP mta3 VPS fil browser ken 5damlk raw yamchi site mta3ek wa tnajam ta3mlou edit fi /var/www
  10. same message and on server list like server offline
  11. HI MTA team, i have problem... i can't join my server i don't know if only my server or there other server i can't join its problem only with me my friends can join my server but only me i can't so please help
  12. WASSIm.

    [Question]

    on my server i cancel login and logout command by cancel onPlayerCommand
  13. WASSIm.

    [Question]

    you can by cancelEvent & onPlayerCommand
  14. sahla barcha najam na3ti commands bach tsob wa trigal serverk ken t7ab ama wlh zayad windows le yazi yakel akthar RAM wa le yazi a8la bi barcha wa 3alakifch chnawa t7ab
  15. yo can make save data on element data change but make time save for anti spamming
  16. SO... look at your code again
×
×
  • Create New...