run the following lines in a script clientside only
#START
@! alive player
@alive player
;; added to update arrays on all clients;;;;;;;;;;;;;;;;;;;;
updateclient = player; PublicVariable "updateclient"
goto "START"
and then have the following script running clientside only
#START
updateclient = objnull
#LOOP
~1
?(not isnull updateclient AND side updateclient == west): westarray = westarray + [updateclient]; goto "START"
?(not isnull updateclient AND side updateclient == east): eastarray = eastarray + [updateclient]; goto "START"
goto "LOOP"
list all west players in an array called WESTARRAY in the init.sqs
and all east players in an array caleed EASTARRAY
eg
westarray = [w1,w2,w3,w4,w5,w6]
eastarray= [e1,e2,e3,e4,e5,e6]
then you can use a line like
?(player in westarray): exec "SCRIPTNAME.sqs"
or simply add the lines marked in red to a respawn script thats client side only
#START
@! alive player
@alive player
player exec "MYSCRIPTNAME.sqs"
goto "START"
it would be advisable depending what script you are running to have the script exit when the player dies
eg in a looping script have a line like the following
? !(alive player): exit