Pseudo code:
Host:
for ClientID=0 to Client.length
if GetSpriteHit(ClientID[ClientID].SpriteID)<>0
SetNetworkClientUserData(Net_NetworkID,NetID,0,GetNetworkClientUserData(Net_NetworkID,NetID,0)+1)
endif
if GetNetworkClientUserData(Net_NetworkID,NetID,0)=3
SetNetworkClientUserData(Net_NetworkID,NetID,0,0)
MessageID=CreateNetworkMessage()
AddNetworkMessageInteger(MessageID,NET_EVENTHIT)
AddNetworkMessageInteger(MessageID,ClientID)
SendNetworkMessage(Net_NetworkID,0,MessageID)
endif
next ClientID
Client side:
MessageID=GetNetworkMessage(Net_NetworkID)
while MessageID<>0
Option=GetNetworkMessageInteger(MessageID)
select Option
case NET_HIT:
ClientID=GetNetworkMessageInteger(MessageID)
if ClientID=GetNetworkMyClientID(Net_NetworkID) then print("You hit someone")
// Do what ever needs to be done here
endcase
endselect
MessageID=GetNetworkMessage(Net_NetworkID)
endwhile