Jump to content

Desaster

Members
  • Posts

    243
  • Joined

  • Last visited

Everything posted by Desaster

  1. hi , when I create a car then I set it's health to any number it create me a car with 0 health idk why when I remove the setElemntHealth fuction it work but the car has 100 health I want now to ask you how I can setElemntHealth without that the car burns
  2. [lua]local password_check = getAccount(getPlayerName(source), oldPassword)[lua] and still the same chatbox shows this : Old password invalid so the current pass get must be false
  3. you could create an object an create an object and move it wile the camera looks to it that also looks cool also remember to turn the alpha and the collision of the object to 0 , false
  4. Hello, so my problem is that I mostly don't know how to get the pass of an account so I need your help I tryed many thing without any sucess here is my code addEvent( "onPlayerPasswordChange", true ) function onPlayerPasswordChange ( newPassword, newPassword2, oldPassword ) if ( newPassword ) and ( newPassword2 ) and ( oldPassword ) then local account = getPlayerAccount(source) if (account) then if (isGuestAccount(account)) then outputChatBox("You must be logged into an account to change your password.",source) return end if newPassword ~= newPassword2 then return end local password_check = getAccount(getAccountName(account), oldPassword) if (oldPassword==password_check) then if (string.len(newPassword)>=4) then setAccountPassword(account,newPassword) outputChatBox("you successfully changed your pass",source) else outputChatBox("Your new password must be at least 4 characters long.",source) end else outputChatBox("Old password invalid.",source) end end end end addEventHandler( "onPlayerPasswordChange", root, onPlayerPasswordChange )
  5. well I know now that I must enter in my fuctions if isGuestAccout but why this won't work ? addEventHandler( "onClientKey", root, function(button,press) sourceAccount = getPlayerAccount ( source ) if isGuestAccount ( sourceAccount ) then if button == "F6" or button == "F1" then cancelEvent() end end end )
  6. how to unbind all keys if the client isn't logged in then to re-bind them ?
  7. delte your registry.db file you find it here C:\Program Files (x86)\MTA San Andreas 1.3\server\mods\deathmatch
  8. SQL browser is a really useful programm it shows you the table maybe it's useful for you download link : http://www.mediafire.com/download/wq1e3 ... b1_win.rar ah and I think there is no possibility to decript the passwords
  9. Desaster

    guiSetText

    function haha( balance, actions ) --SetTimer(haha, 50, 1) if ( guiGetVisible ( action1 ) ) then --if balance then --guiSetText ( money, "$ 0" ) --else guiSetText ( money, tostring ( balance ) ) --end guiSetEnabled (action1, false) guiGridListClear ( action1 ) for index, action in ipairs ( actions ) do local row = guiGridListAddRow ( action1 ) guiGridListSetItemText ( action1, row, 1, tostring ( action[ "action" ] ), false, false ) end end end addEvent ( "gang.returnGangBank", true ) addEventHandler ( "gang.returnGangBank", root, haha)
  10. Desaster

    guiSetText

    I have a text that I change with a triggered function with guiSetText but when I change it the whole server will see that ammount till he refresh the page thats bad how to remove it ? and wet it visible just to the person who have the window ?
  11. renkon what you sayed is to delte a part of the table I need to delte the whole table Content thnx xXMADEXx
  12. guiSetProperty(editBox, "ValidationString", "^[0-9]*$") hmmm I tested this and I found out that it has a bug you can copy any text and paste it in it and then you have a text written in it (bad) the best one is that one with tonumber
  13. hello, I have a table in SQLite database how to clear it every weak ?
  14. try with this guiSetProperty
  15. addEventHandler("onClientRender", root, functionname) put all your dxElements in a function and open them with that event removeEventHandler("onClientRender", root, functionname) just remove the event to remove the dxElements to put buttons the eaziest way is to make normal buttons and turn their alpha to 0 then you can use onClientMouseEnter I think to make them some colors I hope you understood me
  16. Desaster

    window...

    hello , I was making a panel that opens you alot of menu windows but anyhow the window that appear when I press a button on first window is behind the first window how I can change that ?
  17. Desaster

    math funcs

    ahhhhhhh I got it thnx
  18. Desaster

    math funcs

    hello , I am useing this following math functions but I always use them but idk what they do exactly I readed it's description but I didn't understand nothing can s.o help me with an example that shows you the result ? math.floor math.ceil
  19. how I can make it work on a hosted server?
  20. Desaster

    question ?

    is it possible to use onClientGUIClick with a label ?
  21. as the title says is it possible to create a invisible gridlist and visible rows in it or is it possible to create just rows ?? also can you give me useful funcs to make a girdlist full of criminals / their wanted levels / their position ...
  22. hmmm if there is no other way I make that unbind thnX ALL
  23. not what I mean I mean for example in glue script when players are on a car and press tab they shoot each other so how to remove that FOR EVERY PLAYER
×
×
  • Create New...