pun.rpc command

how do I translate this command into pun.rpc ?? I have a synchronization problem


private void sendBallVelocity()
{


if (gameController.myShootTurn && !GlobalGameManager30.goalHappened)
{

Rigidbody component = base.gameObject.GetComponent<Rigidbody>();
Vector3 vector = base.gameObject.GetComponent<Rigidbody>().velocity;
Vector3 a = base.gameObject.GetComponent<Rigidbody>().position;

int ping = PhotonNetwork.GetPing();

object[] eventContent = new object[1]
{
vector,
a,

};
RaiseEventOptions raiseEventOptions = new RaiseEventOptions
{
Receivers = ReceiverGroup.Others
};
CachingOption = EventCaching.AddToRoomCache;
SendOptions sendOptions = default(SendOptions);
sendOptions.Reliability = false;
SendOptions sendOptions2 = sendOptions;
PhotonNetwork.RaiseEvent(fixBallCode, eventContent, raiseEventOptions, sendOptions2);

}
}

public void OnEvent(EventData photonEvent)
{
byte eventCode = photonEvent.Code;
if (eventCode == fixBallCode)
{

object[] obj = (object[])photonEvent.CustomData;
Vector3 vector = (Vector3)obj[0];
Vector3 a = (Vector3)obj[1];


gameObject.GetComponent<Rigidbody>().position = a;
gameObject.GetComponent<Rigidbody>().velocity = vector;
if (fixedCounter == 1)
{


gameObject.transform.position = a + vector * Time.deltaTime;
gameObject.transform.position = gameObject.transform.position;
}

if (!gameController.GetComponent<GlobalGameManager30>().myShootTurn)
{
fixedCounter++;
}
if (fixedCounter > 10)
{
fixedCounter = 1;
}

}
}