فتى تبوك Posted December 22, 2012 Share Posted December 22, 2012 السلام عليكم ورحمة الله وبركاته مساكم الله بالخير يالربع ياشباب انا ابي الاعب يسوي الحركه بفلوس addEventHandler("onClientGUIClick", guiRoot, function() takePlayerMoney(source, 1) if source == GUIEditor_Button[1] then setPedAnimation(localPlayer, "BAR", "dnk_stndm_loop") setTimer(setPedAnimation,5000,1,localPlayer) end end ) ومايجي Link to comment
[S.R]==|>K$hK$h Posted December 22, 2012 Share Posted December 22, 2012 addEventHandler("onClientGUIClick", guiRoot, function() takePlayerMoney(source, 100) if source == GUIEditor_Button[1] then setPedAnimation(localPlayer, "BAR", "dnk_stndm_loop") setTimer(setPedAnimation,5000,1,localPlayer) end end ) غير 100 الى المبلغ اللي تبيه Link to comment
فتى تبوك Posted December 22, 2012 Author Share Posted December 22, 2012 addEventHandler("onClientGUIClick", guiRoot, function() takePlayerMoney(source, 100) if source == GUIEditor_Button[1] then setPedAnimation(localPlayer, "BAR", "dnk_stndm_loop") setTimer(setPedAnimation,5000,1,localPlayer) end end ) غير 100 الى المبلغ اللي تبيه وش سويت ماسويت شي نفس الحاجه Link to comment
[S.R]==|>K$hK$h Posted December 22, 2012 Share Posted December 22, 2012 takePlayerMoney(source, 100) Link to comment
فتى تبوك Posted December 22, 2012 Author Share Posted December 22, 2012 takePlayerMoney(source, 100) بس مغير السعر؟ جربته وماظبط Link to comment
Baseplate Posted December 22, 2012 Share Posted December 22, 2012 addEventHandler("onClientGUIClick", guiRoot, function() takePlayerMoney(1) if source == GUIEditor_Button[1] then setPedAnimation(localPlayer, "BAR", "dnk_stndm_loop") setTimer(setPedAnimation,5000,1,localPlayer) end end ) Link to comment
Baseplate Posted December 22, 2012 Share Posted December 22, 2012 (edited) Or, client addEventHandler("onClientGUIClick", guiRoot, function() triggerServerEvent("getMoney", localPlayer) if source == GUIEditor_Button[1] then setPedAnimation(localPlayer, "BAR", "dnk_stndm_loop") setTimer(setPedAnimation,5000,1,localPlayer) end end ) server: addEvent("getMoney", true) addEventHandler("getMoney", root, function (thePlayer) takePlayerMoney(thePlayer, 1) end Edited December 22, 2012 by Guest Link to comment
فتى تبوك Posted December 22, 2012 Author Share Posted December 22, 2012 addEventHandler("onClientGUIClick", guiRoot, function() takePlayerMoney(1) if source == GUIEditor_Button[1] then setPedAnimation(localPlayer, "BAR", "dnk_stndm_loop") setTimer(setPedAnimation,5000,1,localPlayer) end end ) الكود مانفع يجي بالفلوس -1 ويسوي الحركه ابيه بفلوس Link to comment
Baseplate Posted December 22, 2012 Share Posted December 22, 2012 Or, client addEventHandler("onClientGUIClick", guiRoot, function() triggerServerEvent("getMoney", localPlayer) if source == GUIEditor_Button[1] then setPedAnimation(localPlayer, "BAR", "dnk_stndm_loop") setTimer(setPedAnimation,5000,1,localPlayer) end end ) server: addEvent("getMoney", true) addEventHandler("getMoney", root, function (thePlayer) takePlayerMoney(thePlayer, 1) end Link to comment
فتى تبوك Posted December 22, 2012 Author Share Posted December 22, 2012 Or, client addEventHandler("onClientGUIClick", guiRoot, function() triggerServerEvent("getMoney", localPlayer) if source == GUIEditor_Button[1] then setPedAnimation(localPlayer, "BAR", "dnk_stndm_loop") setTimer(setPedAnimation,5000,1,localPlayer) end end ) server: addEvent("getMoney", true) addEventHandler("getMoney", root, function (thePlayer) takePlayerMoney(thePlayer, 1) end ماظبط Link to comment
w7eeD Posted December 22, 2012 Share Posted December 22, 2012 (edited) client side ---- addEventHandler("onClientGUIClick", guiRoot, function() if source == GUIEditor_Button[1] then triggerServerEvent("moneyy",getLocalPlayer()) end end ) server side ---- addEvent("moneyy",true) addEventHandler("moneyy",root, function() local PlayerMoney = getPlayerMoney(source) if ( PlayerMoney >= 1000) then takePlayerMoney(source, 1000) setPedAnimation(localPlayer, "BAR", "dnk_stndm_loop") setTimer(setPedAnimation,5000,1,localPlayer) else outputChatBox("You don't have $1000 to buy This !!", source, 255, 0, 0, true) end end ) Edited December 22, 2012 by Guest Link to comment
Baseplate Posted December 22, 2012 Share Posted December 22, 2012 Note: Using this function client side (not recommended) will not change a players money server side. Link to comment
فتى تبوك Posted December 22, 2012 Author Share Posted December 22, 2012 Note: Using this function client side (not recommended) will not change a players money server side. وش تقول انت؟ اهرج عربي Link to comment
فتى تبوك Posted December 22, 2012 Author Share Posted December 22, 2012 addEventHandler("onClientGUIClick", guiRoot, function() if source == GUIEditor_Button[1] then local PlayerMoney = getPlayerMoney(source) if ( PlayerMoney >= 1000) then takePlayerMoney(source, 1000) end setPedAnimation(localPlayer, "BAR", "dnk_stndm_loop") setTimer(setPedAnimation,5000,1,localPlayer) end end ) يابعد حيي ماظبط Link to comment
Baseplate Posted December 22, 2012 Share Posted December 22, 2012 Client: addEventHandler("onClientGUIClick", guiRoot, function() triggerServerEvent("getMoney", localPlayer) if source == GUIEditor_Button[1] then setPedAnimation(localPlayer, "BAR", "dnk_stndm_loop") setTimer(setPedAnimation,5000,1,localPlayer) end end ) Server: addEvent("getMoney", true) addEventHandler("getMoney", root, function (thePlayer) local PlayerMoney = getPlayerMoney(thePlayer) if ( PlayerMoney >= 1) then takePlayerMoney(thePlayer, 1) end end Link to comment
فتى تبوك Posted December 22, 2012 Author Share Posted December 22, 2012 Client: addEventHandler("onClientGUIClick", guiRoot, function() triggerServerEvent("getMoney", localPlayer) if source == GUIEditor_Button[1] then setPedAnimation(localPlayer, "BAR", "dnk_stndm_loop") setTimer(setPedAnimation,5000,1,localPlayer) end end ) Server: addEvent("getMoney", true) addEventHandler("getMoney", root, function (thePlayer) local PlayerMoney = getPlayerMoney(thePlayer) if ( PlayerMoney >= 1) then takePlayerMoney(thePlayer, 1) end end ماظبط Link to comment
[S.R]==|>K$hK$h Posted December 22, 2012 Share Posted December 22, 2012 (edited) addEventHandler("onClientGUIClick", guiRoot, function() if source == GUIEditor_Button[1] then local PlayerMoney = getPlayerMoney(source) if ( PlayerMoney >= 1000) then takePlayerMoney(source, 1000) end setPedAnimation(localPlayer, "BAR", "dnk_stndm_loop") setTimer(setPedAnimation,5000,1,localPlayer) end end ) "===|OSAMA|===" author="By ===|OSAMA|===" description="Script" version="1.5" type="script"> if playerMoney >= 10000 then takePlayerMoney (10000) moveObject ( gate, 2000 , -2509.2658691406, -2945.6040039063, 16.357078552246 ) outputChatBox("* تم فتح البوابة !!",0,255,0,true) elseif playerMoney <= 10000 then Edited December 22, 2012 by Guest Link to comment
Baseplate Posted December 22, 2012 Share Posted December 22, 2012 Client: addEventHandler("onClientGUIClick", guiRoot, function() triggerServerEvent("getMoney", localPlayer) if source == GUIEditor_Button[1] then setPedAnimation(localPlayer, "BAR", "dnk_stndm_loop") setTimer(setPedAnimation,5000,1,localPlayer) end end ) Server: addEvent("getMoney", true) addEventHandler("getMoney", root, function (thePlayer) local PlayerMoney = getPlayerMoney(thePlayer) if ( PlayerMoney >= 1) then takePlayerMoney(thePlayer, 1) end end <meta> <script src="server.lua" type="server" /> <script src="client.lua" type="client" /> </meta> Link to comment
w7eeD Posted December 22, 2012 Share Posted December 22, 2012 client side ---- addEventHandler("onClientGUIClick", guiRoot, function() if source == GUIEditor_Button[1] then triggerServerEvent("moneyy",getLocalPlayer()) end end ) server side ---- addEvent("moneyy",true) addEventHandler("moneyy",root, function() local PlayerMoney = getPlayerMoney(source) if ( PlayerMoney >= 1000) then takePlayerMoney(source, 1000) setPedAnimation(localPlayer, "BAR", "dnk_stndm_loop") setTimer(setPedAnimation,5000,1,localPlayer) else outputChatBox("You don't have $1000 to buy This !!", source, 255, 0, 0, true) end end ) ^^ هذا ما جربته بس مضبوط 100 % ^^^ لوول .. Link to comment
فتى تبوك Posted December 22, 2012 Author Share Posted December 22, 2012 /debugscript 3 Link to comment
فتى تبوك Posted December 22, 2012 Author Share Posted December 22, 2012 client side ---- addEventHandler("onClientGUIClick", guiRoot, function() if source == GUIEditor_Button[1] then triggerServerEvent("moneyy",getLocalPlayer()) end end ) server side ---- addEvent("moneyy",true) addEventHandler("moneyy",root, function() local PlayerMoney = getPlayerMoney(source) if ( PlayerMoney >= 1000) then takePlayerMoney(source, 1000) setPedAnimation(localPlayer, "BAR", "dnk_stndm_loop") setTimer(setPedAnimation,5000,1,localPlayer) else outputChatBox("You don't have $1000 to buy This !!", source, 255, 0, 0, true) end end ) ^^ هذا ما جربته بس مضبوط 100 % ^^^ لوول .. خشمك ياذيبان Link to comment
[S.R]==|>K$hK$h Posted December 22, 2012 Share Posted December 22, 2012 client side ---- addEventHandler("onClientGUIClick", guiRoot, function() if source == GUIEditor_Button[1] then triggerServerEvent("moneyy",getLocalPlayer()) end end ) server side ---- addEvent("moneyy",true) addEventHandler("moneyy",root, function() local PlayerMoney = getPlayerMoney(source) if ( PlayerMoney >= 1000) then takePlayerMoney(source, 1000) setPedAnimation(localPlayer, "BAR", "dnk_stndm_loop") setTimer(setPedAnimation,5000,1,localPlayer) else outputChatBox("You don't have $1000 to buy This !!", source, 255, 0, 0, true) end end ) ^^ هذا ما جربته بس مضبوط 100 % ^^^ لوول .. طيب وين الحقوق ي بطل ؟ Link to comment
فتى تبوك Posted December 22, 2012 Author Share Posted December 22, 2012 ظبط بس الحركه ماتصير يسحب فلوس وكل شي بس مايتحرك Link to comment
AhmadQTR Posted December 22, 2012 Share Posted December 22, 2012 ظبط بس الحركه ماتصير يسحب فلوس وكل شي بس مايتحرك addEvent("moneyy",true) addEventHandler("moneyy",root, function() local PlayerMoney = getPlayerMoney(source) if ( PlayerMoney >= 1000) then takePlayerMoney(source, 1000) setPedAnimation(source, "BAR", "dnk_stndm_loop") setTimer(setPedAnimation,5000,1,source) else outputChatBox("You don't have $1000 to buy This !!", source, 255, 0, 0, true) end end ) Link to comment
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