-
Posts
74 -
Joined
-
Last visited
Everything posted by RandomRambo
-
Hi guys. Is it possible to freeze ped that he can't attack (not only can't move)? I used setPedFrozen(ped, true),he can't move but he can attack. Is it possible to use toggleAllControls to the ped or there is another way to do it?
-
Any ideas?
-
Hi guys, I have 1 model (object) and it has 3 txd,3 dff and 2 col files How I can for 1 id (for example 2086) set this object? I tried this,but it doesn't work: txd = engineLoadTXD ( "c1.txd" ) engineImportTXD ( txd, 2086 ) txd2 = engineLoadTXD ( "c2.txd" ) engineImportTXD ( txd2, 2086 ) txd3 = engineLoadTXD ( "c3.txd" ) engineImportTXD ( txd3, 2086 ) col = engineLoadCOL ( "c5.col" ) engineReplaceCOL ( col, 2086 ) col2 = engineLoadCOL ( "c7.col" ) engineReplaceCOL ( col2, 2086 ) dff = engineLoadDFF ( "c4.dff", 0 ) engineReplaceModel ( dff, 2086 ) dff2 = engineLoadDFF ( "c6.dff", 0 ) engineReplaceModel ( dff2, 2086 ) dff3 = engineLoadDFF ( "c8.dff", 0 ) engineReplaceModel ( dff3, 2086 ) engineSetModelLODDistance(2086, 160) Help pleasee:(
-
Bro,the problem was in zip archives with scripts xd need just to put out scripts from zip archives
-
wow,I will try it ,thanks... ye,I think it is hosting's problem but they don't want to fix it
-
Did it.Nothing happened. Also I just reinstalled full server (everything was deleted),I put mta-1.6.0-21959 build again,downloaded my mode and resourses through ftp to hosting,entered resources into mtaconfig from scratch and it started to work!But..after 4 restarts,it doesn't start again and again server reboots endlessly
-
Nothing in logs aswell. Windows,strange thing is that it works perfectly on mta-1.6.0-unstable-7976-net41DA but on mta-1.6.0-21959 it restarts all the time and as I said no errors or smth else,just this in console: ================================================================== = Multi Theft Auto: San Andreas v1.6 ================================================================== = Server name : Default MTA Server = Server IP address: ... = Server port : 22081 = = Log file : /game/mods/deathmatch/logs/server.log = Maximum players : 30 = HTTP port : 32081 = Voice Chat : Disabled = Bandwidth saving : Medium ================================================================== and one more thing...where I can download mta 1.6n?Cus it says I need it to join the server on mta-1.6.0-unstable-7976-net41DA build on which it works...
-
Server on hosting,so I use latest build,no viruses. It works perfectly on 1.5.9 builds,but on 1.6 it just restarts all time and no errors in console Config changed after I installed latest build so config isn't the real problem.
-
anyone?
-
Hello guys,need some help I have server on mta-1.5.7-R4-20359 build and when Im trying to move on mta-1.6.0-21959 build I have a problem. For the first time I changed the build,server starts correctly and mode works fine but when I restart server on this build after it server doesn't start (no errors or smth in console;I attached console text ),BUT when I tried to use mta-1.6.0-unstable-7976-net41DA build it starts and it works fine even if I restart server buuuuut I can't connect to server cus it says :u need mta 1.6n. I thought that I can download mta 1.6n on https://nightly.mtasa.com/ , like I thought it is the latest unstable version of MTA for this build but it's not true. So,what is the problem that my server doesn't start on stable 1.6 build?:( ================================================================== = Multi Theft Auto: San Andreas v1.6 ================================================================== = Server name : Default MTA Server = Server IP address: ... = Server port : 22081 = = Log file : /game/mods/deathmatch/logs/server.log = Maximum players : 30 = HTTP port : 32081 = Voice Chat : Disabled = Bandwidth saving : Medium ================================================================== and the server reboots endlessly..
-
Waaait,look,now I have 3 col files,1 dff,1 txd (and it is 1 object (model)) So,it doesn't work
-
Hi guys,how should I replace model if it has 3 dff different files for this model? I know how to replace it when I have 1 txd,1 dff and 1 col files but how to replace with 3 dff,1 txd and 1 col for example? >example of 3 files (txd,dff,col) txd = engineLoadTXD ( "cave.txd" ) engineImportTXD ( txd, 3964 ) col = engineLoadCOL ( "cave.col" ) engineReplaceCOL ( col, 3964 ) dff = engineLoadDFF ( "cave.dff", 0 ) engineReplaceModel ( dff, 3964 ) engineSetModelLODDistance(3964, 160) Help please
-
Hi guys. Is it possible to change sound of footsteps?
-
thanks but @AngelAlpha already solved my question
-
thank u very much,but can u write a client side?xd
-
wow,thanks And one more question.How I can do if player hit the marker this image and buttons will show to him ("K" button should be removed then) I tried to do smth like that: (server side) marker1 = createMarker(2094.8940429688,-838.72570800781,52.3, "corona", 1.5, 230, 251, 3, 153) function event(player) triggerClientEvent (hitPlayer,"openWindow",getRootElement(),hitPlayer) end addEventHandler("onMarkerHit", root, event) And added function openWindow in client side but it didn't work ?
-
I asked for help to hide button and @#\_oskar_/# helped me,thanks but now I need that this image with buttons doesn't show before I pressed "K" because at this moment it shows even if someone connected to server (it shows when player connected and he should press "K" to hide it). function AttachDxToGuiElement( GUIElement , img ) if ( guiGetVisible ( GUIElement ) ) then local x, y = guiGetPosition ( GUIElement , false ) local width , Height = guiGetSize ( GUIElement , false ) dxDrawImage(x, y, width , Height ,img, 0, 0, 0,SetImagecolor or tocolor(255, 0, 0, 255), true) dxDrawText(guiGetText ( GUIElement ) or tostring '',x, y, width + x , Height + y,SetTextcolor or tocolor(55,55,55,255),1,"default-bold","center","center",false,false,true) guiBringToFront ( GUIElement ) guiSetAlpha ( GUIElement , 0) end end ------------------ event = guiCreateButton(16, 20, 250, 40, "Take", false) addEventHandler ("onClientRender", root, function () AttachDxToGuiElement( event ,'img/event.png' ) end) bindKey( "k", "down",function( ) guiSetVisible( event , not guiGetVisible( event )) showCursor( guiGetVisible( event )) end ) Help please.I tried everything I know but it didn't help.
-
@#\_oskar_/# I did everything I need but how to do that this image with button won't show when it started.I need that it can be show only when someone press 'K',not when resourse is started
-
When I try to add one more button it shows only 1 button anyway.What am I doing wrong?:\ function AttachDxToGuiElement( GUIElement , img ) if ( guiGetVisible ( GUIElement ) ) then showCursor ( true ) local x, y = guiGetPosition ( GUIElement , false ) local width , Height = guiGetSize ( GUIElement , false ) dxDrawImage(500*sW, 120*sH, 370*sW, 470*sH, "img/event.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) dxDrawText(guiGetText ( GUIElement ) or tostring '',x, y, width + x , Height + y,SetTextcolor or tocolor(223,247,0,255),1,"default-bold","center","center",false,false,true) guiBringToFront ( GUIElement ) guiSetAlpha ( GUIElement , 0) end end ------------------ event = guiCreateButton(740, 800, 250, 40, "Take", false) event1 = guiCreateButton(890, 700, 250, 40, "Take", false) addEventHandler ("onClientRender", root, function () AttachDxToGuiElement( event ,'img/event.png' ) AttachDxToGuiElement( event1 ,'img/event.png' ) end) bindKey( "K", "down",function( ) guiSetVisible( event , not guiGetVisible( event )) guiSetVisible( event1 , not guiGetVisible( event1 )) showCursor( guiGetVisible( event )) showCursor ( false ) end )
-
Ye,but it shows when I start resource,but It should show if someone jujst press 'K' (not when resource started). And the button doesn't work,it is just as not a button it is just like a text Upd.Button works,but can I just make a button with my image? for example this (and text from button will be on it.Is it possible?
-
Create an image and then create a button in front of image and on for example "K" hide it or show it
-
So can you show me an example how I can create a button in front of this image and then hide it with it.