Jump to content

kamel10

Members
  • Posts

    317
  • Joined

  • Last visited

Everything posted by kamel10

  1. انا ابيه لما يكون مسوي اختصار للكتابة في الشات لما يضغط الاختصار يجيه في الشات الاختصارات ممنوعة
  2. ابغى مود يمنع الاختصارات = bind ابي مود لما يسوي اختصار يجيه في الشات كلام
  3. تم الحل خلاص كنت مسمي المود admin0 خليته admin
  4. addEvent ( "aServer", true ) addEventHandler ( "aServer", _root, function ( action, data, data2 ) if checkClient( "command."..action, source, 'aServer', action ) then return end if ( hasObjectPermissionTo ( source, "command."..action ) ) then local mdata = tostring ( data ) local mdata2 = "" if ( action == "setgame" ) then if ( not setGameType ( tostring ( data ) ) ) then action = nil exports["topbarchat"]:sendClientMessage ( "Error setting game type.", source, 255, 0, 0 ) end triggerEvent ( "aSync", source, "server" ) elseif ( action == "setmap" ) then if ( not setMapName ( tostring ( data ) ) ) then action = nil exports["topbarchat"]:sendClientMessage ( "Error setting map name.", source, 255, 0, 0 ) end triggerEvent ( "aSync", source, "server" ) elseif ( action == "setwelcome" ) then if ( ( not data ) or ( data == "" ) ) then action = "resetwelcome" aRemoveSetting ( "welcome" ) else aSetSetting ( "welcome", tostring ( data ) ) mdata = data end elseif ( action == "settime" ) then if ( not setTime ( tonumber ( data ), tonumber ( data2 ) ) ) then action = nil exports["topbarchat"]:sendClientMessage ( "Error setting time.", source, 255, 0, 0 ) end mdata = data..":"..data2 elseif ( action == "shutdown" ) then setTimer(shutdown, 2000, 1, data) elseif ( action == "setpassword" ) then if ( not data or data == "" ) then setServerPassword ( nil ) action = "resetpassword" elseif ( string.len ( data ) > 32 ) then exports["topbarchat"]:sendClientMessage ( "Set password: 32 characters max", source, 255, 0, 0 ) elseif ( not setServerPassword ( data ) ) then action = nil exports["topbarchat"]:sendClientMessage ( "Error setting password", source, 255, 0, 0 ) end triggerEvent ( "aSync", source, "server" ) elseif ( action == "setweather" ) then if ( not setWeather ( tonumber ( data ) ) ) then action = nil exports["topbarchat"]:sendClientMessage ( "Error setting weather.", source, 255, 0, 0 ) end mdata = data.." "..getWeatherNameFromID ( tonumber ( data ) ) elseif ( action == "blendweather" ) then if ( not setWeatherBlended ( tonumber ( data ) ) ) then action = nil exports["topbarchat"]:sendClientMessage ( "Error setting weather.", source, 255, 0, 0 ) end elseif ( action == "setgamespeed" ) then if ( not setGameSpeed ( tonumber ( data ) ) ) then action = nil exports["topbarchat"]:sendClientMessage ( "Error setting game speed.", source, 255, 0, 0 ) end elseif ( action == "setgravity" ) then if ( setGravity ( tonumber ( data ) ) ) then for id, player in ipairs ( getElementsByType ( "player" ) ) do setPedGravity ( player, getGravity() ) end else action = nil exports["topbarchat"]:sendClientMessage ( "Error setting gravity.", source, 255, 0, 0 ) end elseif ( action == "setwaveheight" ) then if ( not setWaveHeight ( data ) ) then exports["topbarchat"]:sendClientMessage ( "Error setting wave height.", source, 255, 0, 0 ) action = nil else mdata = data end elseif ( action == "setfpslimit" ) then if ( not setFPSLimit ( tonumber ( data ) ) ) then action = nil exports["topbarchat"]:sendClientMessage ( "Error setting FPS Limit.", source, 255, 0, 0 ) end else action = nil end if ( action ~= nil ) then aAction ( "server", action, source, false, mdata, mdata2 ) end return true end exports["topbarchat"]:sendClientMessage ( "Access denied for '"..tostring ( action ).."'", source, 255, 168, 0 ) return false end ) مااقدر اشيل الباس يكتب password has been reset بس ما يصير شيئ
  5. function centerWindow(center_window) local screenW,screenH=guiGetScreenSize() local windowW,windowH=guiGetSize(center_window,false) local x,y = (screenW-windowW)/2,(screenH-windowH)/2 guiSetPosition(center_window,x,y,false) end يقولي '=' expected near function
  6. function OnPlayerKill (killer) if (killer and killer ~= source) then if getPlayerAccount(killer) then local experience = tonumber(getElementData(killer,"experience")) local SourceLevel = getElementData(killer,"level") if ( not SourceLevel ) then SourceLevel = 1 setElementData(killer,"level",1) end if ( levels[SourceLevel+1] ) then local randomExperience = math.random(unpack(ExpRewardForKill)) if (experience) then setElementData(killer,"experience",experience+tonumber(randomExperience)) else setElementData(killer,"experience",randomExperience) end else setElementData(killer,"experience",tonumber(levels[SourceLevel]["experienceRequired"])) end end end end addEvent("onPlayerWasted",true) addEventHandler ("onPlayerWasted", root, OnPlayerKill) يقولي bad argument getplayeraccount
  7. اشغلهم كلهم بعدين بعد ساعة كدة يجي لاق يطفي السيرفر
  8. ممكن تقولي كيف اربطه ؟ يعني اسوي export.Gang_Wars:SetElmentData... ?
  9. عندي سكربت المساعدة كل 4 دقائق تجي كلمة فيها مشكلة ؟
  10. مو بس انا السيرفر كله يطفى مشان اللاق
  11. لسة يقولي Warning : bad argument outputChatBox
  12. ذا مود الاي فون دي دة يخليه عربي ابيه لما يخلي الاي فون عربي تتغير لعة القيم مود ايضا
  13. مكثر من المودات الي مشغلها ولا للي مشغلها والي مو مشغلها ؟
  14. انا عاطيك بس الفنكشن الي فيه مشكلة موب الكود كامل
  15. اخوي يقولي bad argument setelmentdata
  16. function translateGUIs (translateFrom,translateTo) if translateFrom == "en" and translateTo == "ar" then for _,types in pairs (allGUITypes) do for i,v in pairs (getElementsByType (types)) do local text = guiGetText (v) if trsltAR[text] then guiSetText (v,trsltAR[text]) setElementData(v, "Language", 1) end end end end if translateFrom == "ar" and translateTo == "en" then for _,types in pairs (allGUITypes) do for i,v in pairs (getElementsByType (types)) do local text = guiGetText (v) if trsltEN[text] then guiSetText (v,trsltEN[text]) setElementData(v, "Language", 0) end end end end
  17. عندي مشكلة اللاق بسيرفري والله جربت كم استضافة ثانية واللاق نفسه فتحت الدوبيق مالقيت فيه ولا مشكلة مافي حل يعني
  18. شباب تجيني Warning : bad argument outputChatBox helpmessage = { {"#FFFF00[Help]: #2E9AFEلللانتحار اكتب في اف 8 kill"}, {"#FFFF00[Help]: #2E9AFE لفتح الاي فون اضغط F1"}, {"#FFFF00[Help]: #2E9AFEاضغط F2 للحركات"}, {"#FFFF00[Help]: #2E9AFEلمعرفة اوقات المهمات اكتب في اف 8 alltime"}, {"#FFFF00[Help]: #2E9AFEلللفتح جهاز الشرطة اكتب اضغط F5"}, {"#FFFF00[Help]: #2E9AFEاضغط اف 3 لتحكم بسيارتك الخاصة"}, {"#FFFF00[Help]: #2E9AFEاضغط F7 لفتح لوحة الفيب"}, {"#FFFF00[Help]: #2E9AFEللحصول على فيب ب 6 مليون كلم اي ادمن"}, {"#FFFF00[Help]: #2E9AFEللحصول على ادمن تواجد و ساعد ورجى عدم الطلب"}, {"#FFFF00[Help]: #2E9AFEلفتح الجي بي اس اكتب في اف 8 gps"}, } addEventHandler ("onResourceStart", resourceRoot, function () for _,v in ipairs (getElementsByType ("player")) do setTimer ( function() local msg = unpack(helpmessage[math.random(#helpmessage)]) outputChatBox ( msg, v, 255, 0, 0, true ) end, 10000, 0 ) end end)
  19. ابغى مود شوب الملابس يعني لازم شخصيته سي جي ويغير الملابس و يحفظها ابيه
×
×
  • Create New...