Turn timer implementation c++ sdk.(For turn based games)

Hi,
I am using photon c++ sdk for cocos2dx. Planning to make a 4 player turn based game for that i need turn timer.How should i solve it .I have two questions .
1)Is there way where i can write custom code for server ?
2)I should implement it at client side.(Because the game will be played in mobile phones with slow network) this might be not a right approach compared to implementing it at server side.

Comments