SA-MP Forums Archive
Samp NPC Access Denied - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Samp NPC Access Denied (/showthread.php?tid=557869)



Samp NPC Access Denied - mahdi499 - 15.01.2015

On startup my server cmd sends these lines

Код:
 sh: /home/ogp_agent/OGP_User_Files/port_7782/samp-npc: Permission denied
sh: /home/ogp_agent/OGP_User_Files/port_7782/announce: Permission denied
sh: /home/ogp_agent/OGP_User_Files/port_7782/announce: Permission denied
and my npcs arent allowed to connect to the server.


Re: Samp NPC Access Denied - Ironboy - 15.01.2015

Try this cmd before starting up

Quote:

chmod +x samp-npc samp03svr announce




Re: Samp NPC Access Denied - mahdi499 - 15.01.2015

to be honest i didnt know where to add that. Here's my host startup file. I am using furious host

Код:
 #!/bin/bash
function startServer(){
NUMSECONDS=`expr $(date +%s)`
until ./samp03svr ; do
let DIFF=(`date +%s` - "$NUMSECONDS")
if [ "$DIFF" -gt 15 ]; then
NUMSECONDS=`expr $(date +%s)`
echo "Server './samp03svr ' crashed with exit code $?.  Respawning..." >&2 
fi
sleep 3
done
let DIFF=(`date +%s` - "$NUMSECONDS")
if [ ! -e "SERVER_STOPPED" ] && [ "$DIFF" -gt 15 ]; then
startServer
fi
}
startServer



Re: Samp NPC Access Denied - Banana_Ghost - 15.01.2015

Type that inside of the shell itself. Like where you type ./samp03svr. But if you don't have access to the shell itself, you must contact your host and see if they can resolve it, if they cannot, then it's something else.