Jump to content

[ Script Marker Money , سكربت ماركر الفلوس ]


Recommended Posts

Posted

ابداع

والاحلى المود فيه لغتين =)

والتنسيق حلو

10/10

اهم شي المزه ضض1

امزح

استمرر ~

  • 1 year later...
Posted

اخوي

انا جاتني فكرة حلوة مرة

بالتعديل على السكربت حقق

بس لو تعطيني اياه دون تشفير

وربي ما بدي اغير حقوق ولا شي فقط بدي الاكواد

لانه انا عم صمم مود الكنز

Posted

@|M.r|LooFe| للاسف والله السكربت ع اساس اطوره واضيف عليه اشياء جديدة لكن انحذف يوم سويت اعادة تثبيت للعبة وطارت بعض المودات الي كنت مسويها

ولا كان عطيتك اياه

Posted
On ١٨‏/٧‏/٢٠١٧ at 10:08, Abdul KariM said:

@|M.r|LooFe| للاسف والله السكربت ع اساس اطوره واضيف عليه اشياء جديدة لكن انحذف يوم سويت اعادة تثبيت للعبة وطارت بعض المودات الي كنت مسويها

ولا كان عطيتك اياه

اها طيب تقدر ترجع تصممه من اول وجديد

Posted
On ٢٠‏/٧‏/٢٠١٧ at 13:34, |M.r|LooFe| said:

اها طيب تقدر ترجع تصممه من اول وجديد

بسوي وتحد وبنزله , اصبر قليلا !

addEventHandler ( 'onClientGUIClick' , root , -- حدث عند الضغط على الزر
	function ( 	) -- وظيفة 
		if ( source == aCreateMarker_ ) then -- التحقق من الزر الذي تم الضغط عليه
			local xPos_ = guiGetText ( aEdit_ ) -- احداثيات x 
			local yPos_ = guiGetText ( aEdit_ ) -- حداثيات y 
			local zPos_ = guIGetText ( aEdit_ ) -- احداثيات z
			local aAmmount_ = guiGetText ( aEdit_ ) -- المبلغ
			if ( xPos_ == '' ) or ( yPos_ == '' ) or ( zPos_ == '' ) then -- اذا كان فارغ
				return -- ارجاع
			end -- انتهاء التحقق
			triggerServerEvent ( 'aCreateMarker_' , localPlayer , tonumber ( aAmmount_ ) , xPos_ , yPos_ , zPos_ ) --  ترايقر
		end 
	end 
)
local aMarker = { };

addEvent( 'aCreateMarker_' , true ) -- استقبال الترايقر
addEventHandler ( 'aCreateMarker_' , root , -- استقبال الترايقر
	function ( aAmmount_ , xPos_ , yPos_ , zPos_ ) -- وظيفة وتحتوي العنااصر اللي ارسلناها بالتراييقر
		aMarker [ source ] = createMarker ( xPos_ , yPos_ , zPos_ , 'cylinder' , 2 , 255 , 0 , 0 , 255 , root )
		addEventHandler ( 'onMarkerHit' , root , aMarkerMoneyHit_ )
		setElementData ( aMarker [ source ] , 'aData_' , aAmmount_ )
	end 
)

function aMarkerMoneyHit_ ( aPlayer_ )
	if ( getElementType ( aPlayer_ ) == 'player' ) then 
		local aAmmount_ = getElementData ( aMarker [ aPlayer_ ] , 'aData_' )
		destroyElement ( aMarker [ aPlayer_ ] )
		givePlayerMoeny ( aPlayer_ , aAmmount_ )
	end 
end 

 

Posted
18 hours ago, #_iMr.[E]coo said:

بسوي وتحد وبنزله , اصبر قليلا !


addEventHandler ( 'onClientGUIClick' , root , -- حدث عند الضغط على الزر
	function ( 	) -- وظيفة 
		if ( source == aCreateMarker_ ) then -- التحقق من الزر الذي تم الضغط عليه
			local xPos_ = guiGetText ( aEdit_ ) -- احداثيات x 
			local yPos_ = guiGetText ( aEdit_ ) -- حداثيات y 
			local zPos_ = guIGetText ( aEdit_ ) -- احداثيات z
			local aAmmount_ = guiGetText ( aEdit_ ) -- المبلغ
			if ( xPos_ == '' ) or ( yPos_ == '' ) or ( zPos_ == '' ) then -- اذا كان فارغ
				return -- ارجاع
			end -- انتهاء التحقق
			triggerServerEvent ( 'aCreateMarker_' , localPlayer , tonumber ( aAmmount_ ) , xPos_ , yPos_ , zPos_ ) --  ترايقر
		end 
	end 
)

local aMarker = { };

addEvent( 'aCreateMarker_' , true ) -- استقبال الترايقر
addEventHandler ( 'aCreateMarker_' , root , -- استقبال الترايقر
	function ( aAmmount_ , xPos_ , yPos_ , zPos_ ) -- وظيفة وتحتوي العنااصر اللي ارسلناها بالتراييقر
		aMarker [ source ] = createMarker ( xPos_ , yPos_ , zPos_ , 'cylinder' , 2 , 255 , 0 , 0 , 255 , root )
		addEventHandler ( 'onMarkerHit' , root , aMarkerMoneyHit_ )
		setElementData ( aMarker [ source ] , 'aData_' , aAmmount_ )
	end 
)

function aMarkerMoneyHit_ ( aPlayer_ )
	if ( getElementType ( aPlayer_ ) == 'player' ) then 
		local aAmmount_ = getElementData ( aMarker [ aPlayer_ ] , 'aData_' )
		destroyElement ( aMarker [ aPlayer_ ] )
		givePlayerMoeny ( aPlayer_ , aAmmount_ )
	end 
end 

 

 

17 hours ago, Abdul KariM said:

@#_iMr.[E]coo راجع اكوادك زين

 

11 hours ago, Master_MTA said:

@#_iMr.[E]coo

في شوية اخطاء في سالفة الماركر راجعها

يا اخوان عطوني الكودات كاملة

Posted
2 minutes ago, |M.r|LooFe| said:

 

 

يا اخوان عطوني الكودات كاملة

سولي لوحه وبسويلك اياها كامله لوحه فيها 3 ايديت

وسويلها ما تقدر تكتب فيهها

+سوي 3 ازرار باللوحه

Posted
1 minute ago, Master_MTA said:

سولي لوحه وبسويلك اياها كامله لوحه فيها 3 ايديت

وسويلها ما تقدر تكتب فيهها

+سوي 3 ازرار باللوحه

ابشر

-------------------------------
-- سويت ازرار ااضفية لو احتجنا لو ما احتجنا نحذفهم
-- لا تشفر شي حتا اني اعرف الاكواد
-------------------------------


GUIEditor = {
    button = {},
    edit = {},
    label = {}
}
local screenW, screenH = guiGetScreenSize()
wnd = guiCreateWindow((screenW - 336) / 2, (screenH - 453) / 2, 336, 453, ".:[ Kanz System By |M.r|LooFe| ]:.", false)
guiWindowSetSizable(wnd, false)
guiSetProperty(wnd, "CaptionColour", "FFFF0000")

GUIEditor.edit[1] = guiCreateEdit(72, 35, 241, 32, "", false, wnd)
guiEditSetReadOnly(GUIEditor.edit[1], true)
GUIEditor.edit[2] = guiCreateEdit(72, 84, 241, 32, "", false, wnd)
guiEditSetReadOnly(GUIEditor.edit[2], true)
GUIEditor.edit[3] = guiCreateEdit(72, 135, 241, 32, "", false, wnd)
guiEditSetReadOnly(GUIEditor.edit[3], true)
GUIEditor.button[1] = guiCreateButton(206, 234, 117, 47, "جلب احداثياتي", false, wnd)
guiSetFont(GUIEditor.button[1], "default-bold-small")
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF30FE00")
GUIEditor.button[2] = guiCreateButton(10, 234, 117, 47, "تعطيل/تفعيل الماركر", false, wnd)
guiSetFont(GUIEditor.button[2], "default-bold-small")
guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF30FE00")
GUIEditor.button[3] = guiCreateButton(206, 300, 117, 47, "موافق", false, wnd)
guiSetFont(GUIEditor.button[3], "default-bold-small")
guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FF30FE00")
exx = guiCreateButton(110, 391, 117, 47, "اغلاق", false, wnd)
guiSetFont(exx, "default-bold-small")
guiSetProperty(exx, "NormalTextColour", "FF30FE00")
GUIEditor.label[1] = guiCreateLabel(13, 35, 49, 22, "Pos X :", false, wnd)
guiSetFont(GUIEditor.label[1], "default-bold-small")
guiLabelSetColor(GUIEditor.label[1], 48, 254, 0)
GUIEditor.label[2] = guiCreateLabel(13, 88, 49, 22, "Pos Y :", false, wnd)
guiSetFont(GUIEditor.label[2], "default-bold-small")
guiLabelSetColor(GUIEditor.label[2], 48, 254, 0)
GUIEditor.label[3] = guiCreateLabel(13, 135, 49, 22, "Pos Z :", false, wnd)
guiSetFont(GUIEditor.label[3], "default-bold-small")
guiLabelSetColor(GUIEditor.label[3], 48, 254, 0)
GUIEditor.button[4] = guiCreateButton(10, 300, 117, 47, "حذف الماركر", false, wnd)
guiSetFont(GUIEditor.button[4], "default-bold-small")
guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FF30FE00")

 

  • Like 1
Posted (edited)

client

في البدايه سوي ايديت باسم

GUIEditor.edit[4]

عشان الفلوس

GUIEditor = {
    button = {},
    edit = {},
    label = {}
}
local screenW, screenH = guiGetScreenSize()
wnd = guiCreateWindow((screenW - 336) / 2, (screenH - 453) / 2, 336, 453, ".:[ Kanz System By |M.r|LooFe| ]:.", false)
guiWindowSetSizable(wnd, false)
guiSetProperty(wnd, "CaptionColour", "FFFF0000")

GUIEditor.edit[1] = guiCreateEdit(72, 35, 241, 32, "", false, wnd)
guiEditSetReadOnly(GUIEditor.edit[1], true)
GUIEditor.edit[2] = guiCreateEdit(72, 84, 241, 32, "", false, wnd)
guiEditSetReadOnly(GUIEditor.edit[2], true)
GUIEditor.edit[3] = guiCreateEdit(72, 135, 241, 32, "", false, wnd)
guiEditSetReadOnly(GUIEditor.edit[3], true)
GUIEditor.button[1] = guiCreateButton(206, 234, 117, 47, "جلب احداثياتي", false, wnd)
guiSetFont(GUIEditor.button[1], "default-bold-small")
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF30FE00")
GUIEditor.button[2] = guiCreateButton(10, 234, 117, 47, "تعطيل/تفعيل الماركر", false, wnd)
guiSetFont(GUIEditor.button[2], "default-bold-small")
guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF30FE00")
GUIEditor.button[3] = guiCreateButton(206, 300, 117, 47, "موافق", false, wnd)
guiSetFont(GUIEditor.button[3], "default-bold-small")
guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FF30FE00")
exx = guiCreateButton(110, 391, 117, 47, "اغلاق", false, wnd)
guiSetFont(exx, "default-bold-small")
guiSetProperty(exx, "NormalTextColour", "FF30FE00")
GUIEditor.label[1] = guiCreateLabel(13, 35, 49, 22, "Pos X :", false, wnd)
guiSetFont(GUIEditor.label[1], "default-bold-small")
guiLabelSetColor(GUIEditor.label[1], 48, 254, 0)
GUIEditor.label[2] = guiCreateLabel(13, 88, 49, 22, "Pos Y :", false, wnd)
guiSetFont(GUIEditor.label[2], "default-bold-small")
guiLabelSetColor(GUIEditor.label[2], 48, 254, 0)
GUIEditor.label[3] = guiCreateLabel(13, 135, 49, 22, "Pos Z :", false, wnd)
guiSetFont(GUIEditor.label[3], "default-bold-small")
guiLabelSetColor(GUIEditor.label[3], 48, 254, 0)
GUIEditor.button[4] = guiCreateButton(10, 300, 117, 47, "حذف الماركر", false, wnd)
guiSetFont(GUIEditor.button[4], "default-bold-small")
guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FF30FE00")
-----------when player clickk buttons
addEventHandler('onClientGUIClick',root,function()
    if source==GUIEditor.button[1] then
      local x,y,z=getElemenetPosition(localPlayer)
      guiSetText(GUIEditor.edit[1],x) guiSetText(GUIEditor.edit[2],y) guiSetText(GUIEditor.edit[3],z-1)
    elseif source==GUIEditor.button[3] then
      if guiGetText(GUIEditor.edit[1])=='' or guiGetText(GUIEditor.edit[2])=='' or guiGetText(GUIEditor.edit[3])=='' or guiGetText(GUIEditor.edit[4])==''then return end
  triggerServerEvent('createmarker',localPlayer,guiGetText(GUIEditor.edit[1]),guiGetText(GUIEditor.edit[2]),guiGetText(GUIEditor.edit[3]),guiGetText(GUIEditor.edit[4]))
          elseif source==GUIEditor.button[3] then
triggerServerEvent('enbale',localPlayer)
    end
    
end)

server

side

addEvent('createmarker',true)
addEventHandler('createmarker',root,function(x,y,z,money)
    if x and y and z and money then
    local money=money or 1000  
      if isElement(marker) then destroyElement(marker) end 
    marker=createMarker(x,y,z,'cylinder',1.5,255,255,255)
      setElementData(marker,'money',money)
      setElementData(marker,'enable',false)
    end
    
end)    
addEvent('enable',true)
addEventHandler('enable',root,function()
   if isElement(marker) then 
   if getElementData(marker,'enable')==false then
        setElementData(marker,'enable',true)
        else
    setElementData(marker,'enable',false)
      end
    end
    
end)    
addEventHandler('onMarkerHit',root,function(plr,dim)
 if dim and isElement(marker) and getElementType(plr)=='player' and source==marker and not isPedInVehicle(plr) and getElementData(source,'enable')==true then
 		givePlayerMoney(plr,tonumber(getElementData(source,'money')))
      outputChatBox('#33ff00 * the winner is [ '..getPlayerName(plr)..' ] and he get [ '..getElementData(source,'money')..' ] .',root,255,255,255,true)
      destroyElement(source)
    end
 end)

بالتوفيق يا عسل

53 minutes ago, |M.r|LooFe| said:

ابشر

 

Edited by Master_MTA
Posted
11 minutes ago, Master_MTA said:

client

في البدايه سوي ايديت باسم

GUIEditor.edit[4]

عشان الفلوس


GUIEditor = {
    button = {},
    edit = {},
    label = {}
}
local screenW, screenH = guiGetScreenSize()
wnd = guiCreateWindow((screenW - 336) / 2, (screenH - 453) / 2, 336, 453, ".:[ Kanz System By |M.r|LooFe| ]:.", false)
guiWindowSetSizable(wnd, false)
guiSetProperty(wnd, "CaptionColour", "FFFF0000")

GUIEditor.edit[1] = guiCreateEdit(72, 35, 241, 32, "", false, wnd)
guiEditSetReadOnly(GUIEditor.edit[1], true)
GUIEditor.edit[2] = guiCreateEdit(72, 84, 241, 32, "", false, wnd)
guiEditSetReadOnly(GUIEditor.edit[2], true)
GUIEditor.edit[3] = guiCreateEdit(72, 135, 241, 32, "", false, wnd)
guiEditSetReadOnly(GUIEditor.edit[3], true)
GUIEditor.button[1] = guiCreateButton(206, 234, 117, 47, "جلب احداثياتي", false, wnd)
guiSetFont(GUIEditor.button[1], "default-bold-small")
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF30FE00")
GUIEditor.button[2] = guiCreateButton(10, 234, 117, 47, "تعطيل/تفعيل الماركر", false, wnd)
guiSetFont(GUIEditor.button[2], "default-bold-small")
guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF30FE00")
GUIEditor.button[3] = guiCreateButton(206, 300, 117, 47, "موافق", false, wnd)
guiSetFont(GUIEditor.button[3], "default-bold-small")
guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FF30FE00")
exx = guiCreateButton(110, 391, 117, 47, "اغلاق", false, wnd)
guiSetFont(exx, "default-bold-small")
guiSetProperty(exx, "NormalTextColour", "FF30FE00")
GUIEditor.label[1] = guiCreateLabel(13, 35, 49, 22, "Pos X :", false, wnd)
guiSetFont(GUIEditor.label[1], "default-bold-small")
guiLabelSetColor(GUIEditor.label[1], 48, 254, 0)
GUIEditor.label[2] = guiCreateLabel(13, 88, 49, 22, "Pos Y :", false, wnd)
guiSetFont(GUIEditor.label[2], "default-bold-small")
guiLabelSetColor(GUIEditor.label[2], 48, 254, 0)
GUIEditor.label[3] = guiCreateLabel(13, 135, 49, 22, "Pos Z :", false, wnd)
guiSetFont(GUIEditor.label[3], "default-bold-small")
guiLabelSetColor(GUIEditor.label[3], 48, 254, 0)
GUIEditor.button[4] = guiCreateButton(10, 300, 117, 47, "حذف الماركر", false, wnd)
guiSetFont(GUIEditor.button[4], "default-bold-small")
guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FF30FE00")
-----------when player clickk buttons
addEventHandler('onClientGUIClick',root,function()
    if source==GUIEditor.button[1] then
      local x,y,z=getElemenetPosition(localPlayer)
      guiSetText(GUIEditor.edit[1],x) guiSetText(GUIEditor.edit[2],y) guiSetText(GUIEditor.edit[3],z-1)
    elseif source==GUIEditor.button[3] then
      if guiGetText(GUIEditor.edit[1])=='' or guiGetText(GUIEditor.edit[2])=='' or guiGetText(GUIEditor.edit[3])=='' or guiGetText(GUIEditor.edit[4])==''then return end
  triggerServerEvent('createmarker',localPlayer,guiGetText(GUIEditor.edit[1]),guiGetText(GUIEditor.edit[2]),guiGetText(GUIEditor.edit[3]),guiGetText(GUIEditor.edit[4]))
          elseif source==GUIEditor.button[3] then
triggerServerEvent('enbale',localPlayer)
    end
    
end)

server

side


addEvent('createmarker',true)
addEventHandler('createmarker',root,function(x,y,z,money)
    if x and y and z and money then
    local money=money or 1000  
      if isElement(marker) then destroyElement(marker) end 
    marker=createMarker(x,y,z,'cylinder',1.5,255,255,255)
      setElementData(marker,'money',money)
      setElementData(marker,'enable',false)
    end
    
end)    
addEvent('enable',true)
addEventHandler('enable',root,function()
   if isElement(marker) then 
   if getElementData(marker,'enable')==false then
        setElementData(marker,'enable',true)
        else
    setElementData(marker,'enable',false)
      end
    end
    
end)    
addEventHandler('onMarkerHit',root,function(plr,dim)
 if dim and isElement(marker) and getElementType(plr)=='player' and source==marker and not isPedInVehicle(plr) and getElementData(source,'enable')==true then
 		givePlayerMoney(plr,tonumber(getElementData(source,'money')))
      outputChatBox('#33ff00 * the winner is [ '..getPlayerName(plr)..' ] and he get [ '..getElementData(source,'money')..' ] .',root,255,255,255,true)
      destroyElement(source)
    end
 end)

بالتوفيق يا عسل

 

اخوي ما ابي اسوي ايديت

منه لحاله يعطيه 500000

وغعند لمس الماركر يوخذ الفلوس لحاله ما لو لقيه حد ثاني ما ينفع ياخذ فلوس

Posted
Just now, |M.r|LooFe| said:

اخوي ما ابي اسوي ايديت

منه لحاله يعطيه 500000

وغعند لمس الماركر يوخذ الفلوس لحاله ما لو لقيه حد ثاني ما ينفع ياخذ فلوس

سويته لك بهاذي الطريقه بالنسبه للايديت

عدل على الكلنت

شيل

guiGetText(GUIEditor.edit[4])

شلها وشيل 

or

اللي قبلها

وشيلها اييضا

من 

triggerServerEvent

وشيل الفاصله اللي قبلها

ثم روح للسيرفر

وشيل

mony

وروح عند

setElementData(marker,'money',mony)

غيرها لي

setElementData(marker,'money',500000)

Posted
Just now, Master_MTA said:

سويته لك بهاذي الطريقه بالنسبه للايديت

عدل على الكلنت

شيل

guiGetText(GUIEditor.edit[4])

شلها وشيل 

or

اللي قبلها

وشيلها اييضا

من 

triggerServerEvent

وشيل الفاصله اللي قبلها

ثم روح للسيرفر

وشيل

mony

وروح عند

setElementData(marker,'money',mony)

غيرها لي

setElementData(marker,'money',500000)

اوكي شكرا جزيلا

  • Like 1
Posted

بدل هذا بالموجود  عندك

addEvent('createmarker',true)
addEventHandler('createmarker',root,function(x,y,z)
    if x and y and z  then
      if isElement(marker) then destroyElement(marker) end 
    marker=createMarker(x,y,z,'cylinder',1.5,255,255,255)
      setElementData(marker,'money',500000)
      setElementData(marker,'enable',false)
    end
    
end)    

وبس

Posted
9 minutes ago, Master_MTA said:

بدل هذا بالموجود  عندك


addEvent('createmarker',true)
addEventHandler('createmarker',root,function(x,y,z)
    if x and y and z  then
      if isElement(marker) then destroyElement(marker) end 
    marker=createMarker(x,y,z,'cylinder',1.5,255,255,255)
      setElementData(marker,'money',500000)
      setElementData(marker,'enable',false)
    end
    
end)    

وبس

شكرا بس المود اشتغل بس ولا زر شغال

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...