- 
                
Posts
1,992 - 
                
Joined
 - 
                
Last visited
 - 
                
Days Won
4 
Everything posted by 3NAD
- 
	^ أضف شرط إذا كآن سيريال الفاعل == " سيريالكـ " نفذ الآتي
 - 
	لول هو عطاكـ 90% من اللي تبيه # lua يعني حس و ضف له إيفنت ولا زر ولا كلمة أي شيء و حطه في ملف + رح تآب ريسورس بـ لوحة الأدمنية Execute Command Handler عند و اكتب givePlayerMoney ( root, 1000 ) واضغط سيرفر ^ مآجربت بس يمكن تضبط ذذ
 - 
	addEventHandler ( "onPlayerDamage", root, function ( theAttacker, theWeapon ) if getPlayerSerial ( theAttacker ) == "Your Serial" then if theWeapon == 24 then killPed ( source, theAttacker, theWeapon ) end end end )
 - 
	-- لم يتم التجربة addEventHandler ( "onResourceStart", resourceRoot, function ( ) for _, v in ipairs ( getElementsByType("vehicle") ) do if ( getElementModel ( v ) == 411 ) then createBlipAttachedTo ( v, 55 ) end end end )
 - 
	
	
				طلب تصحيح كود عجيب - تــــم بفضل المبدع عنــآآد ^^
3NAD replied to d43dr4's topic in Arabic / العربية
addCommandHandler ( "vehicle", function ( thePlayer ) if isObjectInACLGroup ( "user." ..getAccountName ( getPlayerAccount ( thePlayer ) ), aclGetGroup ( "RPC" ) ) then x, y, z = getElementPosition ( thePlayer ) theVehicle = createVehicle ( 411, x, y + 3, z ) end end ) addEventHandler ( "onVehicleStartEnter", root, function ( thePlayer, theSeat ) if source == theVehicle then if ( theSeat == 0 ) and ( getPlayerName ( thePlayer ) ~= "#[iMr][E'rrOr]_N" ) then cancelEvent ( ) outputChatBox ( "~][ هذه السيـآرة خاصة بفخامة مستر ايرور ][~", thePlayer, 255, 255, 0, true ) else outputChatBox ( "مرحبا بك سيدي في سيـآرتك", thePlayer, 255, 0, 0, true ) end end end ) - 
	-- Server Side Criminal = createTeam ( "Criminal", 255, 0, 0 ) addEvent ( "SOSO", true ) addEventHandler ( "SOSO", root, function ( ) setPlayerTeam ( source, Criminal ) end ) -- Client Side addEventHandler("onClientGUIClick", root, function ( ) if source == Criminal then triggerServerEvent ( "SOSO" , localPlayer ) end end )
 - 
	هو بـ كلنت كيف تسوي تريقر لـ كلنت ذذ
 - 
	-- Server Side theMarker = createMarker ( 187.79888916016, 1388.2546386719, 2, "cylinder", 100, 255, 255, 0, 170 ) addEventHandler ( "onMarkerHit", theMarker, function ( thePlayer ) if getElementType ( thePlayer ) == "player" then if getPlayerTeam ( thePlayer ) == getTeamFromName ( "M.H" ) then setElementHealth ( thePlayer, 0 ) end end end )
 - 
	أضغط كلك يمين " خيارات
 - 
	بس الكود أصله ماركر من جاب طاري الكول شيب ؟
 - 
	-- use setTimer marker5 = createMarker ( 1379.8220214844, -945.32458496094, 2171.8156738281, "cylinder", 2, 0, 0, 255, 255 ) addEventHandler ( "onMarkerHit", marker5, function ( hitPlayer ) if ( getTeamName ( getPlayerTeam ( hitPlayer ) ) == "Criminal" ) then setMarkerColor ( marker5, 255, 0, 0, 255 ) setTimer ( setElementPosition, 5000, 1, hitPlayer, 1383.1614990234, -942.83343505859, 2172.8156738281 ) outputChatBox ( "* Wait 5 Seconds.", hitPlayer, 255, 255, 0, true ) end end )
 - 
	addEventHandler ( "onClientGUIClick", root, function ( ) if source == أسم الزر then fadeCamera ( true ) end end )
 - 
	تبي احط حجمه دبل إكس لارج ؟؟
 - 
	copy تقدر تحدد على الإلمنت كلك يمين " خيارات " ثم كلمة guieditor إذا تستخدم move و بعدها اضغط على نفس الإلمنت كلك يمين و كلمة
 - 
	-- Server Side theMarker = createMarker ( 187.79888916016, 1388.2546386719, 2, "cylinder", 100, 255, 255, 0, 170 ) addEventHandler ( "onMarkerHit", theMarker, function ( thePlayer ) if getElementType ( thePlayer ) == "player" then if getPlayerTeam ( thePlayer ) == getTeamFromName ( "M.H" ) then moveObject ( dor1, 1000, -1736.5, 943.79998779297, 20 ) end end end ) + ماشوفك استخدمت createObject
 - 
	طيب وش تبينا نسوي يعني ؟
 - 
	الأول سيرفر والثاني كلنت اطرح تعريف الميتا حقك
 - 
	استخدم إيفنت "onClientMarkerLeave" والباقي عليك
 - 
	-- Server Side addEventHandler ( "onElementClicked", root, function ( _, _, thePlayer ) acc = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user.".. acc, aclGetGroup ( "Police" ) ) then if getElementType ( source ) == "player" then killPed ( source, thePlayer ) elseif getElementType ( source ) == "vehicle" then destroyElement ( source ) end end end ) -- Client Side bindKey ( "a", "down", function ( ) showCursor ( not isCursorShowing() ) end )
 - 
	-- Client Side theMarker = createMarker ( 0, 0, 0, "cylinder", 3, 255, 255, 0, 170 ) addEventHandler( "onClientMarkerHit", theMarker, function ( ) setTime ( 21, 00) setWeather ( 16 ) end )
 
