-
Posts
3,267 -
Joined
-
Last visited
-
Days Won
7
Everything posted by Tete omar
-
local Marker = createMarker( 2497.88671875, -1672.7231445313, 13.341871261597, "cylinder ", 1, 0, 0, 0, 0 ) local image = dxDrawImage(323.0,206.0,638.0,295.0,"business.png",0.0,0.0,0.0,tocolor(255,255,255,255),false) addEventHandler("onClientMarkerHit", Marker, function(hitPlayer) attachElements ( Marker, image , 0, 0, 3 ) if ( hitPlayer == localPlayer ) then destroyElement( Marker ) destroyElement( image ) end) بس يب يفضل انك تستخدم كود JR10
-
ه دايماً اتلخبط بين الكلنت سايد والسيرفر سايد
-
قللت لك هذا مثال لو تبي الصوره تطلع لازم تحطها بال meta.xml زي كذا <file src="bullet.png" /> عشان السكربت يفهمها حط اي صوره وسميها نفس الاسم bullet.png بعدين حط الصوره في ملف السكربت وغير الكود الي انا كاتبه بذا local image = dxDrawImage(323.0,206.0,638.0,295.0,"bullet.png",0.0,0.0,0.0,tocolor(255,255,255,255),false)
-
اكتب debugscript 3 في اف 8 او في الشات زي كذا /debugscript 3 وقلولي وش يطلع لك
-
أولاً المراكر انا مسويه مخفي بس مدري وش عن الصوره اي احد يشوفها ثانياً هذا مثال
-
احسن حل لك انت انك تستخدم الماركر المخفي وتحط الصوره في مكان الماركر ولمن الاعب يلمس الماركر يخفي الصوره والماركر local Marker = createMarker( 2056.0012207031, 1535.5518798828, 9.671875, "cylinder ", 1, 0, 0, 0, 0 ) local image = dxDrawImage(323.0,206.0,638.0,295.0,"images/bullet.png",0.0,0.0,0.0,tocolor(255,255,255,255),false) function hitIt(player) attachElements ( Marker, image , 0, 0, 3 ) destroyElement( Marker ) destroyElement( image ) givePlayerMoney( player, 20000 ) end addEventHandler("onMarkerHit", Marker, hitIt) هذا مثال بس ما جربته بالتوفيق
-
and it's so simple do like this function anything( player, commandName ) if not isPedInVehicle ( player ) then -- checks if the player is already in a vehicle local color = {} -- table of random colors color[1] = math.random(1,126) -- color 1 color[2] = math.random(0,126) -- color 2 color[3] = math.random(0,126) -- color 3 color[4] = math.random(0,126) -- color 4 sX, sY, sZ = getElementPosition ( player ) -- gets the player's position blade = createVehicle ( 536, sX, sY, sZ ) -- create a vehicle "536" you can change it whatever you like warpPedIntoVehicle ( player, blade ) -- warp him into the car setVehicleColor ( blade, color[1], color[2], color[3], color[4] ) -- sets the vehicle random colors outputChatBox("Blade has been spawned",getRootElement(),255,255,0, true) -- outPutChatBox that blade has been spawned setVehicleDamageProof ( blade, true ) -- sets the car infinity health else outputChatBox("you can not spawn a vehicle when you already in one sorry",getRootElement(),255,0,0, true) end end end addCommandHandler ( "spawnblade", anything )-- add the command handler which the player will type i added some new stuff here like infinity vehicle health
-
اعتقد انها زي كذا setTimer(setElementAlpha,60000,1,source,0) عشان تخليه مخفي
-
الي يمدينا نقوله الحين ( الحمد لله على نعمة الإسلام ) وبس
-
انا مدري وش هدفك بس وضح أكثر يعني تبي اذا لمس شي يظهرله صوره وكذا ؟ ولا وش ؟
-
الحمد لله على نعمة الإسلام
-
GUIEditor_Button = {} مو لازم تحطه لآن هذا عباره عن Table ممكن تسوي زي كذا myButton = createButton الخ الخ .. وتمسح GUIEditor_button = {} مثلاً sl6an = guiCreateButton(17,140,121,42,"اكتب اي شي هنا",false,myWindow) بالنسبة ل myWindow هذي مثل الزر يعني مو لازم GUIEditor_window = {} على طول مثل الزر myWindow = guiCreateWindow( .... الخ )
-
روح gta san andreas / server / mods / deathmatch / resources / فيه عندك gameplay و gamemods gameplay هذا حق السكربتات البسيطه gamemods هذا حق الجيم مودات الي فيها الماب وكذا وكذا الخ...
-
wonderful thing and finally arabic forum with a moderators i hope them do their best شيء رائع وآخيراً الفريوم العربي له موديراتور المهم بس يكونو عادلين
-
اعتقد انك تبيه لمن يدخل في منطقة محددة ويكتب هالكلمة تنفتح البوابة سوي ماركر مخفي createMarker(المنطقة X, المنطقة Y, المنطقة Z, "cylinder", 0, 0, 0, 0 المنطقة هي المنطقة الي تبيها في العبة الي راح تنحط عليها الماركر X . Y . Z بعدين سوي اوبجيكت باستخدام createObject عادتاً تكون بوابة فانصحك تحط 980 استخدم moveObject لتحريك الاوبجيكت الي تبيه يتحرك استخدم الأوامر هذي onMarkerHit لمن الاعب يلمس الماركر addCommandHandler لمن الاعب يكتب الكلمه الي انت تبيها
-
لازم تعتمد على نفسك لا تعتمد على الآخرين عشان الآخرين ماراح يلبون لك طلبك كل شوية
-
thanks jaysds ^^ i fixed it before I'm off to bed now meet me regards
-
i would like to get moderation for this issue and for justice, My ability English skills 8/10 Scripting knowledge 4/10 helpful skills 9/10 ( this forum ) and i promise you all i will do my best as possible as i can
-
Well, i used it like this function setCameraOnPlayerJoin() fadeCamera(source, true, 1); setCameraMatrix(source, -2135.708984375, -187.71142578125, 157.66786193848, 0, 0, 0); bindKey( source, "F", "down", herewego ) end addEventHandler("onPlayerJoin", getRootElement(), setCameraOnPlayerJoin); function herewego ( thePlayer ) gX, gY, gZ = getElementPosition ( thePlayer ) setCameraTarget ( thePlayer ) setElementPosition ( thePlayer, 2450.7463378906, -1659.6678466797, 13.3046875 ) fadeCamera(source, true, 1); setElementFrozen ( thePlayer, false ) unbindKey( source, "F", "down", herewego ) -- when he done spawning & everything here , then unbind this key so what's the problem ? end i still can spawn my self over then over
-
if i want the player press F one time only should i use cancelEvent ?
-
ok what's wrong here now function setCameraOnPlayerJoin() fadeCamera(source, true, 1); setCameraMatrix(source, -2135.708984375, -187.71142578125, 157.66786193848, 0, 0, 0); end addEventHandler("onPlayerJoin", getRootElement(), setCameraOnPlayerJoin); function herewego(player) setCameraTarget( player ) bindKey( player, "f", "down", herewego ) end addEventHandler("onResourceStart", getRootElement(), herewego) i want if i pressed on F button then the cam gets back to the player
-
كفيت ووفيت :]