Jump to content

Simple.

Members
  • Posts

    1,004
  • Joined

  • Days Won

    1

Everything posted by Simple.

  1. انت شكلك تكتب اسم اللاعب !!! اكتب حساب اللاعب لاتكتب اسمه + ي شباب مايحتاج كل ذي المشاكل فيه خطاء حط حلها والي يبي يصحح يصحح السالفه مب تحجير ترا !
  2. -- #Client addEventHandler ( "onClinetGUIClick",resourceRoot, function ( ) if source == اسم الزر then AccName = guiGetText ( اسم الايديت ) if AccName and AccName ~= "" then triggerServerEvent ( "GiveAdmin", getRootElement(), AccName ) end end end ) -- #Server addEvent ( "GiveAdmin", true ) addEventHandler ( "GiveAdmin", getRootElement(), function ( Acc ) local Account = getAccount ( Acc ) if Account then aclGroupAddObject (aclGetGroup("Admin"), "user."..Account) end end ) ماجربته
  3. حوسسه !!!! كيف حاط بالتريقر الفنكشن الي مسويه ؟ وحاط الاند قبل الافنت ومو مسوي addEventHandler بسيرفر ومو مسوي فنكشن وتتحقق ان الحساب الي بالايديت معه كونسل وبعدين تعطيه ادمن ؟ كودك كله خططاء
  4. onClientGUIClick -- Event guiGetText triggerServerEvent addAccount
  5. addEventHandler("onPlayerWasted",getRootElement(), function ( ammo, attacker, weapon, bodypart ) if attacker then if ( attacker ~= source and getElementType ( attacker ) == "player" ) then if ( getElementData ( attacker, "kills" ) == 3 ) then outputChatBox ( "#00ff00ThePlayer".. getPlayerName(attacker) .." #ff0000Killed 3", root, 255, 0, 0, true ) triggerClientEvent ( attacker, "next" , attacker ) end end end end ) -- Client local screenW, screenH = guiGetScreenSize() function textRender_ ( ) dxDrawText("Nomniet!! Next Map", (screenW - 259) / 2, (screenH - 93) / 2, ((screenW - 259) / 2) + 259, ( (screenH - 93) / 2) + 93, tocolor(0, 0, 255, 255), 3.00, "pricedown", "left", "top", false, false, true, false, false) end addEvent("next",true) addEventHandler ( "next", root, function ( ) if isElement ( sound ) then destroyElement ( sound ) end local sound = playSound("music.mp3") addEventHandler ( "onClientRender", root, textRender_ ) setTimer ( function ( ) removeEventHandler ( "onClientRender", root, textRender_ ) end, 5000, 1 ) end ) كان فيه خطاء بسيط عدلته ومجربه شغال تمام
  6. -- #Server Side addEventHandler("onPlayerWasted",getRootElement(), function ( ammo, attacker, weapon, bodypart ) if killer then if ( killer ~= source and getElementType ( killer ) == "player" ) then if ( getElementData ( killer, "Kills" ) == 3 ) then outputChatBox ( "#00ff00ThePlayer".. getPlayerName(killer) .." #ff0000Killed 3", root, 255, 0, 0, true ) triggerClientEvent ( "next" , getRootElement() ) end end end end ) -- #Client Side function textRender_ ( ) dxDrawText("Nomniet!! Next Map",337.0,130.0,967.0,265.0,tocolor(0,0,255,0),1.0,"bankgothic","center","center",false,false,false) end addEvent("next",true) addEventHandler ( "next", root, function ( ) if isElement ( sound ) then destroyElement ( sound ) end local sound = playSound("dominating.mp3") addEventHandler ( "onClientRender", root, textRender_ ) setTimer ( function ( ) removeEventHandler ( "onClientRender", root, textRender_ ) end, 5000, 1 ) end ) تفضل مآجربته
  7. اشرح لي وش تبي تسوي بالضبط عشان اعرف كيف اساعدك
  8. ^ دايم اخربط ماعرف وش الي تخليها مايذبح الي معه ض1 عالعموم عدلها تابل ومشكور عالتنبيه
  9. createTeam 4 آرقمنتات بس من وين جبت الخامس؟ وبعدين كيف كل مايدخل لاعب يسوي تيم جديد ! عآلعموم كودك يصير كذا setTeamFriendlyFire ( createTeam ( "Army",255,255,255 ) , true ) addEventHandler ( "onPlayerJoin", getRootElement(), function ( ) setPlayerTeam ( source , getTeamFromName ( "Army") ) end )
  10. addEventHandler("onPlayerWasted",getRootElement(), function ( ammo, attacker, weapon, bodypart ) if killer then if ( killer ~= source and getElementType ( killer ) == "player" ) then local killerkills = getElementData( killer, "killnumber" ) if ( killerkills == false ) then killerkills = 0 if ( killerkills == 1 ) then outputChatBox ( "#00ff00ThePlayer".. getPlayerName(killer) .." #ff0000Killed 1", root, 255, 0, 0, true ) elseif ( killerkills >= 2 ) then outputChatBox ( "#00ff00ThePlayer".. getPlayerName(killer) .." #ff0000Killed 2", root, 255, 0, 0, true ) triggerClientEvent ( "next" ,source ) killerkills = killerkills + 1 setElementData( killer, "killnumber", tonumber ( killerkills ) ) end end end end end )
  11. createTeam 4 آرقمنتات بس من وين جبت الخامس؟ وبعدين كيف كل مايدخل لاعب يسوي تيم جديد ! عآلعموم كودك يصير كذا setTeamFriendlyFire ( createTeam ( "Army", 255, 255, 255 ) , false ) addEventHandler ( "onPlayerJoin", getRootElement(), function ( ) setPlayerTeam ( source , getTeamFromName ( "Army") ) end )
  12. ياخي الفنكشن الي عطيتك اياه يخلي البلب للتيم الي انت تبيه غير تيمه يروح رجع للتيم يرجع !
  13. سو لوب لجميع اللاعبين وجيب اللاعبين الي تيمهم mfls3 وخل لهم البليب ظاهر setElementVisibleTo
  14. قول تبي الاكواد جاهزه وريحنا
  15. مافيه حدث لما يخرج من تيم او يغير تيمه باللعبه لكن هذا مسويه واحد حدث لما يتغير التيم _setPlayerTeam = setPlayerTeam addEvent( "onPlayerChangeTeam", true ) function setPlayerTeam ( thePlayer, theTeam ) if not thePlayer or not theTeam then return false end local oldTeam = getPlayerTeam( thePlayer ) triggerEvent ( "onPlayerChangeTeam", thePlayer, theTeam, oldTeam ) return _setPlayerTeam ( thePlayer, theTeam ) end addEventHandler ( "onPlayerChangeTeam", root, function ( theNewTeam, theOldTeam ) local teamName = getTeamName( theNewTeam ) if teamName ~= "Criminal" then destroyElement ( robhouseMarker ) destroyElement ( robhouseBlip ) end end )
  16. انا عطيتك مثال انت عدل عليه !!
  17. حط اكوادك هنا محد بيآكلها يمكن ماعرف آصححها انا !! live:itzzsmily
  18. لاتعدل عالكود الي فوق اذا تبي تحذفها DestroyBlip ( 40, Mfls3 ) الكود الي فوق لاتجيه
  19. انت الي مسوي لوحة التسجيل؟ ورنا اكوادك !
  20. وش يطلع بالديبوق ؟ وورني كودك الي سويته
  21. onPlayerChat string.find cancelEvent outputChatBox سو جدول للكلمات الممنوعه
  22. هذي آسهل setElementVisibleTo لكن تفضل function DestroyBlip ( id, team ) if id ~= "" and team ~= "" and tonumber ( id ) and team then for k,v in ipairs ( getElementsByType ( "player" ) ) do if getPlayerTeam ( v ) ~= getTeamFromName ( team ) then for _,Blips in ipairs ( getElementsByType ("blip")) do if getBlipIcon ( Blips ) == id then if isElement ( Blips ) then destroyElement ( Blips ) end end end end end end end -- Example addCommandHandler ( "DestroyBlips", function ( player, cmd, id, team ) if id and team then DestroyBlip ( id, team ) outputChatBox ( getPlayerName ( player ).." Destroy Blips ", root, 128, 128, 0 ) end end)
×
×
  • Create New...