0 Üye ve 1 Ziyaretçi konuyu incelemekte.
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)
Kodfunction 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)