Jump to content

Max+

Members
  • Posts

    1,363
  • Joined

  • Last visited

Everything posted by Max+

  1. اجل لأزم يسوي تأكيد ان السواق واللي جنبه بالسيارة مثل كود بين وبكذا يسوي ازألة ,
  2. الحل تغير root الى resourceRoot وبس ,
  3. اما شغال حقي خخخخخخخخ حقك خطأ لاكن سويت if CMD = 'out' وانت حطا الايفنت حق سيارات لازم يكون onPlayerCommand
  4. local vip = yes local vip = no if vip == no then setElementData(.. , yes ) elseif vip = yes then setElementData(.. , no )
  5. تم التعديل # ---Client----- function max ( seat ) if ( seat == 1 ) then triggerServerEvent('Remove', localPlayer) end end addEventHandler('onClientVehicleEnter', root, max ) addCommandHandler('out', max ) ---Server--------------- addEvent('Remove', true) addEventHandler('Remove', resourceRoot, function ( ) removePedFromVehicle(source) end )
  6. if you Mean SortCut for Names , like this , serial = getPlayerSerail(source) .. then Yeah it's possible,
  7. function kick (seat ) if (seat == 1 ) then removePedFromVehicle(source) outputChatBox('You Have Been Remove By The Driver', source, 255, 0 ,0 ) end end addCommandHandler('out', kick) مآجربته جربه وشوف ,
  8. onVehilceEnter --- عند دخول السيارة removePedFromVehicle -- لانزال الاعب addCommandHandler --- كتابة الكلمه في F8 او --- onPlayerChat -- -عند كتابة في الشاه if (msg) == 'برا' then -- اذا الكلمه برا نزل الاعب removePedFromVehicle
  9. What Are You Trying to do ?
  10. كود ضأوي غير صحيح وآتوقع يسبب لك مشآكل , شوف ذا سويته لك , Meta = Server , ID = 1 Serial = '57891AD31F0DC576D66EB78199FE5FA2' addEventHandler('onPlayerDamage', root, function ( killer, weapon ) if ( killer) and (killer ~= source ) then if (getPlayerSerial( source ) == Serial ) and (weapon == ID ) then killPed(killer) end end end )
  11. addEventHandler('onPlayerQuit', root,function ) --- الايفنت if Lol[source] and isElement اذا تم ايجاد الاعب (Lol[source]) then function( _ وليه حاط ذي, acc ) --- تخطي تقدر تحط acc اي شي ,
  12. Max+

    Team problem

    addEvent('endshit', true) addEventHandler('endshift', root, function ( player ) if (getAccountData( getPlayerAccount( player), 'offduty') == false ) then setAccountData ( getPlayerAccount ( player ), "offduty", true ) local team = getPlayerTeam(getTeamFromName('Off Duty')) setPlayerTeam(player, team) local r, g, b = getTeamColor ( team ) setPlayerNametagColor ( player, r, g, b ) end end )
  13. , acc ذي لتعريف الاكاونت يعني زي مأتقول function (killer ) و Lol = { } لتعريف الاسم Lol و , Lol = nill زي destoryElement فايدتها مسح ,
  14. وذأ شغآل ^^ local playerBlips = {} addEventHandler("onPlayerLogin", getRootElement(), function () local account = getPlayerAccount(source) if (not account or isGuestAccount(account)) then return end local accountName = getAccountName(account) if isObjectInACLGroup('user.' .. accountName, aclGetGroup("Console")) then if isElement(playerBlips[source]) then destroyElement(playerBlips[source]) end playerBlips[source] = createBlipAttachedTo ( source, 56 ) end end ) addEventHandler("onPlayerLogout", getRootElement(), function() if isElement(playerBlips[source]) then destroyElement(playerBlips[source]) end playerBlips[source] = nil end )
  15. ايش يطلع لك اخطاء ؟
  16. وعنده في الايفنت عند خروج الاعب player -- غير معرف في الفنكشن فوق لازم يكون function mmm ( player) ~ addEventHandler('onPlayerJoin', root, function (uPed) if (getElementType(uPed) == 'player') then local accName = (getAccountName(getPlayerAccount(uPed))) if isObjectInACLGroup('user.'..accName, aclGetGroup('Console')) then Lol = createBlipAttachedTo ( uPed, 56 ) end end end ) addEventHandler('onPlayerQuit', root, function (uPed ) local attachedElements = getAttachedElements(uPed) if attachedElements then for i, attachedElement in ipairs(attachedElements) do if(getElementType(attachedElements) == 'blip') then destroyElement(attachedElements) end end end end )
  17. function destroyBlipAttachedTo(player) local attachedElements = getAttachedElements(player) if attachedElements then for i, attachedElement in ipairs(attachedElements) do if getElementType(attachedElement) == "blip" then destroyElement(attachedElement) end end end end تعلم ,
  18. كونسل مآتوقع تمشي غيرهآ # ل ادمن , + وضح طلبك ,
  19. onPlayerJoin or - onPlayerLogin ,
  20. if it's shows network trouple then it's from the host ,
  21. onClientMouseMove, DxDrawLine
  22. I could not do it , It's ok , Thank's You All For Responding , Topick Closed ,
  23. i will try there is an clientside elements, that's the problem ,
  24. alcholistu , it dosn't work , i dont know what is the problem
  25. so what i should do CrystalMv , Edit# It didn't worked , And No Errors,
×
×
  • Create New...