FAHD+18 Posted June 6, 2017 Share Posted June 6, 2017 الســــلااام علـــيــكــم ورحـــمــه اللــه وبركــاتـه رمــضــان كريم عليكم . شباب انا مسوي كود وكنت محتاج مساغدة بسيطة انا ابي مثلاا الرصاصة ب $25 15 يعني لو واحد حط كتب في الاديت رصاصة 15x25 يكــــــون يعني كل ما يحط طلقات تتغير سعرها في 25 اتمني تكونو فهمتوني والسلام عليكم ورحمه الله وبركاتة رمضان كريم عليكم وعلي الامة الاسلامية الكودات #Clienet addEventHandler ( "onClientGUIClick", root, function ( ) if source == zrar then local price = guiGetText ( edit ) if #price > 0 then triggerServerEvent ( "weapon", localPlayer, price ) end end end) #server addEvent ( "weapon", true ) addEventHandler ( "weapon", root, function ( price ) if price then giveWeapon ( source, 31, price, true ) end end ) Link to comment
^iiEcoo'x_) Posted June 6, 2017 Share Posted June 6, 2017 triggerServerEvent ( "weapon", localPlayer, tonumber ( price ) * 25 ) 1 Link to comment
FAHD+18 Posted June 6, 2017 Author Share Posted June 6, 2017 مو لازم يتاكد ان اللاعب معاة فلوس ! Link to comment
Adham Posted June 6, 2017 Share Posted June 6, 2017 (edited) عن طريق فكشن getPlayerMoney وتحقق ان الاعب معه فلوس اكبر من او يساوي مثلأ 500 Edited June 6, 2017 by Deativated Link to comment
Adham Posted June 6, 2017 Share Posted June 6, 2017 Just now, FAHD+18 said: طب وال 500 ماذا تفعل ؟ يتحقق ان فلوس اللاعب 500 او يساوي 500 Link to comment
AE. Posted June 6, 2017 Share Posted June 6, 2017 (edited) --سوي متغير اسمه ammo -- وحط فيه عدد الرصاصات priceofbullet = ammo*25 if getPlayerMoney(player) => priceofbullet then -- كودك Edited June 6, 2017 by 3laa33 Link to comment
FAHD+18 Posted June 6, 2017 Author Share Posted June 6, 2017 اضعها في ملف سيرفر ! صح 1 minute ago, 3laa33 said: priceofbullet = ammo*25 if getPlayerMoney(player) => priceofbullet then 2 minutes ago, Deativated said: يتحقق ان فلوس اللاعب 500 او يساوي 500 شكرا Link to comment
AE. Posted June 6, 2017 Share Posted June 6, 2017 ضيف الكود علي محل الاسلحة او ايا كان المود حقك داخل الفنكشن اللي يشتري فيه :3 انت مفكر لو حطيت الكود بيسويلك كل شئ 1 Link to comment
AE. Posted June 6, 2017 Share Posted June 6, 2017 addEvent ( "weapon", true ) addEventHandler ( "weapon", root, function ( price ) priceof = price * 25 if getPlayerMoney(source) >= priceof then giveWeapon ( source, 31, price, true ) end end ) يعني المفروض يصير كدة 1 Link to comment
FAHD+18 Posted June 6, 2017 Author Share Posted June 6, 2017 1 minute ago, 3laa33 said: addEvent ( "weapon", true ) addEventHandler ( "weapon", root, function ( price ) priceof = price * 25 if getPlayerMoney(source) >= priceof then giveWeapon ( source, 31, price, true ) end end ) يعني المفروض يصير كدة شكرا لك اخي والله <3 تعبتك معي 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