iA7bk# Posted January 2, 2014 Share Posted January 2, 2014 (edited) السلام عليكم ورحمةة الله وبركاته شباب ابيكم تعدلون لي الكود حق السرعه كلنت addEventHandler ("onClientGUIClick", getRootElement(), function() if ( source == speed ) then triggerServerEvent("setPlayerSpeed",getLocalPlayer ( )) setGameSpeed ( 10 ) end end ) سيرفر addEvent("setPlayerSpeed",true) addEventHandler("setPlayerSpeed",root, function() if getPlayerMoney (source) >= 2000 then takePlayerMoney(source, 2000) outputChatBox(getPlayerName(source).." #ffff00Has Bought #00ffff[speed]",root,255,0,0,true) else outputChatBox("#00cc00You don't have #ff0000$2000 #00cc00to buy #ffff00[speed]",source,255,0,0,true) end end) التعديل الي ابيكم تسوونه انه لما يشتريه من الشوب يكون له وقت معين وتنتهي السرعه يعني مثلاً دقيقه وحده بس وينتهي وشكراً Edited January 2, 2014 by Guest Link to comment
al-Kobra Posted January 2, 2014 Share Posted January 2, 2014 Client Side addEventHandler ("onClientGUIClick", getRootElement(), function() if ( source == speed ) then triggerServerEvent("setPlayerSpeed",getLocalPlayer ( )) end end ) Server Side ! speed = function() if getPlayerMoney (source) >= 2000 then takePlayerMoney(source, 2000) outputChatBox(getPlayerName(source).." #ffff00Has Bought #00ffff[speed]",root,255,0,0,true) setGameSpeed ( 10 ) else outputChatBox("#00cc00You don't have #ff0000$2000 #00cc00to buy #ffff00[speed]",source,255,0,0,true) end end setTimer ( speed, 60*6000, 1 ) addEventHandler("setPlayerSpeed",root,speed) addEvent("setPlayerSpeed",true) جربه ورد لي خبر Link to comment
iMr.Dawix~# Posted January 2, 2014 Share Posted January 2, 2014 Client Side addEventHandler ("onClientGUIClick", getRootElement(), function() if ( source == speed ) then triggerServerEvent("setPlayerSpeed",getLocalPlayer ( )) end end ) Server Side ! speed = function() if getPlayerMoney (source) >= 2000 then takePlayerMoney(source, 2000) outputChatBox(getPlayerName(source).." #ffff00Has Bought #00ffff[speed]",root,255,0,0,true) setGameSpeed ( 10 ) else outputChatBox("#00cc00You don't have #ff0000$2000 #00cc00to buy #ffff00[speed]",source,255,0,0,true) end end setTimer ( speed, 60*6000, 1 ) addEventHandler("setPlayerSpeed",root,speed) addEvent("setPlayerSpeed",true) جربه ورد لي خبر كذا رح يغير السرعه لكل اللاعبين بالسيرفر يعني يفعل الحدث قبل م يضيفه addEventHandler يكون قبل addEvent والمفروض addEvent("setPlayerSpeed",true) speed = function() if getPlayerMoney (source) >= 2000 then takePlayerMoney(source, 2000) outputChatBox(getPlayerName(source).." #ffff00Has Bought #00ffff[speed]",root,255,0,0,true) setGameSpeed ( 10 ) else outputChatBox("#00cc00You don't have #ff0000$2000 #00cc00to buy #ffff00[speed]",source,255,0,0,true) end end setTimer( speed, 10000, 1)--- 10000 = 10 ثواني addEventHandler("setPlayerSpeed",root,speed) Link to comment
iA7bk# Posted January 2, 2014 Author Share Posted January 2, 2014 Client Side addEventHandler ("onClientGUIClick", getRootElement(), function() if ( source == speed ) then triggerServerEvent("setPlayerSpeed",getLocalPlayer ( )) end end ) Server Side ! speed = function() if getPlayerMoney (source) >= 2000 then takePlayerMoney(source, 2000) outputChatBox(getPlayerName(source).." #ffff00Has Bought #00ffff[speed]",root,255,0,0,true) setGameSpeed ( 10 ) else outputChatBox("#00cc00You don't have #ff0000$2000 #00cc00to buy #ffff00[speed]",source,255,0,0,true) end end setTimer ( speed, 60*6000, 1 ) addEventHandler("setPlayerSpeed",root,speed) addEvent("setPlayerSpeed",true) جربه ورد لي خبر الحين مره ما تجي السرعه !! خرب الكود اضغط على زر شراء السرعه ولا يجي شيء ابد Link to comment
iMr.Dawix~# Posted January 2, 2014 Share Posted January 2, 2014 جرب كود ضاوي لحظه كذا رح كل 10 ثواني يشغل السرعه يشتريه لازم اخليه يشيل السرعه زي كذا addEvent("setPlayerSpeed",true) speed = function() if getPlayerMoney (source) >= 2000 then takePlayerMoney(source, 2000) outputChatBox(getPlayerName(source).." #ffff00Has Bought #00ffff[speed]",root,255,0,0,true) setGameSpeed ( 10 ) setTimer(setGameSpeed, 10000,1,1)--- 10000 = 10 ثواني outputChatBox("#Speed Has Been Ended",source,255,0,0,true) else outputChatBox("#00cc00You don't have #ff0000$2000 #00cc00to buy #ffff00[speed]",source,255,0,0,true) end end addEventHandler("setPlayerSpeed",root,speed) Link to comment
iA7bk# Posted January 2, 2014 Author Share Posted January 2, 2014 Client Side addEventHandler ("onClientGUIClick", getRootElement(), function() if ( source == speed ) then triggerServerEvent("setPlayerSpeed",getLocalPlayer ( )) end end ) Server Side ! speed = function() if getPlayerMoney (source) >= 2000 then takePlayerMoney(source, 2000) outputChatBox(getPlayerName(source).." #ffff00Has Bought #00ffff[speed]",root,255,0,0,true) setGameSpeed ( 10 ) else outputChatBox("#00cc00You don't have #ff0000$2000 #00cc00to buy #ffff00[speed]",source,255,0,0,true) end end setTimer ( speed, 60*6000, 1 ) addEventHandler("setPlayerSpeed",root,speed) addEvent("setPlayerSpeed",true) جربه ورد لي خبر كذا رح يغير السرعه لكل اللاعبين بالسيرفر يعني يفعل الحدث قبل م يضيفه addEventHandler يكون قبل addEvent والمفروض addEvent("setPlayerSpeed",true) speed = function() if getPlayerMoney (source) >= 2000 then takePlayerMoney(source, 2000) outputChatBox(getPlayerName(source).." #ffff00Has Bought #00ffff[speed]",root,255,0,0,true) setGameSpeed ( 10 ) else outputChatBox("#00cc00You don't have #ff0000$2000 #00cc00to buy #ffff00[speed]",source,255,0,0,true) end end setTimer( speed, 10000, 1)--- 10000 = 10 ثواني addEventHandler("setPlayerSpeed",root,speed) ضاوي شكلها مو دقيقه ذي صارت اكثر من دقيقه وانا اجري والسرعه ما وقفت يا ليت تشوف لي حل Link to comment
iMr.Dawix~# Posted January 2, 2014 Share Posted January 2, 2014 ضاوي شكلها مو دقيقه ذي صارت اكثر من دقيقه وانا اجري والسرعه ما وقفت يا ليت تشوف لي حل جرب كود ضاوي لحظه كذا رح كل 10 ثواني يشغل السرعه يشتريه لازم اخليه يشيل السرعه زي كذا addEvent("setPlayerSpeed",true) speed = function() if getPlayerMoney (source) >= 2000 then takePlayerMoney(source, 2000) outputChatBox(getPlayerName(source).." #ffff00Has Bought #00ffff[speed]",root,255,0,0,true) setGameSpeed ( 10 ) setTimer(setGameSpeed, 10000,1,1)--- 10000 = 10 ثواني outputChatBox("#Speed Has Been Ended",source,255,0,0,true) else outputChatBox("#00cc00You don't have #ff0000$2000 #00cc00to buy #ffff00[speed]",source,255,0,0,true) end end addEventHandler("setPlayerSpeed",root,speed) Link to comment
iA7bk# Posted January 2, 2014 Author Share Posted January 2, 2014 يعطيك العافيه يا ضاوي ضبط ما قصرت تمت الافاده من قبل ضاوي Link to comment
./BlackBird# Posted January 2, 2014 Share Posted January 2, 2014 الي اعرفه كود ضاوي راح يخلي كل السيرفر سريع Link to comment
al-Kobra Posted January 2, 2014 Share Posted January 2, 2014 الي اعرفه كود ضاوي راح يخلي كل السيرفر سريع جربت اسويه من قبل ,, وصار بس اللاعب سريع Link to comment
iA7bk# Posted January 2, 2014 Author Share Posted January 2, 2014 الي اعرفه كود ضاوي راح يخلي كل السيرفر سريع صحح كلامك والله اشتريت انا وجات السرعه لخويي من غير ما يشتري هوا Link to comment
./BlackBird# Posted January 2, 2014 Share Posted January 2, 2014 server addEvent("setPlayerSpeed",true) speed = function() if getPlayerMoney (source) >= 2000 then takePlayerMoney(source, 2000) outputChatBox(getPlayerName(source).." #ffff00Has Bought #00ffff[speed]",root,255,0,0,true) triggerClientEvent(source,"Speed",source) outputChatBox("#Speed Has Been Ended",source,255,0,0,true) else outputChatBox("#00cc00You don't have #ff0000$2000 #00cc00to buy #ffff00[speed]",source,255,0,0,true) end end addEventHandler("setPlayerSpeed",root,speed) client addEvent("Speed",true) addEVentHandler("Speed",root, function () setGameSpeed ( 10 ) setTimer(setGameSpeed, 10000,1,1)--- 10000 = 10 end ) addEventHandler ("onClientGUIClick", getRootElement() function() if ( source == speed ) then triggerServerEvent("setPlayerSpeed",getLocalPlayer ( )) end end ) Link to comment
al-Kobra Posted January 2, 2014 Share Posted January 2, 2014 server addEvent("setPlayerSpeed",true) speed = function() if getPlayerMoney (source) >= 2000 then takePlayerMoney(source, 2000) outputChatBox(getPlayerName(source).." #ffff00Has Bought #00ffff[speed]",root,255,0,0,true) triggerClientEvent(source,"Speed",source) outputChatBox("#Speed Has Been Ended",source,255,0,0,true) else outputChatBox("#00cc00You don't have #ff0000$2000 #00cc00to buy #ffff00[speed]",source,255,0,0,true) end end addEventHandler("setPlayerSpeed",root,speed) client addEvent("Speed",true) addEVentHandler("Speed",root, function () setGameSpeed ( 10 ) setTimer(setGameSpeed, 10000,1,1)--- 10000 = 10 end ) addEventHandler ("onClientGUIClick", getRootElement() function() if ( source == speed ) then triggerServerEvent("setPlayerSpeed",getLocalPlayer ( )) end end ) addEVentHandler = addEventHandler Link to comment
iA7bk# Posted January 2, 2014 Author Share Posted January 2, 2014 server addEvent("setPlayerSpeed",true) speed = function() if getPlayerMoney (source) >= 2000 then takePlayerMoney(source, 2000) outputChatBox(getPlayerName(source).." #ffff00Has Bought #00ffff[speed]",root,255,0,0,true) triggerClientEvent(source,"Speed",source) outputChatBox("#Speed Has Been Ended",source,255,0,0,true) else outputChatBox("#00cc00You don't have #ff0000$2000 #00cc00to buy #ffff00[speed]",source,255,0,0,true) end end addEventHandler("setPlayerSpeed",root,speed) client addEvent("Speed",true) addEVentHandler("Speed",root, function () setGameSpeed ( 10 ) setTimer(setGameSpeed, 10000,1,1)--- 10000 = 10 end ) addEventHandler ("onClientGUIClick", getRootElement() function() if ( source == speed ) then triggerServerEvent("setPlayerSpeed",getLocalPlayer ( )) end end ) ما يشتغل Link to comment
Mr-M3AND Posted January 2, 2014 Share Posted January 2, 2014 server addEvent("setPlayerSpeed",true) speed = function() if getPlayerMoney (source) >= 2000 then takePlayerMoney(source, 2000) outputChatBox(getPlayerName(source).." #ffff00Has Bought #00ffff[speed]",root,255,0,0,true) triggerClientEvent(source,"Speed",source) outputChatBox("#Speed Has Been Ended",source,255,0,0,true) else outputChatBox("#00cc00You don't have #ff0000$2000 #00cc00to buy #ffff00[speed]",source,255,0,0,true) end end addEventHandler("setPlayerSpeed",root,speed) client addEvent("Speed",true) addEVentHandler("Speed",root, function () setGameSpeed ( 10 ) setTimer(setGameSpeed, 10000,1,1)--- 10000 = 10 end ) addEventHandler ("onClientGUIClick", getRootElement() function() if ( source == speed ) then triggerServerEvent("setPlayerSpeed",getLocalPlayer ( )) end end ) ما يشتغل :: Client addEvent("Speed",true) addEventHandler("Speed",root, function () setGameSpeed ( 10 ) setTimer(setGameSpeed, 10000,1,1)--- 10000 = 10 end ) addEventHandler ("onClientGUIClick", getRootElement() function() if ( source == speed ) then triggerServerEvent("setPlayerSpeed",getLocalPlayer ( )) end end ) Link to comment
iA7bk# Posted January 3, 2014 Author Share Posted January 3, 2014 برضو ما يشتغل لما اركب الكود المود كامل معد يشتغل مره Link to comment
The Killer Posted January 3, 2014 Share Posted January 3, 2014 addEventHandler("onClientGUIClick", root, if (source == speed) then if (getPlayerMoney(source) >= 2000) then triggerServerEvent("buySpeed", getLocalPlayer()) setGameSpeed(10) setTimer(function() setGameSpeed(1) outputChatBox("Speed Has End", 255, 255, 0) end, 60000, 1, true) end ) addEvent("buySpeed", true) addEventHandler("buySpeed", getRootElement(), function() outputChatBox("You Bought Speed By 2000$ For 1 Minute", source, 255, 255, 0, true) takePlayerMoney(source, 2000 ) end ) جرب .. ! Link to comment
iA7bk# Posted January 3, 2014 Author Share Posted January 3, 2014 addEventHandler("onClientGUIClick", root, if (source == speed) then if (getPlayerMoney(source) >= 2000) then triggerServerEvent("buySpeed", getLocalPlayer()) setGameSpeed(10) setTimer(function() setGameSpeed(1) outputChatBox("Speed Has End", 255, 255, 0) end, 60000, 1, true) end ) addEvent("buySpeed", true) addEventHandler("buySpeed", getRootElement(), function() outputChatBox("You Bought Speed By 2000$ For 1 Minute", source, 255, 255, 0, true) takePlayerMoney(source, 2000 ) end ) جرب .. ! برضو كودك ما يشتغل لاكن انا عدلة على الكود كذا كلنت addEventHandler ("onClientGUIClick", getRootElement(), function() if ( source == speed ) then setGameSpeed ( 10 ) setTimer(setGameSpeed, 100000,1,1)--- 10000 = 10 triggerServerEvent("setPlayerSpeed",getLocalPlayer ( )) end end ) سيرفر addEvent("setPlayerSpeed",true) speed = function() if getPlayerMoney (source) >= 2000 then takePlayerMoney(source, 2000) outputChatBox(getPlayerName(source).." #ffff00Has Bought #00ffff[speed]",root,255,0,0,true) triggerClientEvent(source,"Speed",source) else outputChatBox("#00cc00You don't have #ff0000$2000 #00cc00to buy #ffff00[speed]",source,255,0,0,true) end end addEventHandler("setPlayerSpeed",root,speed) كذا لو شريت السرعه بتجي للسيرفر كله ولالا ؟ Link to comment
The Killer Posted January 3, 2014 Share Posted January 3, 2014 جرب ! addEventHandler ("onClientGUIClick", getRootElement(), function() if ( source == speed ) then if getPlayerMoney ( ) >= 2000 then setGameSpeed ( 10 ) setTimer(setGameSpeed, 60000,1,1) triggerServerEvent("setPlayerSpeed",getLocalPlayer ( )) outputChatBox("You Bought #00ffff[speed]",255,0,0,true) else outputChatBox("#00cc00You don't have #ff0000$2000 #00cc00to buy #ffff00[speed]",255,0,0,true) end end end ) addEvent("setPlayerSpeed",true) speed = function() takePlayerMoney(source, 2000) end addEventHandler("setPlayerSpeed",root,speed) Link to comment
iA7bk# Posted January 3, 2014 Author Share Posted January 3, 2014 جرب ! addEventHandler ("onClientGUIClick", getRootElement(), function() if ( source == speed ) then if getPlayerMoney ( ) >= 2000 then setGameSpeed ( 10 ) setTimer(setGameSpeed, 60000,1,1) triggerServerEvent("setPlayerSpeed",getLocalPlayer ( )) outputChatBox("You Bought #00ffff[speed]",255,0,0,true) else outputChatBox("#00cc00You don't have #ff0000$2000 #00cc00to buy #ffff00[speed]",255,0,0,true) end end end ) addEvent("setPlayerSpeed",true) speed = function() takePlayerMoney(source, 2000) end addEventHandler("setPlayerSpeed",root,speed) كذا اضغط على الزر ما يجي شيء Link to comment
EH10 Posted January 3, 2014 Share Posted January 3, 2014 (edited) جرب ورد خبر تاكد من اسم الزر .. addEventHandler ("onClientGUIClick", getRootElement(), function () if source == speed then if getPlayerMoney ( ) >= 2000 then setGameSpeed ( 10 ) setTimer( setGameSpeed, 10000, 1, 1 ) triggerServerEvent("setPlayerSpeed",getLocalPlayer ( )) outputChatBox("You Bought #00ffff[speed]",255,0,0,true) else outputChatBox("#00cc00You don't have #ff0000$2000 #00cc00to buy #ffff00[speed]",255,0,0,true) end end end ) addEvent("setPlayerSpeed",true) addEventHandler("setPlayerSpeed",root, function () takePlayerMoney(source, 2000) end) Edited January 3, 2014 by Guest Link to comment
#Al-Ha[J]aRii Posted January 3, 2014 Share Posted January 3, 2014 جرب ! addEventHandler ("onClientGUIClick", getRootElement(), function() if ( source == speed ) then if getPlayerMoney ( ) >= 2000 then setGameSpeed ( 10 ) setTimer(setGameSpeed, 60000,1,1) triggerServerEvent("setPlayerSpeed",getLocalPlayer ( )) outputChatBox("You Bought #00ffff[speed]",255,0,0,true) else outputChatBox("#00cc00You don't have #ff0000$2000 #00cc00to buy #ffff00[speed]",255,0,0,true) end end end ) addEvent("setPlayerSpeed",true) speed = function() takePlayerMoney(source, 2000) end addEventHandler("setPlayerSpeed",root,speed) كذا اضغط على الزر ما يجي شيء خد كود @#~MJNONFIK~# : server addEvent("setPlayerSpeed",true) speed = function() if getPlayerMoney (source) >= 2000 then takePlayerMoney(source, 2000) outputChatBox(getPlayerName(source).." #ffff00Has Bought #00ffff[speed]",root,255,0,0,true) triggerClientEvent(source,"Speed",source) outputChatBox("#Speed Has Been Ended",source,255,0,0,true) else outputChatBox("#00cc00You don't have #ff0000$2000 #00cc00to buy #ffff00[speed]",source,255,0,0,true) end end addEventHandler("setPlayerSpeed",root,speed) client addEvent("Speed",true) addEventHandler("Speed",root, function () setGameSpeed ( 10 ) setTimer(setGameSpeed, 10000,1,1)--- 10000 = 10 end ) addEventHandler ("onClientGUIClick", getRootElement() function() if ( source == speed ) then triggerServerEvent("setPlayerSpeed",getLocalPlayer ( )) end end ) وأكتب في اف 8 debugscript 3 وقل لي وش يطلع لك . Link to comment
iA7bk# Posted January 3, 2014 Author Share Posted January 3, 2014 اسم الزر speed = guiCreateButton(11,350,158,38,"Speed",false,GUIEditor_Tab[2]) guiSetFont(speed,"default-bold-small") الكلنت addEvent("Speed",true) addEventHandler("Speed",root, function () setGameSpeed ( 10 ) setTimer(setGameSpeed, 10000,1,1)--- 10000 = 10 end ) addEventHandler ("onClientGUIClick", getRootElement() function() if ( source == speed ) then triggerServerEvent("setPlayerSpeed",getLocalPlayer ( )) end end ) سيرفر addEvent("setPlayerSpeed",true) speed = function() if getPlayerMoney (source) >= 2000 then takePlayerMoney(source, 2000) outputChatBox(getPlayerName(source).." #ffff00Has Bought #00ffff[speed]",root,255,0,0,true) triggerClientEvent(source,"Speed",source) outputChatBox("#Speed Has Been Ended",source,255,0,0,true) else outputChatBox("#00cc00You don't have #ff0000$2000 #00cc00to buy #ffff00[speed]",source,255,0,0,true) end end addEventHandler("setPlayerSpeed",root,speed) بنتظار التعديل # 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