Anderl
Members-
Posts
2,266 -
Joined
-
Last visited
Everything posted by Anderl
-
You do, even if the server doesn't start it will keep opening more and more mta-server processes and one time RAM will go.
-
Instead of running mta-server in crontab, run the shell script? Use the brain, that's what it is for.
-
It will start lots of processes. You should add a shell script to crontab and that shell script will check whether it is opened or not.
-
1. Create a shell script: http://en.wikipedia.org/wiki/Shell_script 2. Add it to crontab: http://en.wikipedia.org/wiki/Cron 3. Enjoy.
-
Yes, you can do that. Create a shell script to check whether server process is closed or opened and start server if closed. Then add it to crontab.
-
--declare some vars & timers setTimer( Begin, math.random( 200, 400 ), 1 ); -- Begin is not declared local pCapture; --declare functions function StartCapture( ele ) if ( ele and ( getElementType( ele ) == 'player' ) ) then --starts capture local szTeam = getTeamName( getPlayerTeam( ele ) ); -- you were getting team element and trying to output it later if ( isTimer( pCapture ) ) then killTimer( pCapture ); end pCapture = setTimer( Capture, 60000, 1 ); outputChatBox( szTeam .. " is capturing the weapon boat! 60 seconds till capture!", root, 150, 150, 150, false ); -- there was a parameter missing; visible to param end end addEventHandler( "onMarkerHit", captureMarker, StartCapture ); Check comments.
-
Who said math.floor doesn't remove decimal numbers? Examples of these functions: local number = 5.23; print( math.floor( number ) ); -- 5 print( math.ceil( number ) ); -- 6
-
You can also use math.floor depending on how you want the number.
-
Pretty sure this IPB forum is a nulled version. No damn guy that knows what is doing would pay $175-$200 for IPB license before knowing if his money was being well wasted.
-
What appears in the chat box?
-
Any errors in my script? How about using /debugscript 3?
-
--declare global variables local iLevel = 0; local pTimer = false; --declare main functions function FloodSA( player, _, iWrSpeed ) if (isObjectInACLGroup( "user." .. getAccountName( getPlayerAccount( player ) ), aclGetGroup( "Admin" ) )) then if (iWrSpeed) then if (isTimer( pTimer )) then --kill timer & destroys water killTimer( pTimer ); setWaterLevel( 0 ); iLevel = 0; outputDebugString( "Previous flood has been stopped by the server" ); end iWrSpeed = tonumber( iWrSpeed ); --starts new flood outputDebugString( "Floodin' started by " .. getPlayerName( player ) .. "at a speed of 1 meter per " .. iWrSpeed .. " seconds!" ); outputChatBox( "Water flood will start in 5 seconds!", root, 255, 0, 0, false ); pTimer = setTimer( AddWater, ( iWrSpeed * 1000 ), 0 ); outputChatBox( "--------------------------------", player, 255, 0, 0, false ); outputChatBox( "ALERT: A FLOOD IS EMERGING! FIND A HIGH GROUND!!!", player, 255, 0, 0, false ); outputChatBox( "--------------------------------", player, 255, 0, 0, false ); else --no speed arg passed; throwing error msg outputChatBox( "You must specify a speed!", player, 255, 0, 0, false ); end else --the element who called the command isn't an admin outputChatBox( "You aren't an admin!", player, 255, 0, 0, false ); end end addCommandHandler( "flood", FloodSA ); function AddWater() if (iLevel) then setWaterLevel( iLevel + 0.5 ); end end Not tested, though. To use this do: /flood [0-infinite] - speed is ( specifiedArg * 1000 ) which means 1 = 1000, 2 = 2000, 3 = 3000, ... P.S. Be sure to set the file as server-side.
-
:facepalm: They probably don't even know about Multi Theft Auto. Yeah I bet they know. MTA isn't a small thing. It did something that no other mod ever did! And another thing R* did contact MTA back in like 2003(or something). Search it up. I said "probably". It's not because something is possible in MTA that it must be a copy.
-
:facepalm: They probably don't even know about Multi Theft Auto.
-
That was stupid, of course they are going to make it. You can't assure that.
-
Best game ever. I hope it won't be bad optimized like GTA IV ( if they make PC version, of course ).
-
There are much people with bad internet connections in Europe. But most have very good networks ( just like me ).
-
There's no way to do that. MTA uses Game-Monitor and you can do nothing to change it.
-
I didn't really get you now.
-
It's { [1] = 1, [2] = 2 } not { 1 = [1], 2 = [2] }.
