Jump to content

كود رسباون خاص ( بالمقرات)


Recommended Posts

السلام عليكم

الموضوع باين من عنوانة

اريد كود رسباون للمقر

انا جربت اكواد كثير له ولاكن مو ظبط

لو احد يعطيني كود مظبوط اكون شاكر افضالة

وشكرا

Link to comment

تم حل المشكلة شكرا علي سؤالك لاكن في مشكلة تانية  بذا الكود خاص بمركر تصليح السيارات للمقرات ايضا
local marker = createMarker (2229.6000976563,487.39999389648,20.8, "cylinder", 2, 255, 0, 0) 
addEventHandler ("onMarkerHit", marker, 
 function (player) 
  if getElementType (player) == "vehicle" then
    if getElementData (player, "Group") == "[MiCrO]" then 
     local veh = getPedOccupiedVehicle (player)
      fixVehicle (veh) 
     end 
  end 
end 

Link to comment
local marker = createMarker (2229.6000976563,487.39999389648,20.8, "cylinder", 2, 255, 0, 0) 
addEventHandler ("onMarkerHit", marker, 
 function (player) 
  if getElementType (player) == "Player" then
    if getElementData (player, "Group") == "[MiCrO]" then 
     local veh = getPedOccupiedVehicle (player)
        if veh then
      fixVehicle (veh) 
          end
     end 
  end 
end 
) 

 

Link to comment
marker = createMarker (2229.6000976563,487.39999389648,20.8, "cylinder", 2, 255, 0, 0)
addEventHandler ("onMarkerHit", marker,function (player)
if getElementType (player) == "vehicle" and getElementData (player, "Group") == "[MiCrO]"  then fixVehicle (getPedOccupiedVehicle (player))
end
end) 

 

Link to comment
1 hour ago, #\_oskar_/# said:

marker = createMarker (2229.6000976563,487.39999389648,20.8, "cylinder", 2, 255, 0, 0)
addEventHandler ("onMarkerHit", marker,function (player)
if getElementType (player) == "vehicle" and getElementData (player, "Group") == "[MiCrO]"  then fixVehicle (getPedOccupiedVehicle (player))
end
end) 

 

لم يعمل ايضا

27 minutes ago, Ismaeel_finer said:

addEventHandler('onPlayerSpawn', root,
function()
    if  getElementData(source, "Group") == "[MiCrO]" then
    setTimer(setElementPosition, 500, 1, source,2229.6000976563,487.39999389648,20.8)
    setElementHealth ( player, 100 )
    setPedArmor ( player, 100 )
    end      
    end
    )

 

شكرا ولكن تم حل مشكلة الاسباون

  • Like 1
Link to comment
6 hours ago, maged said:
  1.  
  2. addEventHandler('onPlayerSpawn', root,
  3. function()
  4. if getElementData(source, "Group") == "[MiCrO]" then
  5. setTimer(setElementPosition, 500, 1, source,2229.6000976563,487.39999389648,20.8)
  6. setElementHealth ( player, 100 )
  7. setPedArmor ( player, 100 )
  8. end
  9. end
  10. )

ياطيب وين كود حق التيم الحين اذا كان هو شرطي يرسبن بالمقر و حرامي بالمقر اتوقع هو يبي تيم محدد يرسبن في مقر

Link to comment
7 minutes ago, Ghost-Gamer said:

ياطيب وين كود حق التيم الحين اذا كان هو شرطي يرسبن بالمقر و حرامي بالمقر اتوقع هو يبي تيم محدد يرسبن في مقر

ذا للعصابات والكود هو معطيه + اشوفه قال تم الافادة

Link to comment
12 hours ago, maged said:

لم يعمل ايضا

اخوي اعذرني كتبت حرف كابيتل وهوا يجب يكون سمول بالسطر الرابع بكلمه Player

عدلتها تفضل

local marker = createMarker (2229.6000976563,487.39999389648,20.8, "cylinder", 2, 255, 0, 0) 
addEventHandler ("onMarkerHit", marker, 
 function (player) 
  if getElementType (player) == "player" then
    if getElementData (player, "Group") == "[MiCrO]" then 
     local veh = getPedOccupiedVehicle (player)
        if veh then
      fixVehicle (veh) 
          end
     end 
  end 
end 
) 

 

  • Like 1
Link to comment

لم يعمل ايضا

10 hours ago, xX|KeMo|Xx said:

اخوي اعذرني كتبت حرف كابيتل وهوا يجب يكون سمول بالسطر الرابع بكلمه Player

عدلتها تفضل


local marker = createMarker (2229.6000976563,487.39999389648,20.8, "cylinder", 2, 255, 0, 0) 
addEventHandler ("onMarkerHit", marker, 
 function (player) 
  if getElementType (player) == "player" then
    if getElementData (player, "Group") == "[MiCrO]" then 
     local veh = getPedOccupiedVehicle (player)
        if veh then
      fixVehicle (veh) 
          end
     end 
  end 
end 
) 

 

 

Link to comment
39 minutes ago, maged said:

لم يعمل ايضا

 

مافهمت طلبك حدد وش بدك بضبط 

15 hours ago, Ghost-Gamer said:

ياطيب وين كود حق التيم الحين اذا كان هو شرطي يرسبن بالمقر و حرامي بالمقر اتوقع هو يبي تيم محدد يرسبن في مقر

لان هوا حين طرح اكواده مارأيت كود تيم فقلت هادا بدو كود عصابة مو تيم 

 شكرا علي سؤالك يا طيب ^_^ 

Link to comment
fixingMarkers = {
	createMarker(2229.6000976563,487.39999389648,20.8, "cylinder", 10,0,0,0,0),
	createMarker(2229.6000976563,487.39999389648,20.8, "cylinder", 7, 255, 255, 0)
}

getElementType(hitElement) == "vehicle" then
			for i,v in ipairs(fixingMarkers) do
				if v == source then
					local player = getVehicleOccupant(hitElement, 0)
					if player and getElementData(player, "Group") == "[MiCrO]" then
						setElementVelocity(hitElement, 0, 0, 0)
						fixVehicle(hitElement)
						exports.guimessages:outputServer(player, "[MiCrO]: Your vehicle has been fixed!", 0, 255, 0)
					end
					break
				end
			end
		end
	end
)

 

Link to comment
function onSpawnDD(x,y,z,rot,team)
     setTimer(function(source)

	if ( getElementData(source,"Group") == "Pro's" ) and 
	 ( getTeamN(source) == "No Team" ) and 
	 ( getElementData(source,"Stats") ~= 3 ) then

		rnx = math.random(-2,2)
		rny = math.random(-2,2)
		rsp = math.random(1,3)
setElementPosition(source, 
 140.57130+rnx,1378.62305+rny,1088.36719) -- 
		setElementInterior(source, 5)
		setElementDimension(source, 1826)
		setPedRotation(source, 0)
		setPedSkin(source, 30)
		setPedArmor(source, 100)
        setPedHealth (source, 200)		
		setHealthAndArmor(source, 200)
		resetHealthArmy(source, 200)
									elseif getElementData( source, 'Group' ) == groupName and getPlayerTeam( source ) and getTeamName( getPlayerTeam( source ) ) == 'No Team' then	 
		rnx = false
		rny = false
		rsp = false
	 end
     end,50,1,source)

end

جرب ذا

Edited by Ghost-Gamer
Link to comment
7 minutes ago, Ghost-Gamer said:

function onSpawnDD(x,y,z,rot,team)
     setTimer(function(source)

	if ( getElementData(source,"Group") == "Pro's" ) and 
	 ( getTeamN(source) == "No Team" ) and 
	 ( getElementData(source,"Stats") ~= 3 ) then

		rnx = math.random(-2,2)
		rny = math.random(-2,2)
		rsp = math.random(1,3)
setElementPosition(source, 
 140.57130+rnx,1378.62305+rny,1088.36719) -- 
		setElementInterior(source, 5)
		setElementDimension(source, 1826)
		setPedRotation(source, 0)
		setPedSkin(source, 30)
		setPedArmor(source, 100)
        setPedHealth (source, 200)		
									    setHealthAndArmor(source, 200)
					                            resetHealthArmy(source, 200)
									elseif getElementData( source, 'Group' ) == groupName and getPlayerTeam( source ) and getTeamName( getPlayerTeam( source ) ) == 'No Team' then	 
		rnx = false
		rny = false
		rsp = false
	 end
     end,50,1,source)

end

جرب ذا

خرابيط

اعرف كيف تنسخ وتلصق

:santa:

Link to comment
2 minutes ago, Ghost-Gamer said:

مو خرابيط هذا انا استخدمه  !

 

ثاني شي شدخلك هذا خوي و انا الي معرفه على الموقع 

نص الوظائف غلط او غير معرفة 

.---.

Link to comment
3 minutes ago, Ghost-Gamer said:

اها يعني تشتغل معاي و مع غيري لا؟ 

 

اشتغل معك لانك المود اللي جايب منه الكود فيه الوظائف معرفة او انك تكذب الحين

واصلا ليه جاي تعطي الكود هو قال تم الافادة والموضوع انتهى - اخر رد لي

Link to comment
1 hour ago, Ghost-Gamer said:

function onSpawnDD(x,y,z,rot,team)
     setTimer(function(source)

	if ( getElementData(source,"Group") == "Pro's" ) and 
	 ( getTeamN(source) == "No Team" ) and 
	 ( getElementData(source,"Stats") ~= 3 ) then

		rnx = math.random(-2,2)
		rny = math.random(-2,2)
		rsp = math.random(1,3)
setElementPosition(source, 
 140.57130+rnx,1378.62305+rny,1088.36719) -- 
		setElementInterior(source, 5)
		setElementDimension(source, 1826)
		setPedRotation(source, 0)
		setPedSkin(source, 30)
		setPedArmor(source, 100)
        setPedHealth (source, 200)		
		setHealthAndArmor(source, 200)
		resetHealthArmy(source, 200)
									elseif getElementData( source, 'Group' ) == groupName and getPlayerTeam( source ) and getTeamName( getPlayerTeam( source ) ) == 'No Team' then	 
		rnx = false
		rny = false
		rsp = false
	 end
     end,50,1,source)

end

جرب ذا

addEventHandler('onPlayerSpawn', root,
function()
    if getTeamName(getPlayerTeam(source)) == "No Team" and getElementData(source, "Group") == "Pro's" then
    setTimer(setElementPosition, 500, 1, source,x,y,z)
    setElementHealth ( player, 100 )
    setPedArmor ( player, 100 )
    end      
    end
    )

 

المفيد هوا قال تم افادة علي ريسباون وبدو  ماركر اصلاح سيارة

2 hours ago, Ismaeel_finer said:

fixingMarkers = {
	createMarker(2229.6000976563,487.39999389648,20.8, "cylinder", 10,0,0,0,0),
	createMarker(2229.6000976563,487.39999389648,20.8, "cylinder", 7, 255, 255, 0)
}

getElementType(hitElement) == "vehicle" then
			for i,v in ipairs(fixingMarkers) do
				if v == source then
					local player = getVehicleOccupant(hitElement, 0)
					if player and getElementData(player, "Group") == "[MiCrO]" then
						setElementVelocity(hitElement, 0, 0, 0)
						fixVehicle(hitElement)
						exports.guimessages:outputServer(player, "[MiCrO]: Your vehicle has been fixed!", 0, 255, 0)
					end
					break
				end
			end
		end
	end
)

 

 

Link to comment
2 hours ago, Ismaeel_finer said:

fixingMarkers = {
	createMarker(2229.6000976563,487.39999389648,20.8, "cylinder", 10,0,0,0,0),
	createMarker(2229.6000976563,487.39999389648,20.8, "cylinder", 7, 255, 255, 0)
}

getElementType(hitElement) == "vehicle" then
			for i,v in ipairs(fixingMarkers) do
				if v == source then
					local player = getVehicleOccupant(hitElement, 0)
					if player and getElementData(player, "Group") == "[MiCrO]" then
						setElementVelocity(hitElement, 0, 0, 0)
						fixVehicle(hitElement)
						exports.guimessages:outputServer(player, "[MiCrO]: Your vehicle has been fixed!", 0, 255, 0)
					end
					break
				end
			end
		end
	end
)

 

كودك فيه اغلاط -_-"

Link to comment
1 hour ago, Ghost-Gamer said:

مو خرابيط هذا انا استخدمه  !

 

ثاني شي شدخلك هذا خوي و انا الي معرفه على الموقع 

اية دة انت عراقي ازيك يمحترف بقولك هي مشكلة الرسباون حلتها بس تصليح سيارة للمقرات بس هي الي لسة

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...