ABO-SR777777A Posted July 1, 2013 Share Posted July 1, 2013 السلام عليكم شباب ابي كود لو واح دخل السيرفر يكون معه فلوس مثلا 5000 الاف ريال ولو قتل واحد يجيله فلوس من 200 الى 90 ريال سعودي ض1 Link to comment
iPrestege Posted July 1, 2013 Share Posted July 1, 2013 Event's : onPlayerJoin and onPlayerWasted Function's : givePlayerMoney math.random Link to comment
ABO-SR777777A Posted July 1, 2013 Author Share Posted July 1, 2013 ابي كود الليفل كمان ض1 Link to comment
ABO-SR777777A Posted July 1, 2013 Author Share Posted July 1, 2013 Event's :onPlayerJoin and onPlayerWasted Function's : givePlayerMoney math.random ككيف؟ Link to comment
Tete omar Posted July 1, 2013 Share Posted July 1, 2013 ابي كود الليفل كمان ض1 setAccountData او استخدم نظام حفظ Link to comment
iPrestege Posted July 1, 2013 Share Posted July 1, 2013 ابي كود الليفل كمان ض1 setAccountData او استخدم نظام حفظ + سوي تيبل او داتا : setElementData getElementData كيف بالويكي Link to comment
ABO-SR777777A Posted July 1, 2013 Author Share Posted July 1, 2013 الكود الاول حق اذا دخل يجيله فلوس function onPlayerJoin ( thePlayer ) --when the givecash command is called givePlayerMoney ( 9000 ) --give the player money according to the amount end addCommandHandler ( "onPlayerWasted" ) - Link to comment
Quited Posted July 1, 2013 Share Posted July 1, 2013 الكود الاول حق اذا دخل يجيله فلوس function onPlayerJoin ( thePlayer ) --when the givecash command is called givePlayerMoney ( 9000 ) --give the player money according to the amount end addCommandHandler ( "onPlayerWasted" ) - كيف ذي يكتب الافنت باف 8 يجيه الفلوس ؟ Link to comment
iPrestege Posted July 1, 2013 Share Posted July 1, 2013 function vJoinMoney( ) givePlayerMoney ( source,5000 ); end; addEventHandler('onPlayerJoin',getRootElement ( ),vJoinMoney); Example .. يوم يدخل الاعب .. يحصل 5000 Link to comment
3tibe511 Posted July 1, 2013 Share Posted July 1, 2013 هههههههههههههههههه الله يشفيك والله ياخي انت موب صاحي Link to comment
S4MuEL Posted July 1, 2013 Share Posted July 1, 2013 شكلي نايم رح آغسل وجهكـ وصحصح وتعآل Link to comment
ABO-SR777777A Posted July 1, 2013 Author Share Posted July 1, 2013 انت برززايلي المهم لا نخرج برى الموضوع يلى هاتو الاكواد والمودات Link to comment
iPrestege Posted July 1, 2013 Share Posted July 1, 2013 نشتغل عندك؟ عطيناك الاكواد سوها انت بسس Link to comment
#DRAGON!FIRE Posted July 1, 2013 Share Posted July 1, 2013 Server Side : function GiveMonWasted ( ammo, killer ) if ( killer ) and ( killer ~= source ) then local MoRa = math.random(90,200) givePlayerMoney ( killer, MoRa) end end addEventHandler ( "onPlayerWasted", getRootElement(), GiveMonWasted ) Link to comment
ABO-SR777777A Posted July 2, 2013 Author Share Posted July 2, 2013 Server Side : function GiveMonWasted ( ammo, killer ) if ( killer ) and ( killer ~= source ) then local MoRa = math.random(90,200) givePlayerMoney ( killer, MoRa) end end addEventHandler ( "onPlayerWasted", getRootElement(), GiveMonWasted ) طيب ابيه تجيله الفلوس مثلا قتل واحد جاله 150 ت\لع له صوره 150 Link to comment
MSHOOSH Posted July 2, 2013 Share Posted July 2, 2013 Server Side : function GiveMonWasted ( ammo, killer ) if ( killer ) and ( killer ~= source ) then local MoRa = math.random(90,200) givePlayerMoney ( killer, MoRa) end end addEventHandler ( "onPlayerWasted", getRootElement(), GiveMonWasted ) طيب ابيه تجيله الفلوس مثلا قتل واحد جاله 150 ت\لع له صوره 150 كيف يعني ؟ Link to comment
AHMAD1234 Posted July 2, 2013 Share Posted July 2, 2013 اذا تبغى تطلع له صورة لازم تربطها مع الكلينت Link to comment
#Al-Ha[J]aRii Posted July 2, 2013 Share Posted July 2, 2013 Server Side : function GiveMonWasted ( ammo, killer ) if ( killer ) and ( killer ~= source ) then local MoRa = math.random(90,200) givePlayerMoney ( killer, MoRa) end end addEventHandler ( "onPlayerWasted", getRootElement(), GiveMonWasted ) طيب ابيه تجيله الفلوس مثلا قتل واحد جاله 150 ت\لع له صوره 150 guiCreateStaticImage or dxDrawImage Link to comment
ABO-SR777777A Posted July 2, 2013 Author Share Posted July 2, 2013 Server Side : function GiveMonWasted ( ammo, killer ) if ( killer ) and ( killer ~= source ) then local MoRa = math.random(90,200) givePlayerMoney ( killer, MoRa) end end addEventHandler ( "onPlayerWasted", getRootElement(), GiveMonWasted ) طيب ابيه تجيله الفلوس مثلا قتل واحد جاله 150 ت\لع له صوره 150 كيف يعني ؟ يجيك رقم حسب الفلوس الى جاتك في الشاشه Link to comment
AHMAD1234 Posted July 2, 2013 Share Posted July 2, 2013 Server Side : function GiveMonWasted ( ammo, killer ) if ( killer ) and ( killer ~= source ) then local MoRa = math.random(90,200) givePlayerMoney ( killer, MoRa) end end addEventHandler ( "onPlayerWasted", getRootElement(), GiveMonWasted ) طيب ابيه تجيله الفلوس مثلا قتل واحد جاله 150 ت\لع له صوره 150 guiCreateStaticImage or dxDrawImage + triggerClientEvent ("showMoney", killer) 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