[İSTEK] Grup Godmode ve Silah Yasaklama Sistemi

0 Üye ve 1 Ziyaretçi konuyu incelemekte.

Çevrimdışı drackles

  • Yeni Üye
  • *
    • İleti: 7
Merhaba grup için silah yasaklama ve ölümsüzlük sistemi istiyorum
« Son Düzenleme: 14 Haziran 2022, 12:38:01 Gönderen: 'Aspect »
 


MTASATURK

[İSTEK] Grup Godmode ve Silah Yasaklama Sistemi
« : 07 Şubat 2022, 18:44:03 »

Çevrimdışı Narisca

  • Yeni Üye
  • *
    • İleti: 77
Yanıtla #1 : 07 Şubat 2022, 19:55:08
Kod
function toggleGodMode(thePlayer) 
    local account = getPlayerAccount(thePlayer)
    if not account or isGuestAccount(account) then return end
    local accountName = getAccountName(account)
    if isObjectInACLGroup ( "user.".. accountName, aclGetGroup ( "Civilian" ) ) or isObjectInACLGroup ( "user.".. accountName, aclGetGroup ( "Admin" ) ) then
        setElementData(thePlayer,"invincible",not getElementData(thePlayer,"invincible"))
        if getElementData(thePlayer,"invincible") then outputChatBox("God Mode is now Disabled.",thePlayer,0,255,0)
        else outputChatBox("God Mode aktif!",thePlayer,0,255,0) end
    end
    addCommandHandler("godmode",toggleGodMode)
    addCommandHandler("god",toggleGodMode)
İletişim: narisca@temple-roleplay.com
Discord : Narisca#3655
Web Developer & Game Developer
Project : N/A
2020-2022
 


Çevrimdışı drackles

  • Yeni Üye
  • *
    • İleti: 7
Yanıtla #2 : 07 Şubat 2022, 20:13:35
Linki görebilmek için Kayıt olun yada Giriş yapın.
Kod
function toggleGodMode(thePlayer) 
    local account = getPlayerAccount(thePlayer)
    if not account or isGuestAccount(account) then return end
    local accountName = getAccountName(account)
    if isObjectInACLGroup ( "user.".. accountName, aclGetGroup ( "Civilian" ) ) or isObjectInACLGroup ( "user.".. accountName, aclGetGroup ( "Admin" ) ) then
        setElementData(thePlayer,"invincible",not getElementData(thePlayer,"invincible"))
        if getElementData(thePlayer,"invincible") then outputChatBox("God Mode is now Disabled.",thePlayer,0,255,0)
        else outputChatBox("God Mode aktif!",thePlayer,0,255,0) end
    end
    addCommandHandler("godmode",toggleGodMode)
    addCommandHandler("god",toggleGodMode)
çalışmıyor ayrıca otomatik godmode ve silah kullanmanın yasaklanmasını istiyorum kod olarak değil yinede teşekkürler