Jump to content

SaedAmer

Members
  • Posts

    906
  • Joined

  • Last visited

Everything posted by SaedAmer

  1. كفو واصل منتظر جديدك
  2. يجي تحذير من تحقق الاكونت
  3. -- Server Side addEvent("OpenWin",true) addEventHandler("OpenWin", root, function ( ) if isObjectInACLGroup ("user."..getAccountName ( getPlayerAccount ( source ) ),aclGetGroup ("Console") ) then triggerClientEvent ( source,"Open",source ) else outputChatBox("you are not Console") end end ) -------------------- addEventHandler("onPlayerChat", root, playerChat) addEvent("onPlayeropenChat",true) addEventHandler("onPlayeropenChat",root,function () removeElementData(resourceRoot,"chat") end) addEvent("onPlayerCloseChat",true) addEventHandler("onPlayerCloseChat",root,function () setElementData (resourceRoot, "chat",true) end) ------ BLOCK = { "ورع", "ورعين", "كس امك", "امك", "يابن", "يا ابن", "كس اختك", "حمار", "كلب", "العن", "زب", "طيز", "fack", "ass", "mother", "انيك", "خنيث", "_!_", "زق", "كل خرا", "خرا", "كل زق", "ورعين" } Words = { 'وناسة', "حياكم الله في سيرفر" , "اكتب بالبحث" , "بالبحث" , "بسيرفر" , "go to my" , "my server" , "سيرفر" , "طاره" , "6ArH" , "server", "في سيرفر", "طارة", "الوزاره", "الوزارة", "وناسة تايم", "وناسة", "جراند العرب", "جراند" } addEventHandler("onPlayerChat",root, function( text, type) if ( type == 0 ) then for i, v in ipairs ( BLOCK ) do if ( string.find(text,v) ) then cancelEvent ( ) outputChatBox ( "#FF0000x[ نظام المخالفات ]x @ ".. getPlayerName ( source ) .." #FF0000, لقد اهان احد من اعضاء السيرفر ", root, 255, 0, 0, true ) outputChatBox ( "#FF0000x[ نظام المخالفات ]x#FF0000 لقد حصلت علي مخالفة بسبب أهانت احد من اعضاء السيرفر ", source, 255, 0, 0, true ) outputChatBox("#FF0000x[ نظام المخالفات ]x#FF0000 تذكر قال الله تعالى #FFFF00 .\"{SMILIES_PATH}/icon_sad.gif\" alt=\"\" title=\"Sad\" />ما يلفظ من قول الا لديه رقيب عتيد):. #FF0000 صدق الله العظيم ",source,255,0,0,true) return end end for i, v in ipairs ( Words ) do if ( string.find(text,v) ) then cancelEvent ( ) outputChatBox("#FF0000x[ نظام المخالفات ]x @ "..getPlayerName(source).." #FF0000, لقد حاول نشر سيرفر اخر ",root,255,0,0,true) outputChatBox("#FF0000x[ نظام المخالفات ]x#FF0000 لقد حصلت علي مخالفة بسبب محاولة نشرك لسيرفر اخر غير سيرفر الملووك ",source,255,0,0,true) break end end end end) if getElementData(source,"tag") then return cancelEvent() end if type == 1 or type == 2 then return end elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Console")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) return outputChatBox("#FF0000* [ Console ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) else end if getElementData ( resourceRoot, "chat" ) == true then cancelEvent() return outputChatBox ("[C.Console]: Chat has been locked by Console ",source,255,0,0,true) end if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Level 1")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#0099DC* [ Lv.1 ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Level 2")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#2554C7* [ Lv.2 ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Level 3")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#00cc11* [ Lv.3 ] " .. getPlayerName ( source ) ..": #ffFFff" .. text, getRootElement(), r, g, b, true ) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Level 4")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#007700* [ Lv.4 ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Level 5")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#cc0000* [ Lv.5 ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Level 6")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#FF0000* [ Lv.6 ] " .. getPlayerName ( source ) ..": #ffFFff" .. text, getRootElement(), r, g, b, true ) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Head.Admin")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#C11B17* [ Head.Admin ] " .. getPlayerName ( source ) ..": #ffFFff" .. text, getRootElement(), r, g, b, true ) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("V.I.P")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#DCD800* [ VIP ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("SaedAmer")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#cd0000* [ VIP ]#ffff00 سعيد : #ffFFff" .. text, getRootElement(), r, g, b, true ) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("mosp")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#02AB2F* [ AL-MLOok Event's] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("kil")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#DCD800* [ Developer ]x#CCCCCC кιℓℓєя : #ffFFff" .. text, getRootElement(), r, g, b, true ) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Manager")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#347235* [ T-Developer ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin - Ex")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#777777* [ Admin - EX ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Police")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#007F7F* [ Soldier ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Everyone")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#5494A7* [ AL-MLOoK ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) end
  4. كده؟ function shootProjectile() local vehicle = getPedOccupiedVehicle(localPlayer) if(vehicle)then local x, y, z = getElementPosition(vehicle) createProjectile(vehicle, 19, x, y, z) triggerServerEvent("Cheakacl", localPlayer) end end bindKey("vehicle_fire", "down", shootProjectile) سيرفر addEvent('Cheakacl', true) addEventHandler( 'Cheakacl', root, function ( ) if isGuestAccount ( sourceAccount ) then cancelEvent ( ) else if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Console" ) ) then local getPlayerAccount(thePlayer) getAccountName ( account theAccount ) triggerClientEvent ("Cheakacl", localPlayer)
  5. السلام عليكم ده كود يخلي السيارة تطلق صاروخ عاوزه يتحقق اذا الي يقود السيارة كونسول يعطه الصاروخ و اذا مش كونسول ما يعته الصاروخ function shootProjectile() local vehicle = getPedOccupiedVehicle(localPlayer) if(vehicle)then local x, y, z = getElementPosition(vehicle) createProjectile(vehicle, 19, x, y, z) end end bindKey("vehicle_fire", "down", shootProjectile)
  6. if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Console")) then
  7. ما في تعديل علي الكود يخليه ما يقدر يدخل غير سيرفر معين؟
  8. addEventHandler("onPlayerChat",root, function( text, type) if getElementData(source,"tag") then return cancelEvent() end if type == 1 or type == 2 then return end if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Console")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) return outputChatBox("#FF0000* [ Console ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) else end if getElementData ( resourceRoot, "chat" ) == true then cancelEvent() return outputChatBox ("[C.Console]: Chat has been locked by Console ",source,255,0,0,true) end if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Level 1")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#0099DC* [ Lv.1 ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Level 2")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#2554C7* [ Lv.2 ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Level 3")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#00cc11* [ Lv.3 ] " .. getPlayerName ( source ) ..": #ffFFff" .. text, getRootElement(), r, g, b, true ) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Level 4")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#007700* [ Lv.4 ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Level 5")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#cc0000* [ Lv.5 ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Level 6")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#FF0000* [ Lv.6 ] " .. getPlayerName ( source ) ..": #ffFFff" .. text, getRootElement(), r, g, b, true ) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Head.Admin")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#C11B17* [ Head.Admin ] " .. getPlayerName ( source ) ..": #ffFFff" .. text, getRootElement(), r, g, b, true ) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("V.I.P")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#DCD800* [ VIP ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("SaedAmer")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#cd0000* [ VIP ]#ffff00 سعيد : #ffFFff" .. text, getRootElement(), r, g, b, true ) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("mosp")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#02AB2F* [ AL-MLOok Event's] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("kil")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#DCD800* [ Developer ]x#CCCCCC кιℓℓєя : #ffFFff" .. text, getRootElement(), r, g, b, true ) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Manager")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#347235* [ T-Developer ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin - Ex")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#777777* [ Admin - EX ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Police")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#007F7F* [ Soldier ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Everyone")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#5494A7* [ AL-MLOoK ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) end end )
  9. يا اخي المود شغال يجيب الوقت فقط بس الديرفت ما يجيب شوف الاكواد حطيت تعديل
  10. اخ نكست ما يظهر شئ بالدي بق
  11. عملتها نفس الشئ تظهر
  12. اقصد لما اقفل الفري روم و اقفل التاج الكلمة تتحذف ما تطلع بس لما يكون في مود التاج الكلمة تطلع
  13. السلام عليكم المفرود يجيب التوب في الوقت و الديرفت بس ما يجيب الديرفت local rankTable = {} local oldTick = 0 local timeToUpdate = 3000 -- delay 3 second to dont get lag, list update only 3 sec after player choose guiComboBoxAddItem(Combobox,"Play Time")--Tempo Total Vivo guiComboBoxAddItem(Combobox,"Dirft")--Tempo Total Vivo Gridilist = guiCreateGridList(0.04, 0.15, 0.93, 0.83, true, JanelaPrincipal) guiGridListAddColumn(Gridilist, "Player Name", 0.5) guiGridListAddColumn(Gridilist, "Value", 0.5) guiSetVisible(JanelaPrincipal,false) addEventHandler ( "onClientGUIComboBoxAccepted", Combobox,onComboboxChange) oldTick = getTickCount() end) function onComboboxChange() local item = guiComboBoxGetSelected(Combobox) local text = tostring(guiComboBoxGetItemText(Combobox,item)) if(text == "Choose Classification")then return end local currentTick = getTickCount() if(currentTick-oldTick>=timeToUpdate)then oldTick = currentTick triggerServerEvent("onTopPlayerListRequest",localPlayer,text) end end addEvent("onClientReceiveTopListTable",true) addEventHandler("onClientReceiveTopListTable",root, function(t) rankTable = t UpdateTopList() end) function UpdateTopList() guiGridListClear(Gridilist) for k,v in ipairs(rankTable) do local row = guiGridListAddRow(Gridilist) guiGridListSetItemText(Gridilist,row,1,v["playerName"],false,false) guiGridListSetItemText(Gridilist,row,2,v["Value"],false,false) end end function ToggleTopGui() local guiS = guiGetVisible(JanelaPrincipal) guiSetVisible(JanelaPrincipal,not guiS) showCursor(not guiS) guiSetInputEnabled(not guiS) end bindKey("F7","down",ToggleTopGui) ------------------------- function convertNumber ( number ) local formatted = number while true do formatted, k = string.gsub(formatted, "^(-?%d+)(%d%d%d)", '%1,%2') if ( k==0 ) then break end end return formatted end function updateTopList(name, top, i) local row = guiGridListAddRow ( Gridilist ) guiGridListSetItemText ( Gridilist, row, column, "" .. i .. "-", false, false ) guiGridListSetItemText ( Gridilist, row, column1, tostring(name), false, false ) guiGridListSetItemText ( Gridilist, row, column2, convertNumber(top), false, false ) guiGridListSetItemColor( Gridilist, row, column1, 255, 255, 0) guiGridListSetItemColor( Gridilist, row, column2, 0, 180, 255) guiGridListSetItemColor( Gridilist, row, column, 255, 0, 0) end addEvent("updateTop", true) addEventHandler("updateTop", root, updateTopList) function update() guiGridListClear(Gridilist) end addEvent("deltTop", true) addEventHandler("deltTop", root, update) سيرفر -- rank system local playTime = {} function onLogin(old,current) if(current and not isGuestAccount(current))then local timeHour = tonumber(getAccountData(current,"hour"))or 0 local timeMinute = tonumber(getAccountData(current,"minute"))or 0 local timeSecond = tonumber(getAccountData(current,"second"))or 0 if(not playTime[source])then playTime[source] = { ["hour"] = 0, ["min"] = 0, ["sec"] = 0 } end playTime[source]["hour"] = timeHour playTime[source]["min"] = timeMinute playTime[source]["sec"] = timeSecond end end addEventHandler("onPlayerLogin",root,onLogin) function onQuit() local acc = getPlayerAccount(source) if(acc and not isGuestAccount(acc))then local timeHour = playTime[source]["hour"] or 0 local timeMin = playTime[source]["min"] or 0 local timeSec = playTime[source]["sec"] or 0 local name = getPlayerName(source) local nickAcc = string.gsub(name,"#%x%x%x%x%x%x","") setAccountData(acc,"hour",timeHour) setAccountData(acc,"minute",timeMin) setAccountData(acc,"second",timeSec) setAccountData(acc,"PlayerName",nickAcc) playTime[source] = nil end end addEventHandler("onPlayerQuit",root,onQuit) function onWasted(_,killer,_,body) if(killer and getElementType(killer)=="player" and killer~=source)then addPlayerKillCount(killer) addWastedCount(source) end if(killer and getElementType(killer)~="player" and killer~=source)then addWastedCount(source) end if(body == 9 and (getElementType(killer)=="player" or getElementType(killer)=="ped"))then addHeadShotCount(killer) end end addEventHandler("onPlayerWasted",root,onWasted) function onPedWasted(_,killer,_,body) local isZumbie = getElementData(source,"zombie") or false if(killer and getElementType(killer) == "player" and isZumbie)then addZombieKillCount(killer) if(body == 9)then addHeadShotCount(killer) end end end addEventHandler("onPedWasted",root,onPedWasted) function addHeadShotCount(p) local acc = getPlayerAccount(p) if(acc and isGuestAccount(acc)==false)then local hs = tonumber((getAccountData(acc,"HeadShots"))) or 0 setAccountData(acc,"HeadShots",hs+1) end end function addZombieKillCount(p) local acc = getPlayerAccount(p) if(acc and isGuestAccount(acc)==false)then local zk = tonumber((getAccountData(acc,"Zombies Kills"))) or 0 setAccountData(acc,"Zombies Kills",zk+1) end end function addPlayerKillCount(p) local acc = getPlayerAccount(p) if(acc and isGuestAccount(acc)==false)then local pk = tonumber((getAccountData(acc,"Players Kills"))) or 0 setAccountData(acc,"Players Kills",pk+1) end end function addWastedCount(p) local acc = getPlayerAccount(p) if(acc and isGuestAccount(acc)==false)then local w = tonumber((getAccountData(acc,"Wasted"))) or 0 setAccountData(acc,"Wasted",w+1) end end function onChangeNick(old,new) local acc = getPlayerAccount(source) if(acc and isGuestAccount(acc)==false)then local nickAcc = string.gsub(new,"#%x%x%x%x%x%x","") setAccountData(acc,"PlayerName",nickAcc) end end addEventHandler("onPlayerChangeNick",root,onChangeNick) addEvent("onTopPlayerListRequest",true) addEventHandler("onTopPlayerListRequest",root, function(text) local allAccounts = getAccounts() local sendTable = {} local data = 0 for k,v in ipairs(allAccounts) do local name = getAccountName(v) local dataHour = tonumber(getAccountData(v,"hour")) or 0 local dataMin = tonumber(getAccountData(v,"minute")) or 0 local dataSec = tonumber(getAccountData(v,"second")) or 0 if(text == "Play Time")then data = dataHour+DividiveIfMoreZero(dataMin,60)+DividiveIfMoreZero(dataSec,3600) else data = tonumber(getAccountData(v,text) or 0)or 0 end if(data>0)then table.insert(sendTable,{["playerName"] = name,["Value"] = data}) end end table.sort(sendTable,function(a,b) return tonumber(a["Value"] or 0)>tonumber(b["Value"] or 0) end) table.setMaxIndex(sendTable,10) if(text == "Play Time")then for i=1,#sendTable do local timeString = "" local nAcc = getAccount(sendTable[i]["playerName"]) local hourS = getAccountData(nAcc,"hour") or 0 local minS = getAccountData(nAcc,"minute") or 0 local secS = getAccountData(nAcc,"second") or 0 hourS = tostring(hourS) minS = tostring(minS) secS = tostring(secS) timeString = hourS..":"..minS..":"..secS sendTable[i]["Value"] = timeString end end for i=1,#sendTable do local acc = getAccount(sendTable[i]["playerName"]) local accRealName = getAccountData(acc,"PlayerName") if(accRealName and tostring(accRealName)~="false")then sendTable[i]["playerName"] = accRealName end end triggerClientEvent(client,"onClientReceiveTopListTable",client,sendTable) end) function table.setMaxIndex(t,n) if(#t>n)then while(#t>n)do table.remove(t) end end end function DividiveIfMoreZero(v,d) if(v>0)then return (v/d) end return 0 end -- save function SavePlayTime() local players = getElementsByType("player") for k,v in ipairs(players) do if(not playTime[v]) then playTime[v] = { ["hour"] = 0, ["min"] = 0, ["sec"] = 0 } end playTime[v]["sec"] = tonumber(playTime[v]["sec"]+1) convertTime(v,playTime[v]["min"],playTime[v]["sec"]) local hour = playTime[v]["hour"] local min = playTime[v]["min"] local sec = playTime[v]["sec"] local acc = getPlayerAccount(v) if(acc and isGuestAccount(acc)==false)then setAccountData(acc,"hour",hour) setAccountData(acc,"minute",min) setAccountData(acc,"second",sec) end end setTimer(SavePlayTime,1000,1) end setTimer(SavePlayTime,1000,1) function ResetTopPlayers() local allAccounts = getAccounts() for k,v in ipairs(allAccounts) do setAccountData(v,"hour",0) setAccountData(v,"minute",0) setAccountData(v,"second",0) setAccountData(v,"Zombies Kills",0) setAccountData(v,"HeadShots",0) setAccountData(v,"Players Kills",0) setAccountData(v,"Wasted",0) end outputChatBox("[server]: Clear Top 10 list!") end function resetConsoleTop(p) local accName = getAccountName(getPlayerAccount(p)) if(isObjectInACLGroup("user." .. accName, aclGetGroup("Console")))then ResetTopPlayers() else outputChatBox("Only console can clear Top 10 list!",p) end end addCommandHandler("rplayer",resetConsoleTop) function convertTime(source,m,s) if(s>=60)then playTime[source]["min"] = tonumber(playTime[source]["min"]+1) playTime[source]["sec"] = 0 end if(m>=60)then playTime[source]["hour"] = tonumber(playTime[source]["hour"]+1) playTime[source]["min"] = 0 end end ------------------------------- drift_mejor = 0 addEventHandler( 'onResourceStart', getResourceRootElement(getThisResource()), function( ) executeSQLQuery( 'CREATE TABLE IF NOT EXISTS Drift_top_byS3Dd (Owner, Score, Name)' ) end ) function getPlayerFromNamePart(name) if name then for i, player in ipairs(getElementsByType("player")) do if
  14. تمام اخ نصور شكرا بس لما احته ما تاج الكلمة تظهر
  15. لما اكتب اي كلم حتي لو كتبت سعيد يجي كل دا بالشات outputChatBox ( "#FF0000x[ نظام المخالفات ]x @ ".. getPlayerName ( source ) .." #FF0000, لقد اهان احد من اعضاء السيرفر ", root, 255, 0, 0, true ) outputChatBox ( "#FF0000x[ نظام المخالفات ]x#FF0000 لقد حصلت علي مخالفة بسبب أهانت احد من اعضاء السيرفر ", source, 255, 0, 0, true ) outputChatBox("#FF0000x[ نظام المخالفات ]x @ "..getPlayerName(source).." #FF0000, لقد حاول نشر سيرفر اخر ",root,255,0,0,true) outputChatBox("#FF0000x[ نظام المخالفات ]x#FF0000 لقد حصلت علي مخالفة بسبب محاولة نشرك لسيرفر اخر غير سيرفر الملووك ",source,255,0,0,true)
×
×
  • Create New...