sajad
-
Posts
20 -
Joined
-
Last visited
Posts posted by sajad
-
-
-
-
-
-
-
-
السلام عليكم شباب
ابي كود لبرمجة بوابة = ابي 2 بوابة لان المقر فية 2 بوابات وابي الكود يمشي على الشرطة بس
وعليكم السلام ..
وكود سباون
حدد سباون وش
وولوحة سيارات
شكرأأأ
بس شوف الكود صح تبع البوابات
local x,y,z = 2096.3, 1721, 12.7 local easing = "OutBounce" local time = 2000 local gate = createObject(980, x,y,z, 0, 0, 63) local marker = createMarker(x,y,z, "cylinder", 12, 0, 0, 0, 0) function moveGate(hitPlayer, matchingDimension) moveObject(gate, time, x+4.9, y+9.6, z, 0, 0, 0, easing) end addEventHandler("onMarkerHit", marker, moveGate) function moveBack() moveObject(gate, time, x, y, z, 0, 0, 0, easing) end addEventHandler("onMarkerLeave", marker, moveBack) function teamName ( source, key, newTeamName ) local playerTeam = getPlayerTeam ( source ) if ( playerTeam ) then local oldTeamName = getTeamName ( playerTeam ) setTeamName ( playerTeam, newTeamName ) outputChatBox ( "Changed " .. getPlayerName ( source ).."'s team name from " .. oldTeamName .. " to " .. newTeamName ) else outputChatBox ( getPlayerName ( source ) .. " isn't on a team" ) end end addCommandHandler ( "teamname", teamName ") function whatTeamAmIOn ( source ) -- Get the player's team (source is the player who entered the command) local playerTeam = getPlayerTeam ( source ) if ( playerTeam ) then -- if he was on a team outputChatBox ( getPlayerName ( source ) .. " is on team: " .. getTeamName ( playerTeam ) ) else outputChatBox ( getPlayerName ( source ) .. " isn't on a team" ) end end addCommandHandler ( "whatTeamAmIOn", whatTeamAmIOn )
ذا الكود تبع البوابة ممكن حد يشوفة
-
-
Ok, traduce tu post y deja mi mensaje como si fuera estupido aqui debajo .-.
No uses Google Traductor, no se entiende ni mierda, si tu idioma es inglés ya te dije:
Lo siento, pero yo no hablo español
-
-
شكرأأ انا جديد بلبرمجة والله يجازيكم كل خير
-
بعدين انت عندك فـ الكود الثالث غير هذول متحقق من تيمه باسم الداتا .. وش تقصد ؟
onWasted = function() if getPlayerTeam( source ) and getTeamName( getPlayerTeam( source ) ) == 'Police' and getElementData ( source , "S.W.A.T" ) then function sp( source ) setElementPosition( source, 1223.4812,-1639.51074,10.8 ) setPedArmor( source, 100 ) giveWeapon( source, 46 ) setPedSkin( source, 285 ) end setTimer(sp,1000,1,source) end end addEventHandler ( "onPlayerSpawn", getRootElement(), onWasted )
[/b]
شكرأأ لانن جديد بالبرمجة الله يجازيكم كل خير
'onPlayerSpawn' > 'onPlayerWasted'
اخطاءه كثيرة .. صححت له بعض الاغلاط الموجودة ..
-
بعدين انت عندك فـ الكود الثالث غير هذول متحقق من تيمه باسم الداتا .. وش تقصد ؟
onWasted = function() if getPlayerTeam( source ) and getTeamName( getPlayerTeam( source ) ) == 'Police' and getElementData ( source , "S.W.A.T" ) then function sp( source ) setElementPosition( source, 1223.4812,-1639.51074,10.8 ) setPedArmor( source, 100 ) giveWeapon( source, 46 ) setPedSkin( source, 285 ) end setTimer(sp,1000,1,source) end end addEventHandler ( "onPlayerSpawn", getRootElement(), onWasted )
local GroupName = "S.W.A.T" local gateID = "980" local Gx, Gy, Gz = "1220.97656, -1690.26758, 36.5781" local Grx, Gry, Grz = "1120.93656, -1490.26743, 36.5781" local Gx1, Gy2, Gz3 = "1120.93656, -1490.26743, 36.5781" local Time = "9" local gate = createObject ( gateID, Gx, Gy, Gz, Grx, Gry, Grz ) local marker = createMarker ( Gx, Gy, Gz, "cylinder", 7, 0, 0, 0, 0 ) addEventHandler ( "onMarkerHit", marker, function ( plr ) if ( getElementType ( plr ) == "player" ) and ( getElementData ( plr, GroupName ) then moveObject ( gate, Time * 1000, Gx1, Gy2, Gz3 ) end end ) addEventHandler ( "onMarkerLeave", marker, function ( plr ) if ( getElementType ( plr ) == "player" ) and ( getElementData ( plr, GroupName ) then moveObject ( gate, Time * 1000, Gx, Gy, Gz ) end end ) addEventHandler ( "onPlayerQuit", root, function ( ) if ( isElementWithinMarker ( source, marker ) ) and ( getElementData ( source, GroupName ) ) then moveObject ( gate, Time * 1000, Gx, Gy, Gz ) end end )
االكود مو تبعي والله واحد ناشره
وانا كتبتة وانا جديد بالبرمجة
-
تبيه للقروب ولا التيم ؟
ابية لقروب بس ابي البوابة تفتح لكل التيمات
يعني مثل النو تيم والشرطة والمسعفين ابيهم ابيهم يفتح لهم الباب يعني مو محددد
-
ممكن رد
-
السلام عليكم شباب
انا حبيت ابرمج مقر سوات
وبغيت تشوفو اكوادي
كود رسباون
onWasted = function() if getPlayerTeam( source ) and getTeamName( getPlayerTeam( source ) ) == 'Police' and getElementData ( source , "S.W.A.T" ) == groupName then function sp( source ) setElementPosition( source, 1223.4812,-1639.51074,10.8 ) setPedArmor( source, 100 ) giveWeapon( source, 46 ) setPedSkin( source, 285 ) end setTimer(sp,1000,1,source) end end addEventHandler ( "onPlayerSpawn", getRootElement(), onWasted )
كود دم ودرع
marker = createMarker ( 1223.4812,-1639.51074,10.8, "cylinder", 2, 255, 0, 255, 255 ) addEventHandler ( "onMarkerHit", marker, function ( player ) if getElementType ( player ) == "player" then local playerTeam = getPlayerTeam ( player ) if playerTeam then if playerTeam == getTeamFromName ( "S.W.A.T" ) then setPedStat ( player, 24, 989 ) setElementHealth ( player, 200 ) setPedArmor ( player, 100 ) setPedSkin ( player, 285 ) else outputChatBox ( "* You most be 'S.W.A.T'", player, 0, 0, 255, true ) end end end end , false )
كود باب
local GroupName = "S.W.A.T" local gateID = "980" local Gx, Gy, Gz = "1220.97656, -1690.26758, 36.5781" local Grx, Gry, Grz = "1120.93656, -1490.26743, 36.5781" local Gx1, Gy2, Gz3 = "1120.93656, -1490.26743, 36.5781" local Time = "9" local gate = createObject ( gateID, Gx, Gy, Gz, Grx, Gry, Grz ) local marker = ( Gx, Gy, Gz, "cylinder", 7, 0, 0, 0, 0 ) addEventHandler ( "onMarkerHit", marker, function ( plr ) if ( getElementType ( plr ) == "player" ) and ( getElementData ( plr, "S.W.A.T" ) == GroupName ) then moveObject ( gate, Time * 1000, Gx1, Gy2, Gz3 ) end end ) addEventHandler ( "onMarkerLeave", marker, function ( plr ) if ( getElementType ( plr ) == "player" ) and ( getElementData ( plr, "S.W.A.T== GroupName ) then moveObject ( gate, Time * 1000, Gx, Gy, Gz ) end end ) addEventHandler ( "onPlayerQuit", root, function ( ) if ( isElementWithinMarker ( source, marker ) ) and ( getElementData ( plr, "S.W.A.T" ) == GroupName ) then moveObject ( gate, Time * 1000, Gx, Gy, Gz ) end end )
واتمنى ابي كود السيارات لقروب + كل التيمات
وشكرأأ على المشاهده
-
-
-
شباب ممكن مساعدده
ابي اسوي سيرفر mta
بس انا بالعراق
وابي استضافة فيهارقم عراقي
-
مساعده
in الاستضافات
شباب ابي اشتري سيرفر بس انا بالعراق
ابي استضافة فيها رقم عراقي
دورت مش لقيت
هدف هوست
ديلوكس هوست
بلاي هوست
ساعدوني ابي رقم عراقي mta
للخبراء
in Arabic / العربية
Posted
شباب للخبراء
لما اجي ادخل اي سيرفر mta
التحميل الاول يخلص سريع
بس لما يجي يحمل المودات ماتتحمل ؟؟؟؟؟؟ لية