[NEED] Samp anti-crasher for linux (centos)
#1

I try https://sampwiki.blast.hk/wiki/Linux_Server but doesn't work any help please!!

If anyone have one please tell me how to install it
Reply
#2

ANYONE ?? please!!
Reply
#3

Quote:
Originally Posted by not
Посмотреть сообщение
I try https://sampwiki.blast.hk/wiki/Linux_Server but doesn't work any help please
It isn't working? What method are you using and what error do you get?
Reply
#4

i use method 2 and the console say: EROR FILE NOT FOUND "restart.sh"
Reply
#5

Код:
#!/bin/bash
export GTA_PATH=/home/sampsvr
cd $GTA_PATH
while [ true ]; do
cat {$GTA_PATH}/server_log.txt >> {$GTA_PATH}/full_server_log.txt
rm {$GTA_PATH}/server_log.txt
touch {$GTA_PATH}/server_log.txt
./samp03svr
done
Works pretty well to me.
Reply
#6

Quote:
Originally Posted by Cameltoe
Посмотреть сообщение
Код:
#!/bin/bash
export GTA_PATH=/home/sampsvr
cd $GTA_PATH
while [ true ]; do
cat {$GTA_PATH}/server_log.txt >> {$GTA_PATH}/full_server_log.txt
rm {$GTA_PATH}/server_log.txt
touch {$GTA_PATH}/server_log.txt
./samp03svr
done
Works pretty well to me.
I try it:

1є create an archive called (in my case) zodiak.sh with your code (i modified the path) and put it at my server folder (/root/pnk)
2є stop server
3є type :
Код:
cd pnk
nohup ./zodiak.sh &
Give me that error:
Код:
nohup: cannot run command `./zodiak.sh': Permission denied
So I give permision 777 on zodiak.sh

I've try again and give me this error:
Код:
nohup: cannot run command `./zodiak.sh': No such file or directory
Reply
#7

cd pnk
/zodiak.sh

That's it.
Reply
#8

Код:
-bash: /zodiak.zh: No such file or directory
Reply
#9

dont funk the anticrasher :S
Reply
#10

The problem is not the file, it's settings in the file, I do believe.

Код:
#!/bin/bash
export GTA_PATH=/home/sampsvr
cd $GTA_PATH
while [ true ]; do
cat {$GTA_PATH}/server_log.txt >> {$GTA_PATH}/full_server_log.txt
rm {$GTA_PATH}/server_log.txt
touch {$GTA_PATH}/server_log.txt
./samp03svr
done
You need to modify the

Код:
export GTA_PATH=/home/sampsvr
Of the bash script to suit your SA-MP server directory, also make sure that the SA-MP server binary is called samp03svr for this particular script to work.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)