Mr.R Posted July 15, 2015 Share Posted July 15, 2015 player من وين جبتها؟ جبتها من هنا function ( player ) لانها معرفه , انا حاطها كذا بس عادي تقدر تشيلها وتحط سورس ماتفرق Link to comment
Simple. Posted July 15, 2015 Share Posted July 15, 2015 player من وين جبتها؟ جبتها من هنا function ( player ) لانها معرفه , انا حاطها كذا بس عادي تقدر تشيلها وتحط سورس ماتفرق طيب كيف تعرفها والتريقر مافيه ارقمنتات؟ صح ولا انا غلطان؟ Link to comment
#DRAGON!FIRE Posted July 15, 2015 Share Posted July 15, 2015 صح @ Mr.R : اللوكال بلير الارقمنت اللي يجي بعد ااسم التريقر لاحظ قلت ارقمنت مهو اختياري يعني مو من الاشياء اللي ترسلها مع التريقر يعني الزبدهـ يوم ترسل تريقر تستخدم سورس بجانب سيرفر . Link to comment
Mr.R Posted July 16, 2015 Share Posted July 16, 2015 مشكورين ع المعلومه صححتها .. الي فهمته اني اضيف ارقمنت في الترايقر الي هو بلاير عشان اقدر اعرفه في الفنكشن حق سيرفر واستخدمه زي كذا -- Client triggerServerEvent ( "Minigun", localPlayer, player ) -- Server function ( player ) صح ؟ Link to comment
Simple. Posted July 16, 2015 Share Posted July 16, 2015 مشكورين ع المعلومه صححتها .. الي فهمته اني اضيف ارقمنت في الترايقر الي هو بلاير عشان اقدر اعرفه في الفنكشن حق سيرفر واستخدمه زي كذا -- Client triggerServerEvent ( "Minigun", localPlayer, player ) -- Server function ( player ) صح ؟ -- Client triggerServerEvent ( "Minigun", localPlayer, localPlayer ) -- Server function ( player ) Link to comment
H25 Posted July 16, 2015 Share Posted July 16, 2015 مشكورين ع المعلومه صححتها .. الي فهمته اني اضيف ارقمنت في الترايقر الي هو بلاير عشان اقدر اعرفه في الفنكشن حق سيرفر واستخدمه زي كذا -- Client triggerServerEvent ( "Minigun", localPlayer, player ) -- Server function ( player ) صح ؟ هو معرف اساساً الارقمنت الثاني في الفنكشن هو السورس في السيرفر في السيرفر مايحتاج تعرفه تستخدم source مباشرة Link to comment
justboy Posted July 16, 2015 Share Posted July 16, 2015 LINE NUMBER ON/OFF | EXPAND/CONTRACT | SELECT ALL -- Client triggerServerEvent ( "Minigun", localPlayer, player ) -- Server function ( player ) ^ triggerServerEvent ( "Minigun", localPlayer, localPlayer ) Link to comment
Mr.R Posted July 16, 2015 Share Posted July 16, 2015 (edited) addCommandHandler getElementsByType -- loop math.random givePlayerMoney setElementHealth setPedArmor setTimer > dxDrawText : نبدأ addCommandHandler ( "Gift", function ( ) for _,v in ipairs ( getElementsByType ( "player" ) ) do local Money = math.random ( 1000, 5000 ) -- أكمل end end ) Edited July 16, 2015 by Guest Link to comment
N3xT Posted July 16, 2015 Share Posted July 16, 2015 addCommandHandler ( "Gift", function ( player ) for _,v in ipairs ( getElementsByType ( "player" ) do local Money = math.random ( 1000, 5000 ) givePlayerMoney ( Money ) setElementHealth ( player , 100 ) setPedArmor ( player, 100 ) end ) احس اني جايب العيد ض Link to comment
The moVer Posted July 16, 2015 Share Posted July 16, 2015 addCommandHandler ( "Gift", function ( player ) for _,v in ipairs ( getElementsByType ( "player" ) do local Money = math.random ( 1000, 5000 ) givePlayerMoney ( Money ) setElementHealth ( player , 100 ) setPedArmor ( player, 100 ) end ) احس اني جايب العيد ض ما حطيت لمين يعطي فلوس Link to comment
' A F . Posted July 16, 2015 Share Posted July 16, 2015 addCommandHandler ( "Gift", function ( ) for _,v in ipairs ( getElementsByType ( "player" ) ) do local Money = math.random ( 1000, 5000 ) givePlayerMoney ( v,Money ) setElementHealth ( v , 100 ) setPedArmor ( v, 100 ) end end ) Link to comment
Professional Posted July 16, 2015 Share Posted July 16, 2015 addCommandHandler ( "Gift", function () for _,v in ipairs ( getElementsByType ( "player" ) do local Money = math.random ( 1000, 5000 ) givePlayerMoney ( source , Money ) setElementHealth ( source , 100 ) setPedArmor ( source , 100 ) end - --- end function end) - ----- end do and close arc Link to comment
</Mr.Tn6eL> Posted July 16, 2015 Author Share Posted July 16, 2015 fileOpen fileRead fileClose addCommandHandler addEventHandler dxDrawText removeEventHandler يكتب باف 8 rules يجيه تكست بالشاشة على القوانين واذ كتب مرة ثانية يختفي local file = fileOpen("rules.txt", true) local sx, sy = guiGetScreenSize( ) if file then end fileClose(file) addCommandHandler("rules", function( ) func = rules and removeEventHandler or addEventHandler func("onClientRender", root, render) rules = not rules end) function render( ) end Link to comment
#Mr.Rajo~,< Posted July 16, 2015 Share Posted July 16, 2015 local file = fileOpen("rules.txt", true) local sx, sy = guiGetScreenSize( ) if file then end fileClose(file) addCommandHandler("rules", function( ) func = rules and removeEventHandler or addEventHandler func("onClientRender", root, render) rules = not rules end) function render( ) if file then local Read = fileRead ("rules.txt", 600 ) dxDrawText(Read , left, top) end end صح او غلط ؟ ض1 Link to comment
</Mr.Tn6eL> Posted July 16, 2015 Author Share Posted July 16, 2015 local file = fileOpen("rules.txt", true) local sx, sy = guiGetScreenSize( ) if file then Read = fileRead(file, fileGetSize(file)) end fileClose(file) addCommandHandler("rules", function( ) func = rules and removeEventHandler or addEventHandler func("onClientRender", root, render) rules = not rules end) function render( ) if Read then dxDrawText(Read , left, top) end end Link to comment
Mr.R Posted July 16, 2015 Share Posted July 16, 2015 ياشباب الفنكشنات الي طرحتها مو كاملها الحين خليتها كامله وكان فيه خطا بالكود الي حطيته ناقص اند + قوس اللوب شفتها وكنت بعدلها بس سكيكو شركة الكهرب لازم تستعبط وتقطع الكهرب م اشتغل الا الحين : ) صلحو اكوادكم Link to comment
Jupi Posted July 17, 2015 Share Posted July 17, 2015 addCommandHandler ( "Gift", function () for _,v in ipairs ( getElementsByType ( "player" ) do local Money = math.random ( 1000, 5000 ) givePlayerMoney ( source , Money ) setElementHealth ( source , 100 ) setPedArmor ( source , 100 ) end - --- end function end) - ----- end do and close arc يا اخي يا اخي شوف انت لين السطر حق اللوب شغال حلو جدا بعد ما سويت اللوب ليش عطيت اللي كتب الكلمة الفلوس و الدرع و الدم ض المفروض الاعبين تصحيح addCommandHandler ("Gift", function () for _,v in ipairs (getElementsByType("player")) do local Money = math.random ( 1000, 5000 ) givePlayerMoney (v, Money) setElementHealth (v, 100) setPedArmor (v, 100) end end ) Link to comment
' A F . Posted July 17, 2015 Share Posted July 17, 2015 ^ طرحت الكود قبل لاكن هو م يفهم .. Link to comment
Mr.R Posted July 17, 2015 Share Posted July 17, 2015 (edited) addCommandHandler getElementsByType -- loop math.random givePlayerMoney setElementHealth setPedArmor triggerClientEvent setTimer > dxDrawText Edit Edited July 18, 2015 by Guest Link to comment
#Mr.Rajo~,< Posted July 17, 2015 Share Posted July 17, 2015 addCommandHandler ("Gift", function () for _,v in ipairs (getElementsByType("player")) do local Money = math.random ( 1000, 5000 ) givePlayerMoney (v, Money) setElementHealth (v, 100) setPedArmor (v, 100) setTimer(function(), dxDrawText ("U have Receive new gift" ,"left","top") end, 8000, 1 ) end end ) Link to comment
#|_oskar_|# Posted July 17, 2015 Share Posted July 17, 2015 addCommandHandler ("Gift", function () for _,v in ipairs (getElementsByType("player")) do local Money = math.random ( 1000, 5000 ) givePlayerMoney (v, Money) setElementHealth (v, 100) setPedArmor (v, 100) setTimer(function(), dxDrawText ("U have Receive new gift" ,"left","top") end, 8000, 1 ) end end ) المفروض تضيف الرندر عشان يظهر ال dxDrawText onClientRender Link to comment
#Mr.Rajo~,< Posted July 17, 2015 Share Posted July 17, 2015 كيف كذا ؟ addCommandHandler ("Gift", function () for _,v in ipairs (getElementsByType("player")) do local Money = math.random ( 1000, 5000 ) givePlayerMoney (v, Money) setElementHealth (v, 100) setPedArmor (v, 100) setTimer(function dxdraw(), dxDrawText ("U have Receive new gift" ,"left","top") end, 8000, 1 ) end end addEventHandler("onClientRender" ,resourceRoot,dxdraw ) Link to comment
#|_oskar_|# Posted July 17, 2015 Share Posted July 17, 2015 كيف كذا ؟ addCommandHandler ("Gift", function () for _,v in ipairs (getElementsByType("player")) do local Money = math.random ( 1000, 5000 ) givePlayerMoney (v, Money) setElementHealth (v, 100) setPedArmor (v, 100) setTimer(function dxdraw(), dxDrawText ("U have Receive new gift" ,"left","top") end, 8000, 1 ) end end addEventHandler("onClientRender" ,resourceRoot,dxdraw ) function dxdraw() dxDrawText ("U have Receive new gift" ,"left","top") end addCommandHandler ("Gift", function () for _,v in ipairs (getElementsByType("player")) do local Money = math.random ( 1000, 5000 ) givePlayerMoney (v, Money) setElementHealth (v, 100) setPedArmor (v, 100) addEventHandler("onClientRender" ,resourceRoot,dxdraw ) setTimer(function () removeEventHandler("onClientRender" ,resourceRoot,dxdraw ) end, 8000, 1 ) 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