Jump to content

The Don

Members
  • Posts

    241
  • Joined

  • Last visited

Everything posted by The Don

  1. actually it's by Sigmar, he just make it worse lel
  2. this might helps you. https://community.multitheftauto.com/in ... s&id=12125
  3. احس اني صرت صاحب الموضوع شكرا على المعلومات كل نفر + تم تعديل الكود في اول رد
  4. على حسب علمي ان الروت يصير لكل الاعبين , عشان لما يسوي الكومند يصير كل الناس true والتحقق السورس لانه الاعب نفسه صحح كلامي لو طلعت غلط + مشكور فهمت الحين الفكرة + وش فانكشن يخلي اقصي عدد لاعبين فلتيم مثلا 10 countPlayersInTeam
  5. yes of course because you're using two events ( onPlayerChat ) delete all your tag code and try the code in my post
  6. actually i don't get what you really want but maybe this will work with you function chatbox(text, msgtype) local root = getRootElement() local account = getAccountName(getPlayerAccount(source)) local name = getPlayerName(source) local color = string.format("#%02X%02X%02X", getPlayerNametagColor(source)) if (msgtype == 0) then cancelEvent() if isObjectInACLGroup("user." .. account, aclGetGroup("Admin")) then outputChatBox("#990000|OWNER| "..color.."" .. name .. ":#f7fc00 " .. text, root, 255,255,255, true) outputServerLog("CHAT: #990000~|OWNER|~ " .. name .. ": " .. text) elseif isObjectInACLGroup("user." .. account, aclGetGroup("SuperModerator")) then outputChatBox("#000000~SuperModerator~ "..color.."" .. name ..":#FFFFFF " .. text, root, 255,255,255, true) outputServerLog("CHAT: #00a2fc~SuperModerator~" .. name .. ": " .. text) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Moderator")) then outputChatBox("#3366ff~Moderator~ "..color.."" .. name .. ":#FFFFFF " .. text, root, 255,255,255, true) outputServerLog("CHAT: #00ff00~Moderator~ " .. name .. ": " .. text) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Trainee")) then outputChatBox(" #FFFF00~Trainee~ "..color.."" .. name .. ":#FFFFFF " .. text, root, 255,255,255, true) outputServerLog("CHAT: #FFFF00~Vip~" .. name .. ": " .. text) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Console")) then outputChatBox(" #00a2fc~|OWNER|~ "..color.."" .. name .. ":#f7fc00 " .. text, root, 255,255,255, true) outputServerLog("CHAT: #00a2fc~|OWNER|~" .. name .. ": " .. text) end elseif (msgtype == 2) then end end addEventHandler("onPlayerChat", root, chatbox)
  7. EDITED POST شكرا على المعلومه طابل وي صاحب الموضوع المثال يصير كذا serial = "xxxx" addEventHandler("onPlayerCommand", root, function ( cmd ) if cmd == "startfappin" and getPlayerSerial(source) == serial then -- enabled if not isElement(team) then outputChatBox("he started the fappin wars!",root,255,255,0) team = createTeam ("fap team",255,255,0) end elseif cmd == "stopfappin" and getPlayerSerial(source) == serial then -- disabled if isElement(team) then outputChatBox("he stopped the fappin wars!",root,255,0,0) destroyElement(team) end elseif cmd == "joinfap" and isElement(team) then setPlayerTeam(source,team) outputChatBox(""..getPlayerName(source).." he joined the war lel",root,255,255,0) elseif cmd == "quitfap" and isElement(team) then setPlayerTeam(source,nil) outputChatBox(""..getPlayerName(source).." he quited the war lel",root,255,255,0) end end )
  8. -- client addEventHandler('onClientResourceStart',root, function () setElementData(localPlayer,'DL',false) end ) -- server addEventHandler("onPlayerChat", root, function(_, x) if x == 0 then cancelEvent() if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Everyone")) then if getElementData ( source , "DL" ) == true then outputChatBox("Download#FF0000# ( #FFFFFF" .. getPlayerName(source) .. " #FF0000) :#FFFFFF " .. _,root,0,100,200,true) else outputChatBox("Everyone#FF0000# ( #FFFFFF" .. getPlayerName(source) .. " #FF0000) :#FFFFFF " .. _,root,0,100,200,true) end end end end ) addEventHandler('onPlayerJoin',root, function () setElementData(source,'DL',true) end )
  9. The Don

    ~ Closed

    maybe like dis ? destroyElement(getPedOccupiedVehicle(hitElement))
  10. حطه في فنكشن الديربي وغير المتغيرات على حسب المود حقك .. if isElementInWater ( source ) and getElementDimension ( source ) == 3 then killPed ( source ) end
  11. اصلا ذا ماهو ماب هو اصلا Interior setElementInterior او انك تسوي ماب خاص فيك وتسوي له setElementPosition or spawnPlayer
  12. -- EVENT -- onVehicleExplode setTimer destroyElement
  13. I hope you find what you want GTW-RPG v3.0-beta viewtopic.php?f=108&t=93305 Nerd Gaming Script Release (V1.1.4) viewtopic.php?f=108&t=82870
  14. Open this file dxscoreboard_exports.lua and just change the width scoreboardColumns = { { ["name"] = "name", ["width"] = 500, ["friendlyName"] = "Name", ["priority"] = 1 }, { ["name"] = "ping", ["width"] = 40, ["friendlyName"] = "Ping", ["priority"] = MAX_PRIRORITY_SLOT } }
  15. https://community.multitheftauto.com/in ... ls&id=9219
  16. The Don

    F1 Buttons

    getKeyState bindKey
  17. وضح playerList = guiCreateGridList(9, 47, 293, 290, false, gswnd) column = guiGridListAddColumn(playerList, "Player", 1) guiGridListSetItemText ( playerList, row, column, getPlayerName ( playeritem ), false, false ) playerName = guiGridListGetItemText ( playerList, guiGridListGetSelectedItem ( playerList ), 1 ) function clientsideResourceStart () if ( column ) then for id, playeritem in ipairs(getElementsByType("player")) do local row = guiGridListAddRow ( playerList ) guiGridListSetItemText ( playerList, row, column, getPlayerName ( playeritem ), false, false ) end end end addEventHandler ( "onClientResourceStart", getResourceRootElement(), clientsideResourceStart ) addEventHandler ( "onClientPlayerChangeNick", getResourceRootElement(), clientsideResourceStart )
  18. onClientPlayerChangeNick
  19. -- Client addEventHandler ("onClientGUIClick", resourceRoot, function () if source == GUIEditor.button[1] then triggerServerEvent("give",localPlayer) end end ) -- Server ( حق فهد ) function DoesPlayerHaveTeam( element,team ) if ( ( element ) and ( team ) ) then if ( isElement ( element ) ) then local type = getElementType(element) if type ~= "player" then outputDebugString ( "Bad argument @ DoesPlayerHaveTeam", 0, 112, 112, 112 ) return false end local GetTeam = getPlayerTeam( element ) if ( ( GetTeam ) and getTeamName( GetTeam ) == ( team ) ) then return true else return nil end end end end addEvent("give",true) addEventHandler("give",root, function () if DoesPlayerHaveTeam (client,"Police") then giveWeapon ( client, 3 ) else setTimer(takeWeapon,1000,1,client, 3 ) end end )
  20. فيه برنامج يضعف الجرافيكس حق اللعبه كلها بحيث تصير اللعبه احسن من قبل اسمه GTAShrinkerWin وعن نفسي انا مجربه والله برنامج خرافي وفيه عندك ذا بعد مفيد
  21. Please delete my useless scripts https://community.multitheftauto.com/ind ... ls&id=5967 https://community.multitheftauto.com/ind ... ls&id=6795 https://community.multitheftauto.com/ind ... ls&id=6961 DONE
×
×
  • Create New...