HERO ¦ برمجة
293 subscribers
6 photos
1 video
30 files
15 links
👿الوصف هوه وصفك عندما ترا محتوه القنات😈
حسابي انسة مثبة
تلي @FLD_16
Download Telegram
تكملة
elif call.data ==
'admin_show_orders' and user_id == ADMIN_ID:
orders = show_orders()
bot.send_message(user_id, f"الطلبات المعلقة:\n{orders}")

elif call.data == 'admin_add_balance' and user_id == ADMIN_ID:
bot.send_message(user_id, "أرسل معرف المستخدم والمبلغ، مثل:\n5300000000 10000")

elif call.data == 'admin_stats' and user_id == ADMIN_ID:
with open(USERS_FILE, 'r') as f:
lines = f.readlines()[1:]
bot.send_message(user_id, f"عدد المستخدمين: {len(lines)}")

# شحن الرصيد من قبل الأدمن
@bot.message_handler(func=lambda msg: msg.from_user.id == ADMIN_ID and len(msg.text.split()) == 2)
def add_balance_manual(message):
user_id, amount = message.text.split()
update_balance(user_id, int(amount))
bot.send_message(ADMIN_ID, f"تم شحن {amount} فليدو للمستخدم {user_id}.")

# استقبال الطلبات من المستخدمين
@bot.message_handler(func=lambda msg: msg.text in ["إنستغرام", "تيك توك", "يوتيوب"])
def process_order(message):
user_id = message.from_user.id
platform = message.text
bot.send_message(user_id, "أدخل عدد المتابعين المطلوب:")
bot.register_next_step_handler(message, process_followers, platform)

def process_followers(message, platform):
user_id = message.from_user.id
followers = message.text
price = int(followers) * 10 # على سبيل المثال: 10 فليدو لكل 1000 متابع
if get_balance(user_id) >= price:
update_balance(user_id, -price)
add_order(user_id, platform, followers, price)
bot.send_message(user_id, f"تم تقديم الطلب! سيتم تصعيد {followers} متابع على منصة {platform}.")
else:
bot.send_message(user_id, "رصيدك غير كافٍ لتقديم الطلب.")

# تشغيل البوت
bot.polling()
👆هاذ الملف نسخه وشغله بايثون وراح يشتغل وياكم 😊
🎉1
فقط للي ما عدهم برنامج بايثون
خلي دخلي خاص ودزله البرنامج @Tagram313
تردون انشرلكم اكواد للترفيه
مثل الاعاب😊👍👍
👍1
This media is not supported in your browser
VIEW IN TELEGRAM
لعبة الحيه لعبة الطفوله 😇
منو يريدها @Tagram313
😁1
كود لعبه السياراة 🚗
import pygame
import random
import time

# تهيئة pygame
pygame.init()

# أبعاد الشاشة
width = 800
height = 600

# ألوان
white = (255, 255, 255)
black = (0, 0, 0)
red = (255, 0, 0)
blue = (0, 0, 255)

# إعداد الشاشة
screen = pygame.display.set_mode((width, height))
pygame.display.set_caption("لعبة السيارة - تحديات")

clock = pygame.time.Clock()

car_width = 50
car_height = 80

font = pygame.font.Font(None, 36)

def draw_text(text, x, y, color=black):
text_surface = font.render(text, True, color)
screen.blit(text_surface, (x, y))

def draw_car(x, y):
pygame.draw.rect(screen, blue, [x, y, car_width, car_height])

def draw_obstacle(x, y, w, h):
pygame.draw.rect(screen, black, [x, y, w, h])

def crash():
draw_text("خسرت! حاول مرة أخرى", width//3, height//2, red)
pygame.display.update()
time.sleep(2)
game_loop()

def game_loop():
x = width * 0.45
y = height * 0.8
x_change = 0

level = 1
score = 0
speed = 5
dodged = 0

# قائمة العوائق
obstacles = [
{"x": random.randint(0, width - 100), "y": -random.randint(100, 500), "w": 100, "h": 100}
for _ in range(3)
]

running = True
while running:
for event in pygame.event.get():
if event.type == pygame.QUIT:
pygame.quit()
quit()

if event.type == pygame.KEYDOWN:
if event.key == pygame.K_LEFT:
x_change = -7
elif event.key == pygame.K_RIGHT:
x_change = 7
if event.type == pygame.KEYUP:
if event.key in [pygame.K_LEFT, pygame.K_RIGHT]:
x_change = 0

x += x_change
screen.fill(white)

# رسم السيارة
draw_car(x, y)
car_rect = pygame.Rect(x, y, car_width, car_height)

# تحديث ورسم العوائق
for obs in obstacles:
obs['y'] += speed
draw_obstacle(obs['x'], obs['y'], obs['w'], obs['h'])

obs_rect = pygame.Rect(obs['x'], obs['y'], obs['w'], obs['h'])

# تصادم دقيق
if car_rect.colliderect(obs_rect):
crash()

# تجاوز العائق
if obs['y'] > height:
obs['y'] = -random.randint(100, 500)
obs['x'] = random.randint(0, width - obs['w'])
dodged += 1
score += 10

# رفع مستوى
if dodged % 5 == 0:
level += 1
speed += 1
obstacles.append({
"x": random.randint(0, width - 100),
"y": -random.randint(100, 500),
"w": 100,
"h": 100
})

# حدود الشاشة
if x < 0 or x > width - car_width:
crash()

# عرض معلومات
draw_text(f"النقاط: {score}", 10, 10)
draw_text(f"المستوى: {level}", 10, 40)

pygame.display.update()
clock.tick(60)

game_loop()
pygame.quit()
اكتبولي فكرة كود وكتبها للكم 👍
@Tagram313
👍1
@HRKtargmbot

انضمو لهاذ بوت التجارب مالتي راح ارفع بي ملفات وجربوهن
👍2
HERO ¦ برمجة
@HRKtargmbot انضمو لهاذ بوت التجارب مالتي راح ارفع بي ملفات وجربوهن
رفعة عليه ملف رفع ملفات بايثون ارفعو ملفاتكم
👍1🎉1
HERO ¦ برمجة pinned «@HRKtargmbot انضمو لهاذ بوت التجارب مالتي راح ارفع بي ملفات وجربوهن»
الي يجرب البوت يحط لايك👍
❤4👍4🔥2🎉2
توقف البوت بليل اكمل
راح ارفع ملف ذكاء الاصطناعي
الساعه ب8:00
ارفع ملف ذكاء الاصطناعي
دقايق وينفتح
@HRKtargmbot
صارت عندي مشكله بل رفع حتمال يطول
👾1
او حتمال راح ارفع ملف غيره!
اعتذر منكم حبايب گلبي ❤
بس مشكله صارة عندي وبوت الذكاء ما راح انزله راح انزل غيره!
انتضروني اليوم بعون الله ♥
❤2
#include <iostream>
using namespace std;

int main() {
double num1, num2;
char op;

cout << "أدخل الرقم الأول: ";
cin >> num1;

cout << "أدخل العملية (+ - * /): ";
cin >> op;

cout << "أدخل الرقم الثاني: ";
cin >> num2;

double result;

if (op == '+') {
result = num1 + num2;
} else if (op == '-') {
result = num1 - num2;
} else if (op == '*') {
result = num1 * num2;
} else if (op == '/') {
if (num2 != 0)
result = num1 / num2;
else {
cout << "خطأ: لا يمكن القسمة على صفر!" << endl;
return 1;
}
} else {
cout << "عملية غير صالحة!" << endl;
return 1;
}

cout << "النتيجة: " << result << endl;
return 0;
}


ــــــــــــــــــــــــ
هاذه كود بلغة ++c
كود حاسبه تحط اي رقم+-٪* وتحط رقم ثاني وتضغط Inter
👍1
انتضرو الجديد 🆕
👍1
شباب اعتذر منكم عن هاي الفتره مجاي انشر بس عندي شغل ومجاي الحك.
انشاء الله 🙂 عن قريب راح ارجع الكم بقوه 💪😊
👍1