#!CrIsPoD Posted June 13, 2013 Posted June 13, 2013 السلام عليكم ورحمة الله وبركاته كيفكم ششباب انشاء الله بخير ابيكم تصححون لي ذذ الكود لان مثلا لو انا وقروبي نحتل يجي اي واحد يدخل المنطقة ياخذ فلوس ابي بس الي بالقروب ياخذون فلوس function radar3 ( player ) local playerGang = getElementData ( player, "gang" ) local turfGang = getElementData ( pCuboid3, "getTurfGang", true ) if (turfGang == playerGang) then outputChatBox("This territory already belongs to"..turfGang, player, 0, 255, 0, false) else if not getPlayerTeam(player) then return end local team = getPlayerTeam ( player ) if (getTeamName( team ) == "Criminal") then local playerGang = getElementData ( player, "gang" ) if ( playerGang ) then if ( isTimer ( beachturfTimer ) ) then return end local r, g, b = unpack ( exports [ "gang_system" ]:getGangColor ( playerGang ) ) setRadarAreaFlashing ( pArea3, true ) local turfGang = getElementData ( pCuboid3, "getTurfGang", true ) if turfGang then outputChatBox("You came in The Zone Of Turf "..turfGang..". Wait 2 Minutes To Conquer The Turf Power And Earn 4k", player, 0, 255, 0, false) else outputChatBox("This Turf Even belongs Not A Nobody. Wait 2 Minutes To Conquer The Turf Power And Earn 4k", player, 0, 255, 0, false) end beachturfTimer = setTimer ( function ( ) local beachTurfCplayers = getElementColShape ( pCuboid3 ) local players = getElementsWithinColShape ( pCuboid3, "player" ) setRadarAreaColor ( pArea3, tonumber(r), tonumber(g), tonumber(b), 100 ) for _, player in ipairs ( players ) do outputChatBox("Congratulations Conquered The Turf", player, 0, 255, 0, false) triggerClientEvent("onTakeTurf", player) givePlayerMoney ( player, 4000 ) setElementData ( pCuboid3, "getTurfGang", playerGang ) end setRadarAreaFlashing ( pArea3, false ) end ,120000, 1 ) end end end end addEventHandler ( "onColShapeHit", pCuboid3, radar3 )
Da7y-Remix_# Posted June 13, 2013 Posted June 13, 2013 (getTeamName( team ) == "Criminal") then local r, g, b = unpack ( exports [ "gang_system" ]:getGangColor ( playerGang ) هذا شنو واذا تبي يكون في القروب؟؟؟
#!CrIsPoD Posted June 13, 2013 Author Posted June 13, 2013 (getTeamName( team ) == "Criminal") then local r, g, b = unpack ( exports [ "gang_system" ]:getGangColor ( playerGang ) هذا شنو واذا تبي يكون في القروب؟؟؟ اقرا الي فوق زينن انا قايل اي واحد يخش الارض وقروب يحتل وهو مو بالقروب ياخذ فلوس ++ انا ابي بس الي بالقروب ياخذون فلوس لو يخش 100 واحد مو بالقروب ما ياخذ ياليت اذا ما عندك خبرة لا ترد
#!CrIsPoD Posted June 13, 2013 Author Posted June 13, 2013 هذه للتيم مود قرووووب getTeamName ذذ للتيم ++ انا ابي للقروب
K1NG Posted June 13, 2013 Posted June 13, 2013 الحين أنت وش تقصد بداخل قروب ؟ تقصد تيم من اللعبة ؟ ؟ (Group System ) ولا أنت مسوي مود خاص
yazan Posted June 13, 2013 Posted June 13, 2013 يا كنق مو ملاحض فوق انه حق تيم + لزم تعمل تحديد للموقع بكول شيب او مارك + تتحقق انه مو بل فريق = ياخد فلوس
yazan Posted June 13, 2013 Posted June 13, 2013 onColShapeHit or onMarkerHit getPlayerTeam getPlayerMoney
K1NG Posted June 13, 2013 Posted June 13, 2013 يا كنق مو ملاحض فوق انه حق تيم + لزم تعمل تحديد للموقع بكول شيب او مارك + تتحقق انه مو بل فريق = ياخد فلوس هو يقول انا ابيه للتيم والقروب .. بطلنا نفهم عليه وش يقصد بالقروب بعدين ما يحتاج وظايفكـ الي حاطها انت تحت .. يمديه يتحقق لما يرسل الفلوس كآلتالي for _, player in ipairs ( players ) do if ( getPlayerTeam ( player ) ) then outputChatBox("Congratulations Conquered The Turf", player, 0, 255, 0, false) triggerClientEvent("onTakeTurf", player) givePlayerMoney ( player, 4000 ) setElementData ( pCuboid3, "getTurfGang", playerGang ) end end طبعاً المتغيرات هاذي هو معرفها بكودهـ .. أنا بس ضفت عليها شرط التحقق إذا كان اللاعب بتيم أو لا !
#!CrIsPoD Posted June 14, 2013 Author Posted June 14, 2013 انا قصدي الحين عندي مود احتلال + مود قروبات حق العقرب طبعا معرف المود على الاحتلال ومظبط كل شي بس الحين انا يوم احتل واذا واحد خش وياخذ فلوس ~~~ انا ابي بس الي بالقروب الي يحتلون ياخذون فلوس يعني الي يساعدون ما يخذون
yazan Posted June 14, 2013 Posted June 14, 2013 getElementData ( element, 'Group' ) == "" then ------------------- اعتقد ذا onColShapeHit or onMarkerHit givePlayerMoney
K1NG Posted June 14, 2013 Posted June 14, 2013 function radar3 ( player ) local playerGang = getElementData ( player, "gang" ) local turfGang = getElementData ( pCuboid3, "getTurfGang", true ) if (turfGang == playerGang) then outputChatBox("This territory already belongs to"..turfGang, player, 0, 255, 0, false) else if not getPlayerTeam(player) then return end local team = getPlayerTeam ( player ) if (getTeamName( team ) == "Criminal") then local playerGang = getElementData ( player, "gang" ) if ( playerGang ) then if ( isTimer ( beachturfTimer ) ) then return end local r, g, b = unpack ( exports [ "gang_system" ]:getGangColor ( playerGang ) ) setRadarAreaFlashing ( pArea3, true ) local turfGang = getElementData ( pCuboid3, "getTurfGang", true ) if turfGang then outputChatBox("You came in The Zone Of Turf "..turfGang..". Wait 2 Minutes To Conquer The Turf Power And Earn 4k", player, 0, 255, 0, false) else outputChatBox("This Turf Even belongs Not A Nobody. Wait 2 Minutes To Conquer The Turf Power And Earn 4k", player, 0, 255, 0, false) end beachturfTimer = setTimer ( function ( ) local beachTurfCplayers = getElementColShape ( pCuboid3 ) local players = getElementsWithinColShape ( pCuboid3, "player" ) setRadarAreaColor ( pArea3, tonumber(r), tonumber(g), tonumber(b), 100 ) for _, player in ipairs ( players ) do if ( getElementData ( player, "gang" ) ) then outputChatBox("Congratulations Conquered The Turf", player, 0, 255, 0, false) triggerClientEvent("onTakeTurf", player) givePlayerMoney ( player, 4000 ) setElementData ( pCuboid3, "getTurfGang", playerGang ) end end setRadarAreaFlashing ( pArea3, false ) end ,120000, 1 ) end end end end addEventHandler ( "onColShapeHit", pCuboid3, radar3 )
#!CrIsPoD Posted June 14, 2013 Author Posted June 14, 2013 function radar3 ( player ) local playerGang = getElementData ( player, "gang" ) local turfGang = getElementData ( pCuboid3, "getTurfGang", true ) if (turfGang == playerGang) then outputChatBox("This territory already belongs to"..turfGang, player, 0, 255, 0, false) else if not getPlayerTeam(player) then return end local team = getPlayerTeam ( player ) if (getTeamName( team ) == "Criminal") then local playerGang = getElementData ( player, "gang" ) if ( playerGang ) then if ( isTimer ( beachturfTimer ) ) then return end local r, g, b = unpack ( exports [ "gang_system" ]:getGangColor ( playerGang ) ) setRadarAreaFlashing ( pArea3, true ) local turfGang = getElementData ( pCuboid3, "getTurfGang", true ) if turfGang then outputChatBox("You came in The Zone Of Turf "..turfGang..". Wait 2 Minutes To Conquer The Turf Power And Earn 4k", player, 0, 255, 0, false) else outputChatBox("This Turf Even belongs Not A Nobody. Wait 2 Minutes To Conquer The Turf Power And Earn 4k", player, 0, 255, 0, false) end beachturfTimer = setTimer ( function ( ) local beachTurfCplayers = getElementColShape ( pCuboid3 ) local players = getElementsWithinColShape ( pCuboid3, "player" ) setRadarAreaColor ( pArea3, tonumber(r), tonumber(g), tonumber(b), 100 ) for _, player in ipairs ( players ) do if ( getElementData ( player, "gang" ) ) then outputChatBox("Congratulations Conquered The Turf", player, 0, 255, 0, false) triggerClientEvent("onTakeTurf", player) givePlayerMoney ( player, 4000 ) setElementData ( pCuboid3, "getTurfGang", playerGang ) end end setRadarAreaFlashing ( pArea3, false ) end ,120000, 1 ) end end end end addEventHandler ( "onColShapeHit", pCuboid3, radar3 ) بالله وضح وش ضفت عشان بتاكد ومنها وبتسفيدمنها
iPrestege Posted June 14, 2013 Posted June 14, 2013 function radar3 ( player ) local playerGang = getElementData ( player, "gang" ) local turfGang = getElementData ( pCuboid3, "getTurfGang", true ) if (turfGang == playerGang) then outputChatBox("This territory already belongs to"..turfGang, player, 0, 255, 0, false) else if not getPlayerTeam(player) then return end local team = getPlayerTeam ( player ) if (getTeamName( team ) == "Criminal") then local playerGang = getElementData ( player, "gang" ) if ( playerGang ) then if ( isTimer ( beachturfTimer ) ) then return end local r, g, b = unpack ( exports [ "gang_system" ]:getGangColor ( playerGang ) ) setRadarAreaFlashing ( pArea3, true ) local turfGang = getElementData ( pCuboid3, "getTurfGang", true ) if turfGang then outputChatBox("You came in The Zone Of Turf "..turfGang..". Wait 2 Minutes To Conquer The Turf Power And Earn 4k", player, 0, 255, 0, false) else outputChatBox("This Turf Even belongs Not A Nobody. Wait 2 Minutes To Conquer The Turf Power And Earn 4k", player, 0, 255, 0, false) end beachturfTimer = setTimer ( function ( ) local beachTurfCplayers = getElementColShape ( pCuboid3 ) local players = getElementsWithinColShape ( pCuboid3, "player" ) setRadarAreaColor ( pArea3, tonumber(r), tonumber(g), tonumber(b), 100 ) for _, player in ipairs ( players ) do if ( getElementData ( player, "gang" ) ) then outputChatBox("Congratulations Conquered The Turf", player, 0, 255, 0, false) triggerClientEvent("onTakeTurf", player) givePlayerMoney ( player, 4000 ) setElementData ( pCuboid3, "getTurfGang", playerGang ) end end setRadarAreaFlashing ( pArea3, false ) end ,120000, 1 ) end end end end addEventHandler ( "onColShapeHit", pCuboid3, radar3 ) بالله وضح وش ضفت عشان بتاكد ومنها وبتسفيدمنها سطر 32 : if ( getElementData ( player, "gang" ) ) then
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now