</Mr.Tn6eL> Posted July 12, 2015 Share Posted July 12, 2015 السلام عليكم ورحمة الله وبركاته بسم الله الرحمن الرحيم الفكرة عبارة عن نسوي سكربت كامل بانفسنا يعني انا اكتب شوي من الكود والثاني يجي يكمل مثال function output(msg) end والثاني يجي يكمل function output(msg) return print(msg) end ولو كان في خطأ يصلحة اللي بعده مثلا نبي نسوي نظام اذا ضغط الاعب على زر يقله انت ضغطت الزر الوظائف اللي راح نستعملها "onClientKey" outputChatBox يلا انا ببدأ addEventHandler("onClientKey", root, function(button, press) end) Link to comment
iMr.Dawix~# Posted July 12, 2015 Share Posted July 12, 2015 function playerPressedKey(button, press) outputChatBox("You pressed the "..button.." key!") end addEventHandler("onClientKey", root, playerPressedKey) يشارك معنا هذا سويته قبل بس م ضبط يلغي ضغطه تضغط مره ثانيه يفتح function playerPressedKey(button, press) if button == "escape" then cancelEvent() end end addEventHandler("onClientKey", root, playerPressedKey) Link to comment
MoDeR2014 Posted July 12, 2015 Share Posted July 12, 2015 فكره جيده ولكن يجب ان نحدد الشيء الي نبي نبرمجه Link to comment
terreus Posted July 12, 2015 Share Posted July 12, 2015 فكره وقفت مخفي فكره روعة يا بنطلون < Link to comment
' A F . Posted July 13, 2015 Share Posted July 13, 2015 onPlayerLogin givePlayerMoney setAccountData getAccountData Link to comment
iMr.Dawix~# Posted July 13, 2015 Share Posted July 13, 2015 onPlayerLogin givePlayerMoney setAccountData getAccountData addEventHandler("onPlayerLogin",root,function () end ) Link to comment
#Mr.Rajo~,< Posted July 13, 2015 Share Posted July 13, 2015 addEventHandler("onPlayerLogin",root,function (player) givePlayerMoney ( player, 9999999) end ) Link to comment
' A F . Posted July 13, 2015 Share Posted July 13, 2015 addEventHandler("onPlayerLogin",root, function ( ) if ( getAccountData(getPlayerAccount ( source ) , "Money" ) == true ) then givePlayerMoney(source,100000) setAccountData(getPlayerAccount ( source ) , "Money",getPlayerMoney(source)) end end ) ^ ماني متأكد Link to comment
Mr.R Posted July 13, 2015 Share Posted July 13, 2015 addEventHandler ( "onPlayerQuit", root, function ( ) local pAccount = getAccountName ( getPlayerAccount ( source ) ) if not ( pAccount ) or isGuestAccount ( pAccount ) then return end setAccountData ( pAccount, "Money", getPlayerMoney ( source ) ) end end ) addEventHandler ( "onPlayerLogin", root, function ( _,Acc ) local GetMoney = getAccountData ( Acc, "Money" ) if ( GetMoney ) then givePlayerMoney ( source, 1000000 ) end end ) Link to comment
</Mr.Tn6eL> Posted July 13, 2015 Author Share Posted July 13, 2015 addEventHandler ( "onPlayerQuit", root, function ( ) local pAccount = getPlayerAccount ( source ) if not ( pAccount ) or isGuestAccount ( pAccount ) then return end setAccountData ( pAccount, "Money", getPlayerMoney ( source ) ) end ) addEventHandler ( "onPlayerLogin", root, function ( _,Acc ) local GetMoney = tonumber(getAccountData ( Acc, "Money" )) if ( GetMoney ) then setPlayerMoney ( source, GetMoney) end end ) يكتب باف 8 gift ويعطيه دم ودرع addCommandHandler setElementHealth setPedArmor + حسن مطرود من الموضوع بسبب السخرية ترا محد جبرك ترد خلكم شاهدين اذ رد ابخلي المشرفين يحذفون رده لأنه موضوعي Link to comment
Abdul KariM Posted July 13, 2015 Share Posted July 13, 2015 addEventHandler ( "onPlayerQuit", root, function ( ) local pAccount = getPlayerAccount ( source ) if not ( pAccount ) or isGuestAccount ( pAccount ) then return end setAccountData ( pAccount, "Money", getPlayerMoney ( source ) ) end ) addEventHandler ( "onPlayerLogin", root, function ( _,Acc ) local GetMoney = tonumber(getAccountData ( Acc, "Money" )) if ( GetMoney ) then setPlayerMoney ( source, GetMoney) end end ) يكتب باف 8 gift ويعطيه دم ودرع addCommandHandler setElementHealth setPedArmor + حسن مطرود من الموضوع بسبب السخرية ترا محد جبرك ترد خلكم شاهدين اذ رد ابخلي المشرفين يحذفون رده لأنه موضوعي function Tn6el(source) setElementHealth(source, 100) setPedArmor(source, 100) end addCommandHandler("gift",Tn6el) Link to comment
Simple. Posted July 13, 2015 Share Posted July 13, 2015 addEventHandler ("gift", function ( player ) if ( getElementHealth ( player ) ~= 100 ) and ( getPedArmor ( player ) ~= 100 ) then end end) Link to comment
Abdul KariM Posted July 13, 2015 Share Posted July 13, 2015 addEventHandler ("gift", function ( player ) if ( getElementHealth ( player ) ~= 100 ) and ( getPedArmor ( player ) ~= 100 ) then end end) addEventHandler Link to comment
</Mr.Tn6eL> Posted July 13, 2015 Author Share Posted July 13, 2015 الآن بنسوي ماركر لأخذ سيارة Table = { } "onMarkerHit" getElementType isElement destroyElement Table[player] = createVehicle warpPedIntoVehicle "onPlayerQuit" isElement destroyElement Table[source] = nil marker = createMarker(0, 0, 0, "cylinder", 1.5, 255, 255, 255) Table = { } addEventHandler("onMarkerHit", marker, function( ) end) addEventHandler("onPlayerQuit", root, function( ) end) Link to comment
Simple. Posted July 13, 2015 Share Posted July 13, 2015 addEventHandler ("gift", function ( player ) if ( getElementHealth ( player ) ~= 100 ) and ( getPedArmor ( player ) ~= 100 ) then end end) addEventHandler كتبتها من جوال معليش ماكنت مركز ههههههههههههههههه Link to comment
Professional Posted July 13, 2015 Share Posted July 13, 2015 ok بس ليه ما بس تكلمو مثال من كود تحطوه بمود تروحون قسم المساهمات تحطون موضوع مودات كل ما تعملو كود تعملوه مود وترفعوه على رابط وتحطوه في موضوع قسم المساهمات Link to comment
</Mr.Tn6eL> Posted July 13, 2015 Author Share Posted July 13, 2015 ok بس ليه ما بس تكلمو مثال من كود تحطوه بمود تروحون قسم المساهمات تحطون موضوع مودات كل ما تعملو كود تعملوه مود وترفعوه على رابط وتحطوه في موضوع قسم المساهمات اعتقد قلت لاترد الموضوع حاطه عشان اللي يبي يستفيد Link to comment
Jupi Posted July 13, 2015 Share Posted July 13, 2015 (edited) onPlayerLogin onMarkerHit onMarkerLeave createMarker isObjectInACLGroup setElementData getElementData createObject moveObject outputChatBox يلا ابدعو Edited July 13, 2015 by Guest Link to comment
</Mr.Tn6eL> Posted July 13, 2015 Author Share Posted July 13, 2015 onPlayerLogin onMarkerHit onMarkerLeave createMarker isObjectInACLGroup setElementData getElementData createObject moveObject outputChatBox يلا ابدعو خلينا نكمل اللي قبل بعدين نجي لحقك + قلنا وش تبي تسوي بالوظائف عشان نفهم ض1 Link to comment
Jupi Posted July 13, 2015 Share Posted July 13, 2015 onPlayerLogin onMarkerHit onMarkerLeave createMarker isObjectInACLGroup setElementData getElementData createObject moveObject outputChatBox يلا ابدعو خلينا نكمل اللي قبل بعدين نجي لحقك + قلنا وش تبي تسوي بالوظائف عشان نفهم ض1 سو باب ييفتح للكونسل عن طريق الdata سهلة Link to comment
</Mr.Tn6eL> Posted July 13, 2015 Author Share Posted July 13, 2015 ليش الداتا يمديني اخليه يفتح للكونسل بدون داتا + روح كمل الكود بالصفحة السابقة Link to comment
Jupi Posted July 13, 2015 Share Posted July 13, 2015 ليش الداتايمديني اخليه يفتح للكونسل بدون داتا + روح كمل الكود بالصفحة السابقة داري انك تقدر تسويه بس حبيت اصعبه شوي Link to comment
Jupi Posted July 13, 2015 Share Posted July 13, 2015 marker = createMarker(0, 0, 0, "cylinder", 1.5, 255, 255, 255) Table = {} addEventHandler("onMarkerHit", marker, function (Element, Dimension) if getElementType(Element) == "player" then if isElement(Table[source]) then destroyElement(Table[source]) end Table[source] = createVehicle(411, 0, 0, 0) warpPedIntoVehicle(Element, Table[source]) outputChatBox("لقد حصلت علي سيارة تنطلية : D",0, 255, 0) end end) addEventHandler("onPlayerQuit", root, function() end) Link to comment
</Mr.Tn6eL> Posted July 13, 2015 Author Share Posted July 13, 2015 marker = createMarker(0, 0, 0, "cylinder", 1.5, 255, 255, 255) Table = {} addEventHandler("onMarkerHit", marker, function (Element, Dimension) if getElementType(Element) == "player" and Dimension then if isElement(Table[source]) then destroyElement(Table[source]) end Table[Element] = createVehicle(411, 0, 0, 0) warpPedIntoVehicle(Element, Table[Element]) outputChatBox("لقد حصلت علي سيارة تنطلية : D", Element, 0, 255, 0) end end) addEventHandler("onPlayerQuit", root, function( ) if isElement(Table[source]) then destroyElement(Table[source]) end Table[source] = nil end) Link to comment
3NAD Posted July 13, 2015 Share Posted July 13, 2015 -- marker = createMarker(0, 0, 0, "cylinder", 1.5, 255, 255, 255) Table = {} addEventHandler("onMarkerHit", marker, function (Element, Dimension) if getElementType(Element) == "player" and Dimension then if Table[Element] then if isElement(Table[Element]) then destroyElement(Table[Element]) end end Table[Element] = createVehicle(411, 0, 0, 0) setTimer ( warpPedIntoVehicle, 100, 1, Element, Table[Element]) outputChatBox("لقد حصلت علي سيارة تنطلية : D", Element, 0, 255, 0) end end , false ) addEventHandler ( "onMarkerLeave", marker, function (Element, Dimension) if getElementType(Element) == "player" and Dimension then if Table[Element] then if isElement(Table[Element]) then destroyElement(Table[Element]) end end end end , false ) addEventHandler("onPlayerQuit", root, function( ) if isElement(Table[source]) then destroyElement(Table[source]) end Table[source] = nil 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