-
Posts
10,056 -
Joined
-
Last visited
-
Days Won
27
Everything posted by iPrestege
-
شغل ماب وشوف يطلع اسمها باللبل ولالا .. المفترض يظهر !
-
/debugscript 3 صور لي الشاشة واطرح الكود كامل .
-
اعتقد عندك فنكشن يتعارض معه عموماً جرب خلي هذا كذا : addEventHandler ( 'onClientRender',root, function ( ) local xxMapName = getElementData ( resourceRoot,'GetMapName' ) if xxMapName and xxMapName ~= false then guiSetText ( GUIEditor_Label[13],xxMapName ) end end )
-
ورني السطر 42 من الملف 2.lua عندكـ ..
-
شغال تمام : http://im38.gulfup.com/0DGVm.png
-
/debugscript 3 لاني جربتة شغال عندي مود الريس .. و شغلت ماب وضابط معي تمام زي الفل ذذ ..
-
You can use data's : setElementData getElementData 'onPlayerLogin' -- Event 'onPlayerLogout' -- Event isObjectInACLGroup getAccountName
-
جرب ذآ .. 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 )
-
شوف هالمثال على كودك وتاج باسم الحساب : 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 ) طبعاً انت عين الداتا اذا سجل دخولة بالحساب عشان تفادياً للاق لكن هذا مثال وترا الداتا تتخزن كل مايتكلم اللاعب!
-
كلنت + سيرفر ؟ .. ي صاحب الموضوع تستخدم قيم الريس؟
-
الكود ماله اي معنى و مخبص وش تبي تسوي بالضبط؟
-
You mean 'VIP Group' In the acl?
-
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
-
اطرح كودك كامل بعد التعديل بدون حذف او تغيير .
-
charaf12 + =[ Max UR ]= عندكم قوس زايـد سطر "44" ذذ ..
-
No it's not and you can find why using 'debugscript3' cmd . Edit : Sorry ciber we post in the same time !
-
ترتيب الاكواد شيء مهم ي نآس -.- ترا يساعدنا في التصحيح!!
-
What? Show us ur code.
-
local marker = createVehicle ( cars [ math.random ( #cars ) ],unpack ( locations [ math.random ( #locations ) ] ) ) createBlipAttachedTo(marker, 53)
-
Show us your table.
-
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.
-
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);
-
Players get 'TimeOut' When i start a resource?
iPrestege replied to iPrestege's topic in Linux-Server
Already updated to that version .