Jump to content

manve1

Retired Staff
  • Posts

    1,283
  • Joined

  • Last visited

Everything posted by manve1

  1. to close a window with a button is really easy just have to read wiki ... function close_it() if (source == button) then --- change the button to whatever button u made to close window guiSetVisible( window, false ) -- change the window, to whatever ur gui is showCursor(false) end end addEventHandler("onClientGUIClick", button, close_it ) -- leave the "close_it" part and change the button ... this should help you. if you still haven't solved how to make this script.
  2. manve1

    A way ?

    ty
  3. sometimes complicated scripts are worth more for use, and take less space
  4. use imgtool to get the dff+txd files and to replace make script use: engineImportTXD engineReplaceModel
  5. actually it depends on the price and how good he would make the scripts, if he makes really as less lines as it's possible and as complicated as it can get, some people might try it out
  6. manve1

    A way ?

    sorry, but i don't get what you mean
  7. manve1

    A way ?

    Yes like when u win race DD round.
  8. post ur lua code EDIT: or just swap places name with ID
  9. manve1

    A way ?

    Is there a way i could find out who won round in DD maps? i didn't try to script it and i didn't start scripting one script cuz i need a way that i could find out who won the DD round.
  10. manve1

    Help

    the problem is it still doesn't work
  11. manve1

    Help

    it already has a Wnd ( window or GUI create )
  12. manve1

    Help

    i'm trying to trigger ACL to client side and i just can't manage it my self, tried out different way's, but still didn't open the window. client: function triggering_cc() if ( guiGetVisible ( Wnd ) == true ) then guiSetVisible ( Wnd, false ) showCursor(false) else guiSetVisible ( Wnd, true ) showCursor(true) end end addEvent( "triggering_c", true ) addEventHandler("triggering_c", root, triggering_cc) server: function triggering() if isObjectInACLGroup ( "user." ..getAccountName ( getPlayerAccount ( p ) ), aclGetGroup ( "Moderator" ) )then bindKey('p','down', function() guiSetVisible(Wnd, not guiGetVisible(Wnd)) showCursor(not isCursorShowing()) end ) triggerClientEvent ( thePlayer, "triggering_c", getRootElement() ) end end
  13. manve1

    Don't work

    ty
  14. manve1

    Don't work

    function ChangePlayerPassword(player,command,oldpass,newpass) local account = getPlayerAccount(player) if (account) then if (isGuestAccount(account)) then outputChatBox("You must be logged into an account to change your password.",player) return end local password_check = getAccount(getPlayerUserName(player),oldpass) if (oldpass==password_check) then -- check the length of the new password if (string.len(newpass)>=5) then setAccountPassword(account,newpass) else outputChatBox("Your new password must be at least 5 characters long.",player) end else outputChatBox("Old password invalid.",player) end end end addCommandHandler("changepass",ChangePlayerPassword) i copied this from mta wiki, and it doesn't work, keeps saying "old password invalid" and has error of getAccount on line 9
  15. manve1

    Is there

    Is there a resource created to change player's password? i was looking for it, but didn't find it and i know there is one hope you can help me really quickly.
  16. manve1

    Help, please.

    TAPL, everything to do with ACL is server side and i don't know how to trigger it to the client side
  17. manve1

    Help, please.

    OMG, i dont want them banned, did you read? TRIGGER, not ban
  18. manve1

    Help, please.

    i got confused of how to trigger ACL to server side so i can actually open a window on moderator rights. if you could help me, thank you EDIT: i need just an example how server side should look for triggering the ACL
  19. ty TAPL
  20. deleted so no one gonna try stealing it, i know lots of people do this.
  21. this is client right? if yes, then it doesn't do anything.
  22. the selected player and invalid player
  23. It output's invalid player
  24. The script actually does nothing if i press blow or fix, i selected my self, and got in car, tried to blow my self and nothing.
  25. EDIT: Jay your script didn't work EDIT2: Some how solidsnake14 ur script decided to do absolutely nothing
×
×
  • Create New...