AhmeD~9MoD Posted May 31, 2013 Share Posted May 31, 2013 شباب عندي مشكلة في كودات الدم هذول الكودات تخلي اللاعب يزيد دمه وشرط يكون عنده الفلوس المعينة Server Side -- addEvent("Health", true) addEventHandler("Health", root, function () if (getPlayerMoney (source) >= 200) then takePlayerMoney(source, 200) setElementHealth ( source, 25 ) elseif (getPlayerMoney (source) < 200) then outputChatBox("انت لاتملك 200 لزيادة دمك ", source, 255, 0,0,true) end) addEvent("Health2", true) addEventHandler("Health2", root, function () if (getPlayerMoney (source) >= 600) then takePlayerMoney(source, 600) setElementHealth ( source, 50 ) elseif (getPlayerMoney (source) < 600) then outputChatBox("انت لاتملك 600 لزيادة دمك ", source, 255, 0, 0, true) end) addEvent("Health3", true) addEventHandler("Health3", root, function () if (getPlayerMoney (source) >= 1000) then takePlayerMoney(source, 1000) setElementHealth ( source, 100 ) elseif (getPlayerMoney (source) < 1000) then outputChatBox("انت لاتملك 1000 لزيادة دمك ", source, 255, 0, 0, true) end) Client Side -- addEventHandler("onClientGUIClick",getRootElement(), function ( ) if ( source == GUIEditor.button[1] ) then triggerServerEvent("Health",localPlayer) elseif ( source == GUIEditor.button[2] ) then triggerServerEvent("Health2",localPlayer) elseif ( source == GUIEditor.button[3] ) then triggerServerEvent("Health3",localPlayer) end end ) Link to comment
S4MuEL Posted May 31, 2013 Share Posted May 31, 2013 addEvent("Health", true) addEventHandler("Health", root, function () if (getPlayerMoney (source) >= 200) then takePlayerMoney(source, 200) setElementHealth (source,25) else outputChatBox("انت لاتملك 200 لزيادة دمك ", source, 255, 0,0,true) end ) addEvent("Health2", true) addEventHandler("Health2", root, function () if (getPlayerMoney (source) >= 600) then takePlayerMoney(source, 600) setElementHealth (source,50) else outputChatBox("انت لاتملك 600 لزيادة دمك ", source, 255, 0, 0, true) end ) addEvent("Health3", true) addEventHandler("Health3", root, function () if (getPlayerMoney (source) >= 1000) then takePlayerMoney(source, 1000) setElementHealth (source,100) else outputChatBox("انت لاتملك 1000 لزيادة دمك ", source, 255, 0, 0, true) end ) جرب ! Link to comment
AhmeD~9MoD Posted May 31, 2013 Author Share Posted May 31, 2013 addEvent("Health", true) addEventHandler("Health", root, function () if (getPlayerMoney (source) >= 200) then takePlayerMoney(source, 200) setElementHealth (source,25) else outputChatBox("انت لاتملك 200 لزيادة دمك ", source, 255, 0,0,true) end ) addEvent("Health2", true) addEventHandler("Health2", root, function () if (getPlayerMoney (source) >= 600) then takePlayerMoney(source, 600) setElementHealth (source,50) else outputChatBox("انت لاتملك 600 لزيادة دمك ", source, 255, 0, 0, true) end ) addEvent("Health3", true) addEventHandler("Health3", root, function () if (getPlayerMoney (source) >= 1000) then takePlayerMoney(source, 1000) setElementHealth (source,100) else outputChatBox("انت لاتملك 1000 لزيادة دمك ", source, 255, 0, 0, true) end ) جرب ! ما ضبط Link to comment
iPrestege Posted May 31, 2013 Share Posted May 31, 2013 ناقص اند فـ كل فنكشن بـ السيرفر Link to comment
S4MuEL Posted May 31, 2013 Share Posted May 31, 2013 لول صصح مآ آنتبهت , addEvent("Health", true) addEventHandler("Health", root, function () if (getPlayerMoney (source) >= 200) then takePlayerMoney(source, 200) setElementHealth (source,25) else outputChatBox("انت لاتملك 200 لزيادة دمك ", source, 255, 0,0,true) end end ) addEvent("Health2", true) addEventHandler("Health2", root, function () if (getPlayerMoney (source) >= 600) then takePlayerMoney(source, 600) setElementHealth (source,50) else outputChatBox("انت لاتملك 600 لزيادة دمك ", source, 255, 0, 0, true) end end ) addEvent("Health3", true) addEventHandler("Health3", root, function () if (getPlayerMoney (source) >= 1000) then takePlayerMoney(source, 1000) setElementHealth (source,100) else outputChatBox("انت لاتملك 1000 لزيادة دمك ", source, 255, 0, 0, true) end end ) Link to comment
AhmeD~9MoD Posted May 31, 2013 Author Share Posted May 31, 2013 كلنت فيه خطأ ؟؟؟ !! outputChatBox("Health Mod By AhmedSmood V.2 | Started",0,255,0,true) GUIEditor = { memo = {}, button = {}, label = {}, } GUIEditor = { window = {} } GUIEditor.window[1] = guiCreateWindow(179, 191, 419, 186, "Mostsfah Mod By AhmedSmood ", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00)guiSetVisible (GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFFF0000") GUIEditor.button[1] = guiCreateButton(308, 130, 101, 44, "Set To 25", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(151, 130, 101, 44, "Set To 50", false, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(10, 130, 101, 44, "Set To 100", false, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(44, 94, 90, 31, "1000 $", false, GUIEditor.window[1]) GUIEditor.label[2] = guiCreateLabel(172, 94, 90, 31, "600 $", false, GUIEditor.window[1]) GUIEditor.label[3] = guiCreateLabel(332, 94, 90, 31, "200 $", false, GUIEditor.window[1]) GUIEditor.memo[1] = guiCreateMemo(9, 20, 404, 65, "Set Your Health To 100 or 50 or 25 \nThis Mod Is By AhmedSmood ~", false, GUIEditor.window[1]) marker = createMarker( 2033.6513671875,-1404.0823974609,17.268367767334, "cylinder", 2, 255, 0, 5, 150 ) marker1 = createMarker( 1172.6295166016,-1321.7215576172,15.399421691895, "cylinder", 2, 255, 0, 5, 150 ) addEventHandler ( "onClientMarkerHit", marker, function ( hitPlayer ) if ( hitPlayer == localPlayer ) then guiSetVisible ( GUIEditor.window[1], true ) showCursor ( true ) end end,false ) addEventHandler ( "onClientMarkerHit", marker1, function ( hitPlayer ) if ( hitPlayer == localPlayer ) then guiSetVisible ( GUIEditor.window[1], true ) showCursor ( true ) end end,false ) addEventHandler("onClientGUIClick",getRootElement(), function ( ) if ( source == GUIEditor.button[1] ) then triggerServerEvent("Health",localPlayer) elseif ( source == GUIEditor.button[2] ) then triggerServerEvent("Health2",localPlayer) elseif ( source == GUIEditor.button[3] ) then triggerServerEvent("Health3",localPlayer) end end ) debugscript 3 says the error is in client.lua 19 !!!!!!!!! Link to comment
iPrestege Posted May 31, 2013 Share Posted May 31, 2013 GUIEditor = { memo = {}, button = {}, label = {}, window = {}, } التيبل شيل الثاني وخلة واحد بس هذا ذذ Link to comment
S4MuEL Posted May 31, 2013 Share Posted May 31, 2013 (edited) ممآ آدري كيفف , جرب .. outputChatBox("Health Mod By AhmedSmood V.2 | Started",0,255,0,true) GUIEditor = { memo = {}, window = {}, button = {}, label = {}, } GUIEditor.window[1] = guiCreateWindow(179, 191, 419, 186, "Mostsfah Mod By AhmedSmood ", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) guiSetVisible (GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFFF0000") GUIEditor.button[1] = guiCreateButton(308, 130, 101, 44, "Set To 25", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(151, 130, 101, 44, "Set To 50", false, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(10, 130, 101, 44, "Set To 100", false, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(44, 94, 90, 31, "1000 $", false, GUIEditor.window[1]) GUIEditor.label[2] = guiCreateLabel(172, 94, 90, 31, "600 $", false, GUIEditor.window[1]) GUIEditor.label[3] = guiCreateLabel(332, 94, 90, 31, "200 $", false, GUIEditor.window[1]) GUIEditor.memo[1] = guiCreateMemo(9, 20, 404, 65, "Set Your Health To 100 or 50 or 25 \nThis Mod Is By AhmedSmood ~", false, GUIEditor.window[1]) marker = createMarker( 2033.6513671875,-1404.0823974609,17.268367767334, "cylinder", 2, 255, 0, 5, 150 ) marker1 = createMarker( 1172.6295166016,-1321.7215576172,15.399421691895, "cylinder", 2, 255, 0, 5, 150 ) addEventHandler ( "onClientMarkerHit", marker, function ( hitPlayer ) if ( getElementType(hitPlayer) == ("player") ) then guiSetVisible ( GUIEditor.window[1], true ) showCursor ( true ) end end ) addEventHandler ( "onClientMarkerHit", marker1, function ( hitPlayer ) if ( getElementType(hitPlayer) == "(player") ) then guiSetVisible ( GUIEditor.window[1], true ) showCursor ( true ) end end ) addEventHandler("onClientGUIClick", root, function ( ) if ( source == GUIEditor.button[1] ) then triggerServerEvent("Health",localPlayer) elseif ( source == GUIEditor.button[2] ) then triggerServerEvent("Health2",localPlayer) elseif ( source == GUIEditor.button[3] ) then triggerServerEvent("Health3",localPlayer) end end ) Edited May 31, 2013 by Guest Link to comment
iPrestege Posted May 31, 2013 Share Posted May 31, 2013 ممآ آدري كيفف ,جرب .. outputChatBox("Health Mod By AhmedSmood V.2 | Started",0,255,0,true) GUIEditor = { memo = {}, button = {}, label = {}, } GUIEditor.window[1] = guiCreateWindow(179, 191, 419, 186, "Mostsfah Mod By AhmedSmood ", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) guiSetVisible (GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFFF0000") GUIEditor.button[1] = guiCreateButton(308, 130, 101, 44, "Set To 25", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(151, 130, 101, 44, "Set To 50", false, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(10, 130, 101, 44, "Set To 100", false, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(44, 94, 90, 31, "1000 $", false, GUIEditor.window[1]) GUIEditor.label[2] = guiCreateLabel(172, 94, 90, 31, "600 $", false, GUIEditor.window[1]) GUIEditor.label[3] = guiCreateLabel(332, 94, 90, 31, "200 $", false, GUIEditor.window[1]) GUIEditor.memo[1] = guiCreateMemo(9, 20, 404, 65, "Set Your Health To 100 or 50 or 25 \nThis Mod Is By AhmedSmood ~", false, GUIEditor.window[1]) marker = createMarker( 2033.6513671875,-1404.0823974609,17.268367767334, "cylinder", 2, 255, 0, 5, 150 ) marker1 = createMarker( 1172.6295166016,-1321.7215576172,15.399421691895, "cylinder", 2, 255, 0, 5, 150 ) addEventHandler ( "onClientMarkerHit", marker, function ( hitPlayer ) if ( getElementType(hitPlayer) == ("player") ) then guiSetVisible ( GUIEditor.window[1], true ) showCursor ( true ) end end ) addEventHandler ( "onClientMarkerHit", marker1, function ( hitPlayer ) if ( getElementType(hitPlayer) == "(player") ) then guiSetVisible ( GUIEditor.window[1], true ) showCursor ( true ) end end ) addEventHandler("onClientGUIClick", root, function ( ) if ( source == GUIEditor.button[1] ) then triggerServerEvent("Health",localPlayer) elseif ( source == GUIEditor.button[2] ) then triggerServerEvent("Health2",localPlayer) elseif ( source == GUIEditor.button[3] ) then triggerServerEvent("Health3",localPlayer) end end ) window = ? Link to comment
AhmeD~9MoD Posted May 31, 2013 Author Share Posted May 31, 2013 (edited) ممآ آدري كيفف ,جرب .. outputChatBox("Health Mod By AhmedSmood V.2 | Started",0,255,0,true) GUIEditor = { memo = {}, window = {}, button = {}, label = {}, } GUIEditor.window[1] = guiCreateWindow(179, 191, 419, 186, "Mostsfah Mod By AhmedSmood ", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) guiSetVisible (GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFFF0000") GUIEditor.button[1] = guiCreateButton(308, 130, 101, 44, "Set To 25", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(151, 130, 101, 44, "Set To 50", false, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(10, 130, 101, 44, "Set To 100", false, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(44, 94, 90, 31, "1000 $", false, GUIEditor.window[1]) GUIEditor.label[2] = guiCreateLabel(172, 94, 90, 31, "600 $", false, GUIEditor.window[1]) GUIEditor.label[3] = guiCreateLabel(332, 94, 90, 31, "200 $", false, GUIEditor.window[1]) GUIEditor.memo[1] = guiCreateMemo(9, 20, 404, 65, "Set Your Health To 100 or 50 or 25 \nThis Mod Is By AhmedSmood ~", false, GUIEditor.window[1]) marker = createMarker( 2033.6513671875,-1404.0823974609,17.268367767334, "cylinder", 2, 255, 0, 5, 150 ) marker1 = createMarker( 1172.6295166016,-1321.7215576172,15.399421691895, "cylinder", 2, 255, 0, 5, 150 ) addEventHandler ( "onClientMarkerHit", marker, function ( hitPlayer ) if ( getElementType(hitPlayer) == ("player") ) then guiSetVisible ( GUIEditor.window[1], true ) showCursor ( true ) end end ) addEventHandler ( "onClientMarkerHit", marker1, function ( hitPlayer ) if ( getElementType(hitPlayer) == "(player") ) then guiSetVisible ( GUIEditor.window[1], true ) showCursor ( true ) end end ) addEventHandler("onClientGUIClick", root, function ( ) if ( source == GUIEditor.button[1] ) then triggerServerEvent("Health",localPlayer) elseif ( source == GUIEditor.button[2] ) then triggerServerEvent("Health2",localPlayer) elseif ( source == GUIEditor.button[3] ) then triggerServerEvent("Health3",localPlayer) end end ) if ( getElementType( hitPlayer ) == "(player") ) then ?????? "(player") ) Edited May 31, 2013 by Guest Link to comment
AhmeD~9MoD Posted May 31, 2013 Author Share Posted May 31, 2013 ســـلآآمآآت ؟؟ addEventHandler ( "onClientMarkerHit", marker, function ( hitPlayer ) if ( getElementType(hitPlayer) == ("player") ) then guiSetVisible ( GUIEditor.window[1], true ) showCursor ( true ) end end ) addEventHandler ( "onClientMarkerHit", marker1, function ( hitPlayer ) if ( getElementType(hitPlayer) == "(player") ) then guiSetVisible ( GUIEditor.window[1], true ) showCursor ( true ) end end ) Link to comment
iPrestege Posted May 31, 2013 Share Posted May 31, 2013 -- # Client Side : outputChatBox("Health Mod By AhmedSmood V.2 | Started",0,255,0,true) GUIEditor = { memo = {}, button = {}, label = {}, window = {}, } GUIEditor.window[1] = guiCreateWindow(179, 191, 419, 186, "Mostsfah Mod By AhmedSmood ", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) guiSetVisible (GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFFF0000") GUIEditor.button[1] = guiCreateButton(308, 130, 101, 44, "Set To 25", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(151, 130, 101, 44, "Set To 50", false, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(10, 130, 101, 44, "Set To 100", false, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(44, 94, 90, 31, "1000 $", false, GUIEditor.window[1]) GUIEditor.label[2] = guiCreateLabel(172, 94, 90, 31, "600 $", false, GUIEditor.window[1]) GUIEditor.label[3] = guiCreateLabel(332, 94, 90, 31, "200 $", false, GUIEditor.window[1]) GUIEditor.memo[1] = guiCreateMemo(9, 20, 404, 65, "Set Your Health To 100 or 50 or 25 \nThis Mod Is By AhmedSmood ~", false, GUIEditor.window[1]) marker = createMarker( 2033.6513671875,-1404.0823974609,17.268367767334, "cylinder", 2, 255, 0, 5, 150 ) marker1 = createMarker( 1172.6295166016,-1321.7215576172,15.399421691895, "cylinder", 2, 255, 0, 5, 150 ) addEventHandler ( "onClientMarkerHit",getRootElement(), function ( hitPlayer ) if ( hitPlayer == localPlayer ) then if source == marker or source == marker1 then guiSetVisible ( GUIEditor.window[1], true ) showCursor ( true ) end end end,false ) addEventHandler("onClientGUIClick",getRootElement(), function ( ) if ( source == GUIEditor.button[1] ) then triggerServerEvent("Health",localPlayer) elseif ( source == GUIEditor.button[2] ) then triggerServerEvent("Health2",localPlayer) elseif ( source == GUIEditor.button[3] ) then triggerServerEvent("Health3",localPlayer) end end ) Link to comment
S4MuEL Posted May 31, 2013 Share Posted May 31, 2013 آلحين جآي آسآعدكـ صرت تتمسخر ؟ ! جآي آعدل وآنآ مستعجل ؟ ! مآ لي حقق آغلطـ !! Link to comment
S4MuEL Posted May 31, 2013 Share Posted May 31, 2013 -- # Client Side : outputChatBox("Health Mod By AhmedSmood V.2 | Started",0,255,0,true) GUIEditor = { memo = {}, button = {}, label = {}, window = {}, } GUIEditor.window[1] = guiCreateWindow(179, 191, 419, 186, "Mostsfah Mod By AhmedSmood ", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) guiSetVisible (GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFFF0000") GUIEditor.button[1] = guiCreateButton(308, 130, 101, 44, "Set To 25", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(151, 130, 101, 44, "Set To 50", false, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(10, 130, 101, 44, "Set To 100", false, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(44, 94, 90, 31, "1000 $", false, GUIEditor.window[1]) GUIEditor.label[2] = guiCreateLabel(172, 94, 90, 31, "600 $", false, GUIEditor.window[1]) GUIEditor.label[3] = guiCreateLabel(332, 94, 90, 31, "200 $", false, GUIEditor.window[1]) GUIEditor.memo[1] = guiCreateMemo(9, 20, 404, 65, "Set Your Health To 100 or 50 or 25 \nThis Mod Is By AhmedSmood ~", false, GUIEditor.window[1]) marker = createMarker( 2033.6513671875,-1404.0823974609,17.268367767334, "cylinder", 2, 255, 0, 5, 150 ) marker1 = createMarker( 1172.6295166016,-1321.7215576172,15.399421691895, "cylinder", 2, 255, 0, 5, 150 ) addEventHandler ( "onClientMarkerHit",getRootElement(), function ( hitPlayer ) if ( hitPlayer == localPlayer ) then if source == marker or source == marker1 then guiSetVisible ( GUIEditor.window[1], true ) showCursor ( true ) end end end,false ) addEventHandler("onClientGUIClick",getRootElement(), function ( ) if ( source == GUIEditor.button[1] ) then triggerServerEvent("Health",localPlayer) elseif ( source == GUIEditor.button[2] ) then triggerServerEvent("Health2",localPlayer) elseif ( source == GUIEditor.button[3] ) then triggerServerEvent("Health3",localPlayer) end end ) آلطريقةة ذي آففضضل , عششآن تختصر آلأكوآد ذذ Link to comment
AhmeD~9MoD Posted May 31, 2013 Author Share Posted May 31, 2013 ثآنكس شباب ^ ضبطت الكود حقك .. #'S4MuEL وتصحح الكود .. + #'S4MuEL انا اقول لك ان الكود فيه غلط , مو جاي اتمسخر عليك Link to comment
S4MuEL Posted May 31, 2013 Share Posted May 31, 2013 آلعففو ^ ولآههنت ع تصحيح آلغلططَ , Link to comment
AhmeD~9MoD Posted May 31, 2013 Author Share Posted May 31, 2013 يا شباب آخر طلب , بغيت ذول الكودات لما يكون دم اللاعب فل يطلع كلام بالشات "دمك غير ناقص , لاتستطيع زيادته" addEvent("Health", true) addEventHandler("Health", root, function () if (getPlayerMoney (source) >= 200) then takePlayerMoney(source, 200) setElementHealth (source,25) else outputChatBox("انت لاتملك 200 لزيادة دمك ", source, 255, 0,0,true) end end ) addEvent("Health2", true) addEventHandler("Health2", root, function () if (getPlayerMoney (source) >= 600) then takePlayerMoney(source, 600) setElementHealth (source,50) else outputChatBox("انت لاتملك 600 لزيادة دمك ", source, 255, 0, 0, true) end end ) addEvent("Health3", true) addEventHandler("Health3", root, function () if (getPlayerMoney (source) >= 1000) then takePlayerMoney(source, 1000) setElementHealth (source,100) else outputChatBox("انت لاتملك 1000 لزيادة دمك ", source, 255, 0, 0, true) end end ) وشكراً Link to comment
S4MuEL Posted May 31, 2013 Share Posted May 31, 2013 if ( getElementHealth(source) >= 100 ) then outputChatBox("دمكـ غير نآقص ! .. ", source, 255, 0,0,true) Link to comment
AhmeD~9MoD Posted May 31, 2013 Author Share Posted May 31, 2013 if ( getElementHealth(source) >= 100 ) then outputChatBox("دمكـ غير نآقص ! .. ", source, 255, 0,0,true) + 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