Jump to content

TonyJunakPRO

Members
  • Posts

    31
  • Joined

  • Last visited

Everything posted by TonyJunakPRO

  1. jebi ga, meni triba sa objašnjenjen
  2. i need script for pm
  3. will it do it every two minute
  4. just write showChat in console(f8)
  5. no, i want to disable t and y keys and make my own GUI what outputs chat
  6. it is easy for you becouse you are mta coder, but i am not i am only .net programmer
  7. whatever i write it cant work, please help i am noob at mta coding
  8. and what code is for if player money is 0
  9. so i write setPlayerMoney(-1), right
  10. ok, but i dont know script for money removing
  11. TonyJunakPRO

    timer?

    can someone make timer script what will remove 1$ each 2 minutes(only will remove money when GUI window is visible) and also if money is 0 message will appear
  12. sorry, my bad it works fine now
  13. i copyied it and it writes TonyJunak: nil
  14. i used code what you gave me, but whatever: full client: ScreenLocked = guiCreateWindow(22,175,141,267,"SmartEX C45",false) guiWindowSetMovable(ScreenLocked,false) guiWindowSetSizable(ScreenLocked,false) ImageLocked = guiCreateStaticImage(9,30,123,228,"images/ScreenLocked.jpg",false,ScreenLocked) ScreenLocked_UnlockImage = guiCreateStaticImage(32,122,59,61,"images/unlock.png",false,ImageLocked) ScreenLocked_UnlockButton = guiCreateButton(5,194,110,19,"Press to Unlock",false,ImageLocked) guiSetVisible(ScreenLocked, false) ScreenMenu = guiCreateWindow(22,175,141,267,"SmartEX C45",false) guiWindowSetMovable(ScreenMenu,false) guiWindowSetSizable(ScreenMenu,false) ImageMenu = guiCreateStaticImage(9,30,123,228,"images/ScreenLocked.jpg",false,ScreenMenu) ChatButton = guiCreateButton(13,38,111,22,"Chat",false,ScreenMenu) PhotosButton = guiCreateButton(13,64,111,22,"Photos",false,ScreenMenu) MusicButton = guiCreateButton(13,89,111,22,"Music",false,ScreenMenu) MusicButton = guiCreateButton(13,114,111,22,"Internet",false,ScreenMenu) guiSetVisible(ScreenMenu, false) ScreenChat = guiCreateWindow(22,175,141,267,"SmartEX C45",false) guiWindowSetMovable(ScreenChat,false) guiWindowSetSizable(ScreenChat,false) ImageChat = guiCreateStaticImage(9,30,123,228,"images/ScreenLocked.jpg",false,ScreenChat) ChatMemo = guiCreateMemo(16,39,109,150,"",false,ScreenChat) ChatSend = guiCreateButton(83,194,40,20,"Send",false,ScreenChat) ChatBack = guiCreateButton(15,233,40,20,"Back",false,ScreenChat) guiSetVisible(ScreenChat, false) function showHide() if guiGetVisible(ScreenLocked)==true then showCursor(false) guiSetVisible(ScreenLocked, false) else showCursor(true) guiSetVisible(ScreenLocked, true) if guiGetVisible(ScreenMenu)==true then showCursor(false) guiSetVisible(ScreenLocked, false) guiSetVisible(ScreenMenu, false) end if guiGetVisible(ScreenChat)==true then showCursor(false) guiSetVisible(ScreenLocked, false) guiSetVisible(ScreenChat, false) end end end bindKey ("f1", "down", showHide) function funScreenLocked_UnlockButton() guiSetVisible(ScreenMenu, true) guiSetVisible(ScreenLocked, false) end addEventHandler ( "onClientGUIClick", ScreenLocked_UnlockButton, funScreenLocked_UnlockButton, false ) addEventHandler ( "onClientGUIClick", ScreenLocked_UnlockImage, funScreenLocked_UnlockButton, false ) function funChatButton() guiSetVisible(ScreenChat, true) guiSetVisible(ScreenMenu, false) end addEventHandler ( "onClientGUIClick", ChatButton, funChatButton, false ) function funChatSend() text = guiGetText(SendMemo) triggerServerEvent("send_text",getLocalPlayer(),text) end addEventHandler ( "onClientGUIClick", ChatSend, funChatSend, false ) function funChatBack() guiSetVisible(ScreenMenu, true) guiSetVisible(ScreenChat, false) end addEventHandler ( "onClientGUIClick", ChatBack, funChatBack, false ) full server: addEvent("send_text",true) addEventHandler("text",getRootElement(), function (text) outputChatBox(getPlayerName(source) ..": ".. tostring(send_text),getRootElement(),255,0,0) end)
  15. but it writes me on chatbox: TonyJunak: false whatever i say it writes: TonyJunak: false
  16. no it isnt, it writes on chatbox: TonyJunak: false
  17. how to do it for memo
  18. thanks
  19. script for outputing on chatbox(outbut needs to be visible for everyone) output looks like this: [PlayerName:] [text what is on Edit1] so how to do this
  20. is it possible to make an mta webbrowser!?
  21. how can i make script what automatically unbinds key t and y
  22. how to unbind keys, please tell
  23. fixed, handler and bind lines need to be after function lines
  24. not working, nothing happens can you check the rest of my script
  25. screen doesnt appear
×
×
  • Create New...