-
Posts
1,423 -
Joined
-
Last visited
-
Days Won
19
Everything posted by Tekken
-
function theCheck() for _,v in ipairs (getElementsByType("player")) do if getElementData(v,"Red") then outputChatBox ( "Ola novo jogador", v ,0,255,0,true) end end end
-
Yes i figured out after i added "or 0". Thank's anyway.
-
Example: addEventHandler('onClientPlayerJoin', root, function() outputChatBox('#FF0000> #FFFFFF' ..getPlayerName(source).. ' #FF0000joined the game', 255, 0, 0, true) end ) addEventHandler('onClientPlayerChangeNick', root, function(oldNick, newNick) outputChatBox('#FF0000^ #FFFFFF' ..oldNick.. ' #FF0000is now known as #FFFFFF' ..newNick, 255, 0, 0, true) end ) addEventHandler('onClientPlayerQuit', root, function(reason) outputChatBox('#FF0000< #FFFFFF' ..getPlayerName(source).. ' #FF0000left the game [#FFFFFF' .. reason .. '#FF0000]', 255, 0, 0, true) end )
-
Hi, I got this error ? attempt to concatentate 'needparts' (a bolean value) This is the code: local needparts = getElementData(veh, "needparts") local parts = getElementData(getElementData(veh, "parent"), "Parts_inVehicle") or 0 local w = dxGetTextWidth(parts .. "/" .. needparts .. " Componenta de metal", 1.02, "default-bold")--Here it gives error.
-
https://community.multitheftauto.com/ Edit: Find DayZ Spawn Manager and wath you need to do is just replace car ID.
-
Can you help me with php ? beacause i don't know how it works
-
Thank's , I think in v3.0 i will add an email verification.
-
Hello, yesterday i was creating an Password Recover system with GUI an i took it will be nice to share it with other's. Community: https://community.multitheftauto.com/in ... s&id=11112 Is not a big deal but it may help someone.
-
#SOLVED You were correct.
-
Look: Client GUIEditor = { button = {}, window = {}, label = {}, edit = {} } function shouRecoverInterface() GUIEditor.window[1] = guiCreateWindow(472, 206, 288, 329, "Recover Password by mihayy5 v2.0", false) guiWindowSetMovable(GUIEditor.window[1], true) guiSetVisible(GUIEditor.window[1], false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(162, 221, 116, 44, "Proceed", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "default-bold-small") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF48FF00") GUIEditor.button[2] = guiCreateButton(162, 271, 116, 44, "Close", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[2], "default-bold-small") guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFFF0000") GUIEditor.edit[1] = guiCreateEdit(29, 69, 107, 34, "", false, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(48, 49, 98, 30, "Username", false, GUIEditor.window[1]) GUIEditor.label[2] = guiCreateLabel(48, 113, 98, 30, "ID_Unic", false, GUIEditor.window[1]) GUIEditor.edit[2] = guiCreateEdit(29, 137, 107, 34, "", false, GUIEditor.window[1]) GUIEditor.label[3] = guiCreateLabel(48, 181, 98, 30, "Parola Noua", false, GUIEditor.window[1]) GUIEditor.edit[3] = guiCreateEdit(29, 206, 107, 34, "", false, GUIEditor.window[1]) end addEventHandler("onClientResourceStart", resourceRoot,shouRecoverInterface) function openRecover() guiSetVisible(GUIEditor.window[1],true) showCursor(true) end addCommandHandler("recover", openRecover) addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()), function() if (source == GUIEditor.button[2]) then guiSetVisible(GUIEditor.window[1],false) showCursor(false) end end ) addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()), function() if (source == GUIEditor.button[1]) then local accname = guiGetText(GUIEditor.edit[1]) local id = guiGetText(GUIEditor.edit[2]) local thePass = guiGetText(GUIEditor.edit[3]) triggerServerEvent("onClientProceedToRecover", localPlayer, accname, id, thePass) end end ) Server function recoverPasswordFromIdAndAccount(player, cmd, accname, Id, thePass) local passAccount = getAccount(accname) if passAccount then local theIDinAcc = getAccountData(passAccount, "AccID") if theIDinAcc then if tonumber(Id) == theIDinAcc then setAccountPassword(passAccount, thePass) outputChatBox("#FF0000[save-System] #00FF00Parola contului a fost schimbata cu succes!", client, 255, 0, 0, true) else outputChatBox("#FF0000[save-System] #00FF00Incearca cu#FFFFFF '/recover [username] [iD_Unic] [Parola_Noua]' #00FF00!", client, 255, 255, 255, true) end else outputChatBox("#FF0000[save-System] #00FF00ID_Unic dat nu este corect!", client, 255, 255, 255, true) end else outputChatBox("#FF0000[save-System] #00FF00Username-ul dat nu exista!", client, 255, 0, 0, true) end end addEvent("onClientProceedToRecover",true) addEventHandler("onClientProceedToRecover", root, recoverPasswordFromIdAndAccount) --GIVE AN Unic_ID rootElement = getRootElement() function setPlayerAccountIdOnLogin() local theAcc = getPlayerAccount(source) if theAcc then local theRecCheck = getAccountData(theAcc, "REC") if theRecCheck == 1 then outputChatBox("#FF0000[save-System] #00FF00IDul tau unic este disponibil la #FFFFFF/myid", source, 255, 255, 255, true) end if theRecCheck == 0 then setAccountData(theAcc, "AccID", math.random(1, 99999)) setAccountData(theAcc, "REC", 1) outputChatBox("#FF0000[save-System] #00FF00IDul tau unic este disponibil la #FFFFFF/myid", source, 255, 255, 255, true) outputChatBox("#00FF00*Nu da acest ID_Unic la nimeni!", source, 255, 255, 255, true) end end end addEventHandler("onPlayerLogin", rootElement, setPlayerAccountIdOnLogin)
-
Still get the same error.
-
I got this error : recovergui-system\recover_s.lua:16: Bad argument @ 'outputChatBox' [Expected element at argument 2, got string 'mihayy58'] My code: Server function recoverPasswordFromIdAndAccount(accname, Id, thePass) local theAccount = getAccount(accname) if theAccount then local theIDinAcc = getAccountData(theAccount, "AccID") if theIDinAcc then if tonumber(Id) == theIDinAcc then setAccountPassword(theAccount, thePass) outputChatBox("#FF0000[save-System] #00FF00Parola contului a fost schimbata cu succes!", client, 255, 0, 0, true) else outputChatBox("#FF0000[save-System] #00FF00ID_Unic dat nu este corect!", client, 255, 255, 255, true) end else outputChatBox("#FF0000[save-System] #00FF00Incearca cu#FFFFFF '/recover [username] [iD_Unic] [Parola_Noua]' #00FF00!", client, 255, 255, 255, true) end else outputChatBox("#FF0000[save-System] #00FF00Username-ul dat nu este valid!", client, 255, 255, 255, true) end end addEvent("onClientProceedToRecover",true) addEventHandler("onClientProceedToRecover", getResourceRootElement(getThisResource()), recoverPasswordFromIdAndAccount) --GIVE AN Unic_ID rootElement = getRootElement() function setPlayerAccountIdOnLogin() local theAcc = getPlayerAccount(source) if theAcc then local theRecCheck = getAccountData(theAcc, "REC") if theRecCheck == 1 then outputChatBox("#FF0000[save-System] #00FF00IDul tau unic este disponibil la #FFFFFF/myid", source, 255, 255, 255, true) end if theRecCheck == 0 then setAccountData(theAcc, "AccID", math.random(1, 99999)) setAccountData(theAcc, "REC", 1) outputChatBox("#FF0000[save-System] #00FF00IDul tau unic este disponibil la #FFFFFF/myid", source, 255, 255, 255, true) outputChatBox("#00FF00*Nu da acest ID_Unic la nimeni!", source, 255, 255, 255, true) end end end addEventHandler("onPlayerLogin", rootElement, setPlayerAccountIdOnLogin) Client GUIEditor = { button = {}, window = {}, label = {}, edit = {} } function shouRecoverInterface() GUIEditor.window[1] = guiCreateWindow(472, 206, 288, 329, "Recover Password by mihayy5 v2.0", false) guiWindowSetMovable(GUIEditor.window[1], true) guiSetVisible(GUIEditor.window[1], false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(162, 221, 116, 44, "Proceed", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "default-bold-small") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF48FF00") GUIEditor.button[2] = guiCreateButton(162, 271, 116, 44, "Close", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[2], "default-bold-small") guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFFF0000") GUIEditor.edit[1] = guiCreateEdit(29, 69, 107, 34, "", false, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(48, 49, 98, 30, "Username", false, GUIEditor.window[1]) GUIEditor.label[2] = guiCreateLabel(48, 113, 98, 30, "ID_Unic", false, GUIEditor.window[1]) GUIEditor.edit[2] = guiCreateEdit(29, 137, 107, 34, "", false, GUIEditor.window[1]) GUIEditor.label[3] = guiCreateLabel(48, 181, 98, 30, "Parola Noua", false, GUIEditor.window[1]) GUIEditor.edit[3] = guiCreateEdit(29, 206, 107, 34, "", false, GUIEditor.window[1]) end addEventHandler("onClientResourceStart", resourceRoot,shouRecoverInterface) function openRecover() guiSetVisible(GUIEditor.window[1],true) showCursor(true) end addCommandHandler("recover", openRecover) addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()), function() if (source == GUIEditor.button[2]) then guiSetVisible(GUIEditor.window[1],false) showCursor(false) end end ) addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()), function() if (source == GUIEditor.button[1]) then local accname = guiGetText(GUIEditor.edit[1]) local Id = guiGetText(GUIEditor.edit[2])) local thePass = guiGetText(GUIEditor.edit[3]) triggerServerEvent(localPlayer, "onClientProceedToRecover", localPlayer, accname, Id, thePass) end )
-
Hi, i need some help with GUI i need to get data from an edit box and pass it to server, and i don't know how My code: Clinet function setPanel() window = guiCreateWindow(472, 206, 288, 329, "Panel", false) button = guiCreateButton(162, 221, 116, 44, "Proceed", false, window) edit = guiCreateEdit(29, 69, 107, 34, "", false,window) end addEventHandler("onClientResourceStart", resourceRoot,setPanel) addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()), function() if (source == button) then triggerServerEvent("onClientProceedToRecover", localPlayer) end end )
-
Nu zic ca e o idee rea, insa cea ce vrei tu au mai incercat cred ca 100 alti inaintea ta, si chiar daca ai face rost de 2-3 oameni nu va merge..In general toti vor sa fie particulari, vor aparea certuri si se va duce totul pe apa sambetei. Mult noroc, eu sper din tot sufletul sa vad primul server de RolePlay din Romania, pana acum am vazut doar RPG cu tenta de RolePlay, ce RolePlay e ala daca dai 100 000 $ de la inceput si mai ai si n-spe mii de bug-uri. Asta e parerea mea.
-
plz give me your skype mihayy51 why ?
-
Server Orange color means Server side
-
Thank you so much
-
addEventHandler("onPlayerJoin",root, function() setPedStat ( source, 70, 999 ) setPedStat ( source, 71, 999 ) setPedStat ( source, 72, 999 ) setPedStat ( source, 74, 999 ) setPedStat ( source, 76, 999 ) setPedStat ( source, 77, 999 ) setPedStat ( source, 78, 999 ) setPedStat ( source, 79, 999 ) end )
-
If i ddon't know the password ?
-
Hi, How can i get data from an account that i am not loged in to it ?
-
onVehicleExit can't be canceled. My bad.
-
In DayZ script's is an event called "onClientSendRegisterDataToServer" so...
-
I think you can set a security number generated randomly and just print it when the account is created. Then make a script to check for the node with the account name = to the account name in the xml and if Key = Key in XML then you just use: setAccountPassword in a script I think i'm gonna make one. Sound's intresting, i will do one to.
-
But if i want to make an password recover script how do i get passwords ? Just asking.