new bool:ObjectView[MAX_PLAYERS char];//Inside your commandif(ObjectView{playerid} == false){ //Show the object return 1;}else{ //Hide the object return 1;}