Hallo,
Ich habe ein Adminduty Script für mein Scripting Server gescriptet...
Nun habe ich das Problem dass der Script rummbuggt... Ich habe einen Fehler gemacht undzwar indiesem..
--> Errors: ERROR: [vio]/vio/register_login/register_login_server.lua:575: attempt to index global 'adminsIngame' (a nil value)
Lua
function aoffduty_func ( player )
if isAdminLevel ( player, 3 ) then
setPedSkin ( player, vioGetElementData ( player, "skinid" ) )
takeAllWeapons ( player )
setPlayerNametagColor ( player, 200, 200, 200 )
else
outputChatBox ( "Du darfst nicht in einem Fahrzeug sitzen.", player, 125, 0, 0 )
end
else
outputChatBox ( "Du bist Admin im Dienst!", player, 125, 0, 0 )
end
end
end
addCommandHandler ( "aoffoduty", aoffduty_func )
function aduty (player)
if isAdminLevel ( player, 3 ) then
setElementModel ( player, 27 )
if vioGetElementData ( player )
local weapon = 29
local ammo = 90*2
giveWeapon ( player, weapon, ammo, true )
local armor = 100
setPedArmor ( player, armor )
end
addCommandHandler ( "aduty", aduty_func )
Alles anzeigen
Danke für jede hilfe!
MfG