Das die datein verschlüsselt sind ist mir klar, nur wie entschlüssele ich die
Ohne die entschlüsselte datei kann ich garnix fixen.
Beiträge von Umgamings
-
-
Hallo,
ich habe ein problem beim mod/script Mta Dayz.
Ich habe germerkt, das die animationen nicht stoppen sobald man was isst oder nimmt, wie man das fixt weiß ich schon,
nur das problem ist, ich kann es nicht machen.
In den script ist zu 99% alles lua_dayz files, und ich habe keine ahnung wie ich die öffne.
Mit notepad++ kommen nur komische zeichen raus.Danke im vorraus
-
Dankööö. Geht jz alles
-
Ok habe es jz getriggert, es geht zwar alles, aber das log fenster öffnet sich für jeden Spieler.
Das wollte ich eig nicht.Client:
Luafunction aOpenWin() guiSetVisible( aWindow, not guiGetVisible( aWindow ) ) showCursor( not isCursorShowing( ) ) aRefreshList( ) end addEvent("onOpenWin", true) addEventHandler("onOpenWin", getRootElement(), aOpenWin)
Server:
Luafunction OpenWin(player) for _, group in ipairs ({"Admin", "Owner","Superadmin"}) do local pname = getAccountName(getPlayerAccount(player)) if isObjectInACLGroup ( "user.".. accountName, aclGetGroup ( group ) ) then triggerClientEvent("onOpenWin", player) end end end addCommandHandler("adminlogs", OpenWin)
-
Achja, da war ja was
Habe des voll verpeilt
Gibts trzdm ein weg das in ne client reinzuhauen? -
Hey,
ich habe ein bereits vorhandes script versucht umzuschreiben, das halt nur Admin,Owners, und Superadmin das log window öffnen können.
Nur leider kriege ich den fehler der oben als überschrift genannt ist.Script (client):
Lua
Alles anzeigen--[[function out( string ) outputDebugString( string ) end]] function centerWindow(center_window) local screenW,screenH=guiGetScreenSize() local windowW,windowH=guiGetSize(center_window,false) local x,y = (screenW-windowW)/2,(screenH-windowH)/2 guiSetPosition(center_window,x,y,false) end addEventHandler( 'onClientResourceStart', resourceRoot, function( ) aWindow = guiCreateWindow(0.23, 0.14, 0.56, 0.63, 'Last Login', true) guiSetVisible( aWindow, false ) centerWindow( aWindow ) guiWindowSetSizable( aWindow, true ) aGridlist = guiCreateGridList( 12, 25, 425, 319, false, aWindow ) guiGridListSetSortingEnabled( aGridlist, false ) guiGridListAddColumn( aGridlist, 'Account name', 0.4) guiGridListAddColumn( aGridlist, 'Data', 0.5) guiSetAlpha( aGridlist, .8 ) aButton = guiCreateButton(10, 349, 114, 20, 'Refresh list', false, aWindow ) setElementData( aButton, 'aButton', aButton ) addEventHandler( 'onClientGUIClick', aButton, aRefreshList, false ) guiSetFont( aButton, 'default-bold-small' ) guiSetProperty( aButton, 'NormalTextColour', 'FFAAAAAA') aLabel = guiCreateLabel(243, 349, 197, 15, 'Time now is: 0-0-0 00:00', false, aWindow) guiSetFont( aLabel, 'default-bold-small' ) guiSetFont( aGridlist, 'default-bold-small' ) end ) function setTimeNow( ) local time = getRealTime( ) guiSetText( aLabel, string.format( '%04d-%02d-%02d %02d:%02d:%02d', time.year + 1900, time.month + 1, time.monthday, time.hour, time.minute, time.second ) ) end setTimer ( setTimeNow, 1000, 0 ) --addEventHandler( 'onClientRender', getRootElement( ), setTimeNow ) function getTimeNow( ) local time = getRealTime( ) return string.format( '%04d-%02d-%02d %02d:%02d', time.year + 1900, time.month + 1, time.monthday, time.hour, time.minute ) end function aRefreshList( ) guiSetEnabled( getElementData( aButton, 'aButton' ) , false ) guiGridListClear( aGridlist ) triggerServerEvent( 'aButtonRefresh', getLocalPlayer( ) ) setTimer( guiSetEnabled, 4000, 1, getElementData( aButton, 'aButton'), true ) end aSerials = { [ '3460396978F17FE72B94034FBBA02542' ] = true ; } function aOpenWin(player) for _, group in ipairs ({"Admin", "Owner","Superadmin"}) do local accountName = getAccountName(getPlayerAccount(player)) --hier ist der error if isObjectInACLGroup ( "user.".. accountName, aclGetGroup ( group ) ) then guiSetVisible( aWindow, not guiGetVisible( aWindow ) ) showCursor( not isCursorShowing( ) ) aRefreshList( ) end end end addCommandHandler("adminlogs", aOpenWin) function getDataTime( aTime ) if ( aTime ~= 'online' ) then local aYear, aMonth, aDay, _, _ = string.match( aTime, '^(.-)-(.-)-(.-) (.-):(.-)$' ) local aYear1, aMonth1, aDay1, _, _ = string.match( getTimeNow( ), '^(.-)-(.-)-(.-) (.-):(.-)$' ) if ( aYear1 == aYear ) then if ( aMonth == aMonth1 ) and ( aDay == aDay1 ) then return 'Today' elseif ( aMonth == aMonth1 ) and ( aDay ~= aDay1 ) then local fDay = string.format( '%02d', ( aDay + 1 ) ) if ( fDay == aDay1 ) then return 'Yesterday' elseif ( aMonth == aMonth1 ) and ( aDay ~= aDay1 ) then local gDay = ( aDay1 - aDay ) return math.abs( gDay ).. ' Days ago' end elseif ( aMonth ~= aMonth1 ) then return 'months ago' end end return 'Years ago' end return ' ' end function onGetAllData( gName, gData, nOnline, nOfline, iR, iG, iB ) local aRow = guiGridListAddRow( aGridlist ) guiGridListSetItemText( aGridlist, aRow, 1, gName, false, false ) guiGridListSetItemText( aGridlist, aRow, 2, gData .. ' (' .. getDataTime( gData ) .. ') ', false, false ) guiGridListSetItemColor( aGridlist, aRow, 2, iR, iG, iB ) guiSetText( aWindow, ' Online ' .. nOnline .. ' / ' .. nOfline .. ' Otherwise ' ) end addEvent( 'onGetAllData', true ) addEventHandler( 'onGetAllData', getLocalPlayer( ), onGetAllData )
-
-
[2014-10-06 21:38:12] SCRIPT ERROR: playtime/tiempo_S.lua:128: ')' expected (to close '(' at line 123) near '<eof>'
[2014-10-06 21:38:12] ERROR: Loading script failed: playtime/tiempo_S.lua:128: ')' expected (to close '(' at line 123) near '<eof>'hmm :x
___________________________
habs hinbekommen, aber dieses funktion ging nach hinten los
Der setzt einfach wie bei "setElementData" den string dahin.
Der addiert das nichtBeittäge aufgrund eines Doppelposts zusammengefügt-Doneasty
-
Lua
addCommandHandler("addtime", function(player,cmd,target) if (target) then timecount = getElementData(getPlayerFromName(target),"playtime") setElementData(getPlayerFromName(target),"playtime",timecount +1) end end)
//Edit: Gebe eben das ganze script:
Lua
Alles anzeigen------------------------------------------------------------------------------------ -- RIGHTS: All rights reserved by developers -- DEVELOPERS: Oscar Ernesto (The'Oskar) -- Don't Touch This or a Cat will Die D:!!!!!!!! ------------------------------------------------------------------------------------ call ( getResourceFromName ( "scoreboard" ), "scoreboardAddColumn", "Play Time" ) ---Export of ScoreBoard addEventHandler ( "onResourceStart" , resourceRoot , function ( ) for index , player in ipairs ( getElementsByType ( "player" ) ) do local pAccount = getPlayerAccount ( player ) if not isGuestAccount ( pAccount ) then local minutes = getAccountData ( pAccount , "Online.minutes" ) if minutes then local hours = getAccountData ( pAccount , "Online.hours" ) if # tostring ( minutes ) == 1 then minutes = "0" .. minutes end if # tostring ( hours ) == 1 then hours = "0" .. hours end setElementData ( player , "Play Time" , hours .. ":" .. minutes .. "" ) local timer = setTimer ( actualizarJugadorOn , 60000 , 1 , player ) setElementData ( player , "Online.timer" , timer ) else setAccountData ( pAccount , "Online.minutes" , 0 ) setAccountData ( pAccount , "Online.hours" , 0 ) setElementData ( player , "Play Time" , "00:00 " ) local timer = setTimer ( actualizarJugadorOn , 60000 , 1 , player ) setElementData ( player , "Online.timer" , timer ) end else setElementData ( player , "Play Time" , "N/A" ) end end end ) addEventHandler ( "onResourceStop" , resourceRoot , function ( ) for index , player in ipairs ( getElementsByType ( "player" ) ) do local pAccount = getPlayerAccount ( player ) if not isGuestAccount ( pAccount ) then local timer = getElementData ( player , "Online.timer" ) if isTimer ( timer ) then killTimer ( timer ) end end end end ) addEventHandler ( "onPlayerLogin" , root , function ( _ , pAccount ) local minutes = getAccountData ( pAccount , "Online.minutes" ) if minutes then local hours = getAccountData ( pAccount , "Online.hours" ) if # tostring ( minutes ) == 1 then minutes = "0" .. minutes end if # tostring ( hours ) == 1 then hours = "0" .. hours end setElementData ( source , "Play Time" , hours .. ":" .. minutes .. "" ) local timer = setTimer ( actualizarJugadorOn , 60000 , 1 , source ) setElementData ( source , "Online.timer" , timer ) else setAccountData ( pAccount , "Online.minutes" , 0 ) setAccountData ( pAccount , "Online.hours" , 0 ) setElementData ( source , "Play Time" , "00:00" ) local timer = setTimer ( actualizarJugadorOn , 60000 , 1 , source ) setElementData ( source , "Online.timer" , timer ) end end ) addEventHandler ( "onPlayerLogout" , root , function ( pAccount ) local timer = getElementData ( source , "Online.timer" ) if isTimer ( timer ) then killTimer ( timer ) end end ) addEventHandler ( "onPlayerJoin" , root , function ( ) setElementData ( source , "Play Time" , "N/A" ) end ) addEventHandler ( "onPlayerQuit" , root , function ( ) local pAccount = getPlayerAccount ( source ) if not isGuestAccount ( pAccount ) then local timer = getElementData ( source , "Online.timer" ) if isTimer ( timer ) then killTimer ( timer ) end end end ) function actualizarJugadorOn ( player ) local pAccount = getPlayerAccount ( player ) local minutes = getAccountData ( pAccount , "Online.minutes" ) local hours = getAccountData ( pAccount , "Online.hours" ) minutes = tostring ( tonumber ( minutes ) + 1 ) if minutes == "60" then hours = tostring ( tonumber ( hours ) + 1 ) minutes = "00" end setAccountData ( pAccount , "Online.minutes" , tonumber ( minutes ) ) setAccountData ( pAccount , "Online.hours" , tonumber ( hours ) ) if # tostring ( minutes ) == 1 then minutes = "0" .. minutes end if # tostring ( hours ) == 1 then hours = "0" .. hours end setElementData ( player , "Play Time" , hours .. ":" .. minutes .. "" ) local timer = setTimer ( actualizarJugadorOn , 60000 , 1 , player ) setElementData ( player , "Online.timer" , timer ) end addCommandHandler("addtime", function(player,cmd,target) if (target) then timecount = getElementData(getPlayerFromName(target),"playtime") setElementData(getPlayerFromName(target),"playtime",timecount +1) end end)
-
Danke habs gleich mal getestet.
Aber ein fehler kommt[2014-10-06 21:01:07] ERROR: playtime/tiempo_S.lua:127: attempt to perform arithmetic on global 'timecount' (a boolean value)
-
Hi leute,
ich wollte fragen, ob man ein script machen kann, wo man ein spieler "playtime" hinzufügen kann.
Also z.B /givetime blba 1 (fügt eine stunde hinzu)
Das playtime scoreboard: http://community.multitheftauto.com/index.php?p=re…details&id=9573
Oder gibt es vll so ein script schon?Danke im vorraus
MfG
Umgamings -
Kann mir das einer erklären ?
[2014-08-28 20:28:16] BAN: Serial ban was added by Zeus (ficken xD (nick: [PDG]Caitlyn)) (1 min)
Ban bild: http://www.directupload.net/file/d/3728/2j8djxkp_jpg.htm -
-
-
Hey leute,
seit der 1.4 geht der flag script nicht mehr.
Script: http://community.multitheftauto.com/index.php?p=re…details&id=4019Error:
[2014-08-27 14:07:42] ERROR: [Download]/flags/flag.lua:9: call: failed to call 'admin:getPlayerCountry'Kann da jemand helfen?
Danke im voraus
MfG
Umgamings -
Ich habe der owner acl alle rechte gegeben.
-
Ja, das weiß ich auch schon. Ich habe letztens eine owner acl gemacht, aber irgendwie musste ich am end effect trozdem die anderen gruppen hinzufügen.
-
Hey leute,
wollte fragen, ob man für jede ACL gruppe eine eigen ACL erstellen kann.
Nicht das man bei der gruppe noch moderator ,s-moderator, etc hinzufügen muss.MfG
Umgamings -
Danke digga, es geht jetzt :DDD
-
habs gleich auf der 1.4 ausprobiert, geht immer noch nicht
Diesmal kommt ein fehler:
[2014-08-16 22:26:09] ERROR: Loading script failed: warnplayer/script.lua:48: 'end' expected (to close 'function' at line 26) near '<eof>'EDIT// Habs gerade auch gemerkt hab noch ein end dran gesetzt jetzt kommt zwar kein fehler mehr aber es geht immer noch nicht *pinch*