1LoL1
Members-
Posts
944 -
Joined
-
Last visited
Everything posted by 1LoL1
-
This is English section.
-
Good Job!!!
-
I have resource "NAME" and in this i have folder "logs" so "logs/logs.log". But when i have logs.log only in "NAME" and used "logs.log" again not work
-
Not work. It's the same what i had..
-
Not work it's same what i had.
-
What sort of numbers? sx, sy, sz = getElementVelocity (getPedOccupiedVehicle(localPlayer)) speed = ((sx^2 + sy^2 + sz^2)^(0.5)*180)
-
Not work number 5.14542123232 was only example. I need for all numbers.
-
Hello, how i can use to number math.floor and math.round not work now its 5.14542123232 i need 5.1 how i can do please?
-
you forget add function replaceskin() no? if i use this i don't must use function name.
-
luaedit Gives me always same error So you're doing something wrong. For me it is functioning normally. Use this: 1 - use /refreshall 2 - restart script and tell me if work.
-
Tested and worked. meta.xml "TEST" description="TEST" version="TEST" type="script" /> client-side: addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), function () txd = engineLoadTXD("infernus.txd") engineImportTXD(txd, 402) dff = engineLoadDFF("infernus.dff", 402) engineReplaceModel(dff, 402) end)
-
"CraTzy" description="fasat BMW model" version="1.3" type="script" />
-
Do you have added in meta.xml? "buffalo.dff" /> "buffalo.txd" />
-
addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), function () txd = engineLoadTXD("buffalo.txd", 402) engineImportTXD(txd, 402) dff = engineLoadDFF("buffalo.dff", 402) engineReplaceModel(dff, 402) end)
-
function refreshStaffList() guiGridListClear(Staff.gridlist[1]) for i,v in ipairs(staff) do local row = guiGridListAddRow(Staff.gridlist[1]) local name = v[1] local rank = v[2] for index, k in ipairs(getElementsByType("player")) do if isElement(getPlayerFromName(name)) then guiGridListSetItemText(Staff.gridlist[1], row, 1, name, false, false) guiGridListSetItemText(Staff.gridlist[1], row, 2, rank, false, false) guiGridListSetItemColor(Staff.gridlist[1], row, 1, 255,255,255) guiGridListSetItemColor(Staff.gridlist[1], row, 2, 255,255,255) else guiGridListSetItemText(Staff.gridlist[1], row, 1, name, false, false) guiGridListSetItemText(Staff.gridlist[1], row, 2, rank, false, false) guiGridListSetItemColor(Staff.gridlist[1], row, 1, 55,55,55) guiGridListSetItemColor(Staff.gridlist[1], row, 2, 55,55,55) end end end end setTimer(refreshStaffList, 1000, 0)
-
Thanks but not work outputChatBox is but it's not writen
-
You are right this i want. And outputChatBox working. and --> if logFile then outputChatBox("test") working too but it's not added in txt file.
-
Hello, i created script (logs) but not work idk why. Can anyone help me please? 0 Errors 0 Warning File Exist. Files it's added in meta.xml addEventHandler("onClientPlayerChangeNick", getRootElement(), function(oldNick, newNick) outputChatBox(""..oldNick.." --> "..newNick.."", 255, 100, 100, true) local logFile = fileOpen("logs/logs.log") if logFile then local size = fileGetSize(logFile) fileSetPos(logFile, size) fileWrite(logFile, ""..oldNick.." --> "..newNick.."") fileClose(logFile) end end)
-
It might work but .. Any Example's or something please ? Try this last post.
-
Hello, normally when i have hex in name and get mute i see playername with hex how i can use string.gsub in this? admin nick see normally without hex but name not please can anyone help me? function aAction ( type, action, admin, player, data, more ) if ( aLogMessages[type] ) then function aStripString ( string ) --local adminNick = string.gsub(getPlayerName ( admin ), "#%x%x%x%x%x%x","") --local playerNick = string.gsub(getPlayerName ( player ), "#%x%x%x%x%x%x","") local adminNick = getPlayerName(admin):gsub("#%x%x%x%x%x%x","") --local playerNick = getPlayerName(player):gsub("#%x%x%x%x%x%x","") string = tostring ( string ) string = string.gsub ( string, "$admin", adminNick ) string = string.gsub ( string, "$by_admin_4all", isAnonAdmin4All( admin ) and "" or "" .. adminNick ) string = string.gsub ( string, "$by_admin_4plr", isAnonAdmin4Victim( admin ) and "" or "" .. adminNick ) string = string.gsub ( string, "$data2", more or "" ) if ( player ) then string = string.gsub ( string, "$player", getPlayerName(player) ) end return tostring ( string.gsub ( string, "$data", data or "" ) ) end local node = aLogMessages[type][action] if ( node ) then local r, g, b = node["r"], node["g"], node["b"] if ( node["all"] ) then outputChatBox ( aStripString ( node["all"] ), _root, r, g, b, true ) end if ( node["admin"] ) and ( admin ~= player ) then outputChatBox ( aStripString ( node["admin"] ), admin, r, g, b, true ) end if ( node["player"] ) then outputChatBox ( aStripString ( node["player"] ), player, r, g, b, true ) end if ( node["log"] ) then outputServerLog ( aStripString ( node["log"] ) ) end end end end