Jump to content

Ernis456

Members
  • Posts

    51
  • Joined

  • Last visited

Everything posted by Ernis456

  1. $7.00 for this map o_O ? I can sell this map for $7.00 :
  2. I going to use this becouse 50p's app don't support utf8
  3. Does that editor suport utf8 language ? Does it support letters : ąčęėįšųū ?
  4. Hi, I created with Guieditor GUI that has 5 radio buttons.I creating this for Role Play Server. How to check with button player was sellected when him pres "Continue" button ? GUI LANG: GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Radio = {} GUIEditor_Window[1] = guiCreateWindow(279,218,426,277,"Role Play Testas",false) GUIEditor_Radio[1] = guiCreateRadioButton(43,68,221,25,"1 - Answer",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Radio[1],"clear-normal") GUIEditor_Radio[2] = guiCreateRadioButton(43,99,165,19,"2- Answer",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Radio[2],"clear-normal") GUIEditor_Radio[3] = guiCreateRadioButton(43,129,184,21,"3- Answer",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Radio[3],"clear-normal") GUIEditor_Radio[4] = guiCreateRadioButton(43,158,200,19,"4- Answer",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Radio[4],"clear-normal") GUIEditor_Radio[5] = guiCreateRadioButton(43,190,210,21,"5- Answer",false,GUIEditor_Window[1]) guiRadioButtonSetSelected(GUIEditor_Radio[5],true) guiSetFont(GUIEditor_Radio[5],"clear-normal") GUIEditor_Button[1] = guiCreateButton(193,243,209,19,"Continue",false,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(44,27,380,37,"Question",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[1],255,0,0) guiLabelSetVerticalAlign(GUIEditor_Label[1],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[1],"left",false) guiSetFont(GUIEditor_Label[1],"clear-normal") How to create function that shows that GUI and how to create e.g. if player selected 3. Answer continue, if not do current function.
  5. This is older version, i have this, I need version with inventory Drop and these commands : http://dukenukem.pastebin.com/FfAzntib
  6. Where can I download this mod, please give me download link.
  7. FIXED. I downloaded this : http://packages.debian.org/lenny/libpcre3
  8. I did all steps, still doesn't work.
  9. I installed apt-get install ia32-libs but still getting error : ./mta-server: error while loading shared libraries: libpcre.so.3: cannot open shared object file: No such file or directory
  10. When I try to run I get this error : ./mta-server: error while loading shared libraries: libpcre.so.3: cannot open shared object file: No such file or directory I tried to install libpcre with apt-get install libprce3 but it don't help.
  11. screen -A -m -d -S mta ./mta-server (use this ONCE!, nothing will shop up, but the server will be running) Error : -bash: screen: command not found I think I need to create Screen but I don't now how.
  12. I creating mta server on Linux Debian 5.0 VPS hosting. I using programs WinSCP and putty. When I run server using program putty ./mta-server what write to close putty program but not shut down server becouse when I close putty program server turns off.
  13. Code in that web doesn't work for me .
  14. I have problem with car respawning script. When I run this script and destroy car : function respawnVehicle( vehicle ) spawnVehicle ( vehicle, getElementData( vehicle, "posX" ), getElementData( vehicle, "posY" ), getElementData( vehicle, "posZ" ), getElementData( vehicle, "rotX" ), getElementData( vehicle, "rotY" ), getElementData( vehicle, "rotZ" ) ) end function onVehicleSpawn () local x,y,z = getElementPosition (source) setElementData (source,"posX",x) setElementData (source,"posY",y) setElementData (source,"posZ",z) end addEventHandler ("onVehicleExplode",getRootElement(),onVehicleSpawn) function onVehicleExplode () setTimer( respawnVehicle, 5000, 1, source ) end addEventHandler("onVehicleExplode", getRootElement(), onVehicleExplode) I getting error in console : [15:24:20] WARNING: spawn.lua: Bad 'element' pointer @ 'getElementData'(1) - Line: 2 [15:24:20] WARNING: spawn.lua: Bad 'element' pointer @ 'spawnVehicle'(1) - Line: 2 How Can I fix it ? Another question: I Have created Team Cops. Why setPlayerTeam ( playerWhoUses, "Cops" ) doesn't work for me ?
  15. I have script : https://community.multitheftauto.com/index.html?p ... ils&id=140 And I can only add 31 house and in help writed : Houses limit = Pickups Limit.
  16. How Can I set Pickup Limit ?
  17. function PayDay(howMuch) local playerList = getElementsByType("player") for key,val in ipairs(playersList) do givePlayerMoney(val, howMuch) end outputChatBox("Payday: $"..howMuch) end local mins = 1 local howMuch = 3000 setTimer(PayDay, mins*60*1000, 0, howMuch) error : payday.lua:3: bad argument #1 to 'ipairs' (table expected, got nil) How can I fix it ?
  18. I have problem. When I run my script Payday: function PayDay ( text ) givePlayerMoney (thePlayer, 3000 ) end setTimer ( PayDay, 3000, 1, "PayDay 3 000 $ ! " ) I getting error in console : WARNING: payday.lua: Bad argument @ 'givePlayerMoney' - Line: 2
  19. Thanx. Another question. How to make payday ? e.g. Every 20 minutes player gets 3 000 $ How to do car reserved to job. e.g. Only cops can drive Police car.
  20. What lua code to make gates on my own ? Another question. How to make payday ? e.g. Every 20 minutes player gets 3 000 $ How to do car reserved to job. e.g. Only cops can drive Police car.
  21. How can I make gates automatic opening and opening with command ?
  22. Ernis456

    Need help.

    Thnx. Now all works and I starting to learn .lua .
×
×
  • Create New...