Jump to content

The Don

Members
  • Posts

    241
  • Joined

  • Last visited

Details

  • Location
    Jeddah City
  • Occupation
    Student
  • Interests
    hmm maybe everything

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

The Don's Achievements

Red-Headed Stepchild

Red-Headed Stepchild (19/54)

0

Reputation

  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
×
×
  • Create New...