Wrong, servers have players, dedicated servers dont have players.
If you only want to be sure the script is run on the server (with or without player), just put a simple condition at the very first line of your script:
IF it is SQF then:
if (!isServer) exitWith {};
IF it is SQS then:
? !isServer: exit