samp.directory
← Scripts e bibliotecas

quocthuan1007/inventorysystem-pwn

Sem descrição no GitHub.

Filterscript★ 1atualizado jul. de 2025Sem licençaPawn
Abrir no GitHub

Este repositório não tem arquivo de licença. Ele é público para leitura, mas isso sozinho não dá permissão para reutilizar.

README.md

🎒 SA-MP InventorySystem (PawnPlus)

Một hệ thống túi đồ (inventory) đơn giản, nhẹ, tương thích với mobile, được viết bằng PawnPlus. Hỗ trợ các item như pCash, pRadio,... theo chuẩn gamemode NGG, dễ dàng mở rộng thêm vật phẩm mới.

✍️ Tác giả gốc: Đinh Minh Khôi

📱 Chuyển thể mobile: Thuận

🛠️ Cài đặt

  1. 🔗 Tải PawnPlus phiên bản mới nhất tại đây:
    👉 Release v1.5.1

  2. Thêm vào compile:

    #include <pawnplus>
    #include "./includes/system/inventory/inv_ac.pwn"
    #include "./includes/system/inventory/inv.pwn"
    
    
  3. Gọi hàm xử lý textdraw:

// Trong OnPlayerClickTextDraw: Inv_OnResponse(playerid, clickedid);

// Trong OnPlayerClickPlayerTextDraw: Inv_OnClick(playerid, playertext);

🧾 Cách sử dụng

Hệ thống tương thích với các item có sẵn trong NGG như: pCash, pRadio, pPot,...

Để thêm một vật phẩm mới vào túi đồ, bạn cần thêm vào mảng như sau:

{pCash, 1, "Tien mat", 19313, 0.0, 0.0, 0.0, 0.0},

📌 Giải thích: pCash là tên thẻ, 1 là có nút sử dụng (0 nếu không cần), "Tien mat" là tên hiển thị, 19313 là ID object, các thông số phía sau có thể giữ nguyên nếu không dùng nâng cao.

🖼️ Giao diện ➕ Khi thêm item vào túi đồ

ℹ️ Khi nhấn nút "Thông tin"

🧪 Khi nhấn nút "Sử dụng"

Esta página é montada com o que o GitHub publica sobre o repositório. O samp.directory não hospeda o código. Avisar de um problema com esta página

quocthuan1007/inventorysystem-pwn: Filterscript de SA-MP | samp.directory