Jump to content

iPrestege

Members
  • Posts

    10,056
  • Joined

  • Last visited

  • Days Won

    27

Everything posted by iPrestege

  1. شغل ماب وشوف يطلع اسمها باللبل ولالا .. المفترض يظهر !
  2. /debugscript 3 صور لي الشاشة واطرح الكود كامل .
  3. اعتقد عندك فنكشن يتعارض معه عموماً جرب خلي هذا كذا : addEventHandler ( 'onClientRender',root, function ( ) local xxMapName = getElementData ( resourceRoot,'GetMapName' ) if xxMapName and xxMapName ~= false then guiSetText ( GUIEditor_Label[13],xxMapName ) end end )
  4. ورني السطر 42 من الملف 2.lua عندكـ ..
  5. شغال تمام : http://im38.gulfup.com/0DGVm.png
  6. /debugscript 3 لاني جربتة شغال عندي مود الريس .. و شغلت ماب وضابط معي تمام زي الفل ذذ ..
  7. You can use data's : setElementData getElementData 'onPlayerLogin' -- Event 'onPlayerLogout' -- Event isObjectInACLGroup getAccountName
  8. جرب ذآ .. Server Side : addEventHandler ( 'onResourceStart',root, function ( resource ) if getResourceInfo ( resource,'gamemodes' ) == 'race' and getResourceInfo ( resource,'type' ) == 'map' then setElementData ( resourceRoot,'GetMapName',tostring ( getResourceInfo ( resource,'name' ) or 'N/A' ) ) end end ) Client Side : addEventHandler ( 'onClientRender',root, function ( ) local MapName = getElementData ( resourceRoot,'GetMapName' ) if MapName and MapName ~= false then guiSetText ( GUIEditor_Label[13],MapName ) end end )
  9. شوف هالمثال على كودك وتاج باسم الحساب : Client Side : Wnd = {} button = {} GridList = {} function hexToRGB ( hex ) hex = hex:gsub("#","") return tonumber("0x"..hex:sub(1,2)), tonumber("0x"..hex:sub(3,4)), tonumber("0x"..hex:sub(5,6)) end Wnd[1] = guiCreateWindow(461,188,162,280,"",false) GridList[1] = guiCreateGridList(0.0556,0.075,0.8889,0.7429,true,Wnd[1]) guiGridListSetSelectionMode(GridList[1],2) guiGridListAddColumn(GridList[1],"player name",0.8 ) button[1] = guiCreateButton(0.0617,0.8393,0.8827,0.1286,"get",true,Wnd[1]) local row = guiGridListAddRow ( GridList[1] ) for i, v in ipairs(getElementsByType("player")) do guiGridListSetItemText ( GridList[1], row, 1, getPlayerName ( v ), false, false ) local aHex = getElementData ( v,'TAGHexColor' ) local r,g,b = hexToRGB ( aHex ) guiGridListSetItemColor ( GridList[1], row , 1, r, g, b ) end Server Side : addEventHandler ( 'onPlayerChat',root, function ( msg ) if not isGuestAccount ( getPlayerAccount ( source ) ) and getAccountName ( getPlayerAccount ( source ) ) == 'اسم الحسـاب' then cancelEvent ( ) Color = '#00ff00' setElementData ( source,'TAGHexColor',Color ) outputChatBox ( ' '..Color..' [ M3AND ] : '..msg,root,255,255,255,true ) end end ) طبعاً انت عين الداتا اذا سجل دخولة بالحساب عشان تفادياً للاق لكن هذا مثال وترا الداتا تتخزن كل مايتكلم اللاعب!
  10. كلنت + سيرفر ؟ .. ي صاحب الموضوع تستخدم قيم الريس؟
  11. الكود ماله اي معنى و مخبص وش تبي تسوي بالضبط؟
  12. You mean 'VIP Group' In the acl?
  13. https://forum.multitheftauto.com/viewtopic.php?f=165&t=65654 https://forum.multitheftauto.com/viewtopic.php?f=165&t=47498 https://forum.multitheftauto.com/viewtopic.php?f=165&t=69106 https://forum.multitheftauto.com/viewtopic.php?f=165&t=50288
  14. والله اعلم بعد البحث انهم يسوون نظام تحميل خاص لكن باستخدام هذي الفنكشنات يمديكـ تسوية حسب البحث :
  15. اطرح كودك كامل بعد التعديل بدون حذف او تغيير .
  16. charaf12 + =[ Max UR ]= عندكم قوس زايـد سطر "44" ذذ ..
  17. اكيد خطأ Object = ?
  18. iPrestege

    Functions

    No it's not and you can find why using 'debugscript3' cmd . Edit : Sorry ciber we post in the same time !
  19. ترتيب الاكواد شيء مهم ي نآس -.- ترا يساعدنا في التصحيح!!
  20. local marker = createVehicle ( cars [ math.random ( #cars ) ],unpack ( locations [ math.random ( #locations ) ] ) ) createBlipAttachedTo(marker, 53)
  21. No but you just had a wrong element and the setPedSkin function won't be apply to use it in the future . This function is deprecated. This means that its use is discouraged and that it might not exist in future versions.
  22. why does skin don't puts on the player ? function TakeJob(hitElement, matchingDimension, thePlayer) local element = getElementType(hitElement); if(getElementType(hitElement) == 'player') and getElementData(hitElement,"trucker") == false and getElementData(hitElement,"vehicle") == false then setPedSkin(source, 206); setElementData(hitElement,"trucker",true); setPlayerTeam(hitElement, truckers); setMarkerColor(marker1, 255, 0, 0, 150); outputChatBox("To end you job stand back on this marker and you will automatically end your job"); elseif getElementData(hitElement,"trucker") == true then outputChatBox("You have ended your job"); setPlayerTeam(hitElement, unemployedteam); setElementData(hitElement,"trucker",false); setMarkerColor(marker1, 255, 0, 0, 0); end end addEventHandler("onMarkerHit", workmarker, TakeJob); Replace it with: setElementModel(hitElement, 206);
×
×
  • Create New...